feat(ai-client-factory): Add xAI and OpenRouter provider support, enhance tests
- Integrate for Grok models and for OpenRouter into the AI client factory (). - Install necessary provider dependencies (, , and other related packages, updated core). - Update environment variable checks () and client creation logic () for the new providers. - Add and correct unit tests in to cover xAI and OpenRouter instantiation, error handling, and environment variable resolution. - Corrected mock paths and names in tests to align with official package names. - Verify all tests (28 total) pass for . - Confirm test coverage remains high (~90%) after additions.
This commit is contained in:
@@ -271,7 +271,7 @@ The configuration management module should be updated to:
|
||||
7. Implement command output formatting for model listings
|
||||
8. Testing approach: Create integration tests that verify CLI commands correctly interact with the configuration manager
|
||||
|
||||
## 3. Integrate Vercel AI SDK and Create Client Factory [pending]
|
||||
## 3. Integrate Vercel AI SDK and Create Client Factory [done]
|
||||
### Dependencies: 61.1
|
||||
### Description: Set up Vercel AI SDK integration and implement a client factory pattern to create and manage AI model clients.
|
||||
### Details:
|
||||
|
||||
Reference in New Issue
Block a user