mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-05-10 20:30:13 +00:00
Fixes #3616. Adds opt-in `splitToolMedia` flag (default false). When enabled, media parts (image / audio / video / file) returned by MCP tool calls are split into a follow-up `role: "user"` message instead of being embedded in the `role: "tool"` message. Required for strict OpenAI-compatible servers (e.g., LM Studio) that reject non-text content on tool messages with HTTP 400 "Invalid 'messages' in payload". Media from parallel tool responses is accumulated and emitted as a single follow-up user message after all tool messages, preserving OpenAI's contiguity requirement for tool responses. Default behavior is unchanged for permissive providers. |
||
|---|---|---|
| .. | ||
| migration | ||
| auth.test.ts | ||
| auth.ts | ||
| config.integration.test.ts | ||
| config.test.ts | ||
| config.ts | ||
| keyBindings.test.ts | ||
| keyBindings.ts | ||
| modelProvidersScope.test.ts | ||
| modelProvidersScope.ts | ||
| sandboxConfig.ts | ||
| settings.test.ts | ||
| settings.ts | ||
| settingsSchema.test.ts | ||
| settingsSchema.ts | ||
| trustedFolders.test.ts | ||
| trustedFolders.ts | ||