kimi-code/packages/kosong/src
Kai 6595a6989a
fix(kosong): emit null content for assistant messages with no text in chat completions (#3052)
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.
2026-08-19 11:39:32 +08:00
..
providers fix(kosong): emit null content for assistant messages with no text in chat completions (#3052) 2026-08-19 11:39:32 +08:00
capability.ts fix: consume the model metadata declared by the models.dev catalog (#2015) 2026-07-22 01:23:31 +08:00
catalog.ts fix: gate always-thinking inference to OpenAI wires, plus catalog review follow-ups (#2036) 2026-07-22 13:43:10 +08:00
errors.ts Revert "fix(kosong): match Kimi's standalone "Unsupported image." rejection (…" (#2368) 2026-07-29 20:56:41 +08:00
generate.ts feat: attach trace_id to telemetry events (#1724) 2026-07-16 09:14:12 +08:00
index.ts fix(kosong): fail fast on quota-exhausted 429 instead of retrying (#1857) 2026-07-28 14:35:12 +08:00
message.ts feat(agent-core): progressive tool disclosure via select_tools (#1369) 2026-07-06 15:51:08 +08:00
provider.ts feat: attach trace_id to telemetry events (#1724) 2026-07-16 09:14:12 +08:00
tool.ts feat(agent-core): progressive tool disclosure via select_tools (#1369) 2026-07-06 15:51:08 +08:00
usage.ts Kimi For Coding 2026-05-22 15:54:50 +08:00