Roo-Code/packages
Roo Code 6fe9a9eb4f feat(litellm): add flatten content option for auto_router compatibility
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
2026-01-31 04:48:11 +00:00
..
build Custom tool calling (#10083) 2025-12-21 12:43:06 -08:00
cloud refactor(read_file): Codex-inspired read_file refactor EXT-617 (#10981) 2026-01-29 15:16:32 -07:00
config-eslint Upgrade to ESLint 9 + share eslint config across workspaces (#3815) 2025-05-21 21:30:21 -07:00
config-typescript Move @roo-code/cloud to the Roo-Code repo (#7503) 2025-08-28 11:18:45 -07:00
core Remove Merge button from worktrees (#10924) 2026-01-23 16:55:46 -05:00
evals Update next.js (#11108) 2026-01-30 02:08:45 -08:00
ipc Better IPC error logging (#9727) 2025-12-01 15:02:34 -08:00
telemetry fix(condense): remove custom condensing model option (#10901) 2026-01-22 20:06:04 -05:00
types feat(litellm): add flatten content option for auto_router compatibility 2026-01-31 04:48:11 +00:00
vscode-shim Some cleanup in ExtensionHost (#10600) 2026-01-10 02:29:33 -08:00