Skip to content

fix: support structured output on Kimi thinking models - #61

Merged
ZhiXiao-Lin merged 1 commit into
mainfrom
codex/kimi-thinking-structured-fallback-20260728
Jul 28, 2026
Merged

fix: support structured output on Kimi thinking models#61
ZhiXiao-Lin merged 1 commit into
mainfrom
codex/kimi-thinking-structured-fallback-20260728

Conversation

@ZhiXiao-Lin

Copy link
Copy Markdown
Contributor

Summary

  • retain Kimi model thinking metadata on the account-backed client
  • report no forced-tool structured capability for thinking-only routes
  • preserve native JSON Schema support for non-thinking routes
  • use prompt plus schema validation and repair when forced tool choice is incompatible

Validation

  • cargo test desktop_chat_uses_the_app_key_openai_path_and_thinking_body: passed
  • cargo fmt --all -- --check: passed
  • git diff --check: passed
  • live k3-agent structured and three-way parallel contract probe: passed

@ZhiXiao-Lin
ZhiXiao-Lin merged commit 53cd903 into main Jul 28, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant