mirror of
https://github.com/MoonshotAI/kimi-code.git
synced 2026-08-25 16:46:17 +00:00
Assistant messages carrying only tool calls were serialized without a content key (JSON.stringify drops undefined), which strict chat-completions validators such as LiteLLM reject with a 422, permanently poisoning the session. Emit content: null for such messages in both the kosong and agent-core-v2 converters, matching the shape OpenAI responses use alongside tool_calls. The think-only empty-string behavior in agent-core-v2 and both Kimi providers' deliberate content omission are unchanged. |
||
|---|---|---|
| .. | ||
| providers | ||
| capability.ts | ||
| catalog.ts | ||
| errors.ts | ||
| generate.ts | ||
| index.ts | ||
| message.ts | ||
| provider.ts | ||
| tool.ts | ||
| usage.ts | ||