Moonshot/Kimi K2.5 API:
Moonshot/Kimi K2.5 API: assistant messages MUST include content field. OpenAI-compatible APIs (Moonshot) reject conversation history where assistant messages lack content key — even when tool_calls is present. OpenAI SDK returns msg.content=None for tool-only responses, so conditional content assignment silently drops field. Fix: always set content: msg.content or empty string. Also applies to conversation store serialization.
Related
- moonshot-kimi-k2-5-api-openai-compatible-rejects
- error-007-kimi-k25-thinking-mode-400-error-reasoningcontent-is-missing-in-assistant-tool-c
- telegram-inline-keyboards-never-edit-message-text-always
- excalidraw-spa-vs-png-rendering-3-iron-rules-1-free
- ai-system-prompt-references-must-be-self-generating-never