feat(llm): add ZhipuAIProvider with logging support - #469
Conversation
- Add LLMProviderType type with 'gemini' and 'zhipu-ai' options - Update LLMConfig interface to require provider field - Add DEFAULT_MODELS constant for provider-specific default models - Update loadConfig() to validate provider field - Update createProvider() to be async and support both providers - Add tests for zhipu-ai provider config validation - Add tests for missing/invalid provider field validation Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Debug log now only logs messagesCount instead of full messages array and maxTokens - Error handler re-throws original error instead of wrapping it Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
Caution Review failedThe pull request is closed. 📝 WalkthroughWalkthroughThe pull request adds multi-provider LLM support to the conversation-memory plugin by introducing Zhipu AI as an alternative to Gemini. The createProvider function converts to async with dynamic provider selection, a new ZhipuAIProvider class is implemented, comprehensive setup documentation and configuration examples are added, and the zhipuai-sdk-nodejs-v4 dependency is included. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Poem
✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
Changes
Test Plan
🤖 Generated with Claude Code
Summary by CodeRabbit
New Features
Documentation
Tests