Skip to content

Add Kimi K3.1 Pro on Tinfoil - #1472

Merged
AnthonyRonning merged 1 commit into
masterfrom
codex-kimik31-maple
Nov 5, 2026
Merged

AnthonyRonning merged 1 commit into
masterfrom
codex-kimik31-maple

Conversation

@AnthonyRonning

@AnthonyRonning AnthonyRonning commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Lists kimi-k3-1-pro as a Pro chat model with vision and tools, routed to Tinfoil. Kimi K3 stays available.

K3.1 Pro follows Moonshot's guidance rather than K3's settings:

Setting K3 K3.1 Pro
Reasoning Optional, none allowed Mandatory
Levels (default max) none, low, high, max low, high, max
Tool-use top_p 1.0 0.95

Tinfoil's deployment also accepts none and medium. Moonshot does not support them, so OpenSecret returns a 400 that lists the valid levels. Maple Agent needs no change, because it hides thinking-off from the catalog's mandatory field.

The context window is 262,144, which is what Tinfoil serves; Moonshot's own API offers 1M.

Not in this PR

Validation

  • Pre-commit: cargo fmt, strict Clippy and the unit suite passed.
  • Encrypted SDK run against a linked Local MDE stack with live Tinfoil, 29 of 29:
    • Default, low, high and max, streaming on Chat Completions and Responses, plus non-streaming on Chat Completions.
    • none, medium, minimal and xhigh return 400 on both APIs.
    • Thinking-off switches are dropped, and the developer role, vision, tool loops, multi-turn reasoning replay, prompt caching and K3 regression all work.

The Maple Chat and Agent apps were not tested by hand. That temporary SDK test is not committed.

Existing issue, unchanged here: Responses usage shows clients 0 for cached and reasoning tokens on both Kimi models, while backend logs record real cached counts.

🤖 Generated with Claude Code


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

List kimi-k3-1-pro as a Pro chat model with vision and tools. K3 stays
available.

It follows Moonshot's guidance rather than K3's settings. Reasoning is
mandatory with low, high and max, defaulting to max, and sampling stays at
temperature 1.0 and top_p 0.95 with tools. Tinfoil's build also accepts
none and medium, but Moonshot does not support them, so they are rejected.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@AnthonyRonning
AnthonyRonning merged commit 3355d6a into master Nov 5, 2026
23 checks passed
@AnthonyRonning
AnthonyRonning deleted the codex-kimik31-maple branch November 5, 2026 20:22
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