Phase 39: Provider Adapter Refactor

- ProviderAdapter trait with chat(), embed(), unload(), health()
- OllamaAdapter wrapping existing AiClient
- OpenRouterAdapter for openrouter.ai API integration
- provider_key() routing by model prefix (openrouter/*, etc)
This commit is contained in:
root
2026-04-23 02:24:15 -05:00
parent e2ccddd8d2
commit e27a17e950
7 changed files with 236 additions and 0 deletions
+1
View File
@@ -11,3 +11,4 @@ serde = { workspace = true }
serde_json = { workspace = true }
tracing = { workspace = true }
reqwest = { version = "0.12", default-features = false, features = ["json", "rustls-tls"] }
async-trait = "0.1"