Skip to content

fix(kimi-code): update known models metadata with current platform lineup - #10713

Merged
alexhancock merged 1 commit into
aaif-goose:mainfrom
vincenzopalazzo:fix/kimi-code-known-models
Jul 29, 2026
Merged

fix(kimi-code): update known models metadata with current platform lineup#10713
alexhancock merged 1 commit into
aaif-goose:mainfrom
vincenzopalazzo:fix/kimi-code-known-models

Conversation

@vincenzopalazzo

Copy link
Copy Markdown
Contributor

Summary

  • kimi_code's /v1/models catalogue now serves kimi-for-coding, kimi-for-coding-highspeed, k3, and k3-256k (verified live against api.kimi.com/coding/v1/models)
  • KIMI_CODE_KNOWN_MODELS still listed only kimi-for-coding; it's the fallback shown when the live fetch fails (e.g. expired token), so k3 was hidden from the model picker
  • Updated the metadata list to match the live catalogue. Note the platform ids are k3/k3-256k, not kimi-k3

Test plan

  • CI passes
  • cargo test -p goose --lib kimicode (12 pass)
  • cargo clippy -p goose --lib -- -D warnings

…neup

The /v1/models catalogue now serves kimi-for-coding,
kimi-for-coding-highspeed, k3, and k3-256k. The metadata list is the
fallback shown when the live fetch fails (e.g. expired token), and it
still listed only kimi-for-coding, hiding k3 from the model picker.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5fbdc1557c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

pub const KIMI_CODE_KNOWN_MODELS: &[&str] = &[
"kimi-for-coding",
"kimi-for-coding-highspeed",
"k3",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Map Kimi Code to its canonical provider

When a user selects the newly advertised k3 model, ProviderMetadata::new resolves it under provider name kimi_code, but map_provider_name does not translate that to the bundled catalog's kimi-for-coding/k3 entry. The resulting ModelInfo therefore uses the generic 128K context limit, which ProviderRegistry::normalize_model_config backfills into sessions, causing compaction at 128K even though the catalog declares a 1,048,576-token context. Add the provider-name mapping or construct these entries with their explicit limits.

Useful? React with 👍 / 👎.

@alexhancock
alexhancock merged commit 13e9dbe into aaif-goose:main Jul 29, 2026
24 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.

2 participants