kimi-code/packages/kosong
Luyu Cheng 540133f0c7
fix(kosong): declare optional media names on image and video parts (#3827)
Media name preservation already ships: the REST schemas expose a name on
image and video content, and kap-server reads imageUrl.name and videoUrl.name
when projecting messages and prompt content. The kosong part types never
declared the field, so it survived only because object literals keep excess
properties through an assignment. Consumers that read these types directly
cannot see the name at all.

Declare it where the other optional part fields live. No runtime change; the
existing media name projection tests continue to cover the behavior.
2026-09-16 13:22:52 +08:00
..
src fix(kosong): declare optional media names on image and video parts (#3827) 2026-09-16 13:22:52 +08:00
test fix(kosong): tolerate undefined model name in Anthropic profile matching (#3003) 2026-09-07 15:48:24 +08:00
CHANGELOG.md ci: release packages (#3574) 2026-09-09 14:22:47 +08:00
package.json ci: release packages (#3574) 2026-09-09 14:22:47 +08:00
README.md Kimi For Coding 2026-05-22 15:54:50 +08:00
tsconfig.json Kimi For Coding 2026-05-22 15:54:50 +08:00
tsconfig.type-negative.json Kimi For Coding 2026-05-22 15:54:50 +08:00
tsdown.config.ts fix: align Anthropic-compatible model capabilities (#1746) 2026-07-16 01:31:38 +08:00
vitest.config.ts Kimi For Coding 2026-05-22 15:54:50 +08:00

@moonshot-ai/kosong

LLM abstraction layer used by Kimi Code.

Part of the Kimi Code monorepo.

See the main repository for documentation, issues, and contribution guidelines.

License

MIT