mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
LiteLLM's auto_router feature passes user content to embedding models for semantic routing. However, embedding models expect plain strings, not arrays of content blocks. This causes errors when Roo Code sends messages with array content format. This commit adds a new `litellmFlattenContent` option (enabled by default) that flattens array content to simple string format before sending to LiteLLM. Changes: - Add litellmFlattenContent option to provider-settings.ts schema - Add flattenMessageContent method to LiteLLMHandler - Apply flattening in createMessage when option is enabled (default: true) - Add UI checkbox in LiteLLM settings component - Add translations for all supported languages - Add comprehensive tests for the flattening logic Users who need multimodal content (images) can disable this option. Fixes #11132 |
||
|---|---|---|
| .. | ||
| audio | ||
| public | ||
| src | ||
| .gitignore | ||
| browser-panel.html | ||
| components.json | ||
| eslint.config.mjs | ||
| index.html | ||
| package.json | ||
| tsconfig.json | ||
| turbo.json | ||
| vite.config.ts | ||
| vitest.config.ts | ||
| vitest.setup.ts | ||