feat: add LiteLLM provider support for model name remapping#508
feat: add LiteLLM provider support for model name remapping#508AnishDe12020 wants to merge 1 commit intospacedriveapp:mainfrom
Conversation
LiteLLM proxy expects plain model IDs without the provider prefix.
This change strips the 'litellm/' prefix from model names before
sending API requests, following the same pattern as zai-coding-plan.
Example:
- Spacebot config: channel = "litellm/kimi-k2p5"
- API request: {"model": "kimi-k2p5"}
Tested with dev instance:
- 60+ successful API calls
- All 6 agents generating profiles correctly
- Fallback chains working as expected
Fixes: model routing with LiteLLM proxy gateway
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
WalkthroughThe Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Possibly related issues
Possibly related PRs
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ 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 |
closes #507
LiteLLM proxy expects plain model IDs without the provider prefix. This change strips the 'litellm/' prefix from model names before sending API requests, following the same pattern as zai-coding-plan.
Example:
Tested with dev instance:
Fixes: model routing with LiteLLM proxy gateway