Skip to content

fix: update stale Fireworks kimi-k2-instruct model reference - #4145

Merged
aheritier merged 1 commit into
mainfrom
fix/fireworks-model-reference
Sep 3, 2026
Merged

fix: update stale Fireworks kimi-k2-instruct model reference#4145
aheritier merged 1 commit into
mainfrom
fix/fireworks-model-reference

Conversation

@aheritier

Copy link
Copy Markdown
Collaborator

🤖 Automated implementer agentthis comment was posted by the implementer bot from Docker Agentic Platform, not by a human developer

Fixes #4132.

accounts/fireworks/models/kimi-k2-instruct does not exist in the fireworks-ai models.dev catalog (and never has). Replaces it with accounts/fireworks/models/kimi-k3, verified present in the current pkg/modelsdev/snapshot.json, across:

  • pkg/config/auto.go (DefaultModels["fireworks"])
  • examples/fireworks.yaml
  • pkg/config/auto_test.go, pkg/model/provider/openai_alias_providers_test.go, pkg/model/provider/openai/system_message_merge_test.go
  • docs/providers/fireworks/index.md — 4 model: snippets, plus the "Available Models" table, which also listed two other nonexistent ids (llama-v3p3-70b-instruct, qwen3-235b-a22b); Llama has no successor in the fireworks-ai catalog at all, so it's dropped rather than remapped.

Also closes the CI blind spot the issue describes: pkg/config/examples_test.go's modelsDevAbsentProviders unconditionally skipped models.dev validation for several providers whose docker-agent name diverges from their models.dev catalog id. Replaced with a modelsDevCatalogProviders map that resolves the real catalog id (fireworksfireworks-ai, togethertogetherai, moonshotmoonshotai, chatgptopenai, opencode-zenopencode) before validating — this is exactly the check that would have caught #4132 automatically. vercel now validates directly (models.dev catalogs it as-is). dmr, ovhcloud, cloudflare-workers-ai, cloudflare-ai-gateway remain skipped with corrected comments (e.g. ovhcloud's example id is case-mismatched against models.dev's lower-cased ids, not "not yet catalogued").

Known, deliberately out-of-scope follow-up: DefaultModels itself isn't validated against models.dev for every provider (e.g. github-copilot's default gpt-5.6 isn't in that provider's catalog, which only has gpt-5.6-luna/-sol/-terra). Extending validation to DefaultModels would need separate model-choice review per provider, so left for a follow-up rather than bundled here.

Testing: task build, task test (green except the pre-existing, unrelated pkg/rag/treesitter CGO failures — no gcc in this sandbox), task lint (golangci-lint + go run ./lint . + go mod tidy --diff) all pass.

@aheritier
aheritier marked this pull request as ready for review September 3, 2026 14:58
@aheritier
aheritier requested a review from a team as a code owner September 3, 2026 14:58
@aheritier aheritier added area/config For configuration parsing, YAML, environment variables area/docs Documentation changes area/providers/openai For features/issues/fixes related to the usage of OpenAI models kind/fix PR fixes a bug (maps to fix:). Use on PRs only. labels Sep 3, 2026
trungutt
trungutt previously approved these changes Sep 3, 2026

@trungutt trungutt left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

yes

accounts/fireworks/models/kimi-k2-instruct does not exist in the
fireworks-ai models.dev catalog and never has. Replace it with
accounts/fireworks/models/kimi-k3, which is present in the current
snapshot, across DefaultModels, examples/fireworks.yaml, tests, and
the Fireworks provider docs (including the stale Available Models
table, which also listed two other nonexistent ids).

Also teach examples_test.go to resolve the actual models.dev catalog
id for providers where it diverges from the docker-agent provider
name (fireworks -> fireworks-ai, together -> togetherai, moonshot ->
moonshotai, chatgpt -> openai, opencode-zen -> opencode) instead of
unconditionally skipping validation, so this class of drift is caught
automatically going forward. vercel now validates directly (models.dev
catalogs it as-is); dmr/ovhcloud/cloudflare-* remain skipped with
updated, accurate comments.

Rebased onto main after #4147 (issue #4134/#4133) merged and added
TestDefaultModelsExistInModelsDev, which validates DefaultModels
directly against the models.dev provider id without the catalog-alias
resolution above; apply the same modelsDevCatalogProviders mapping
there so fireworks/together/moonshot/chatgpt/opencode-zen resolve
correctly instead of failing on the raw docker-agent provider name.

Fixes #4132
@aheritier
aheritier merged commit 38c6490 into main Sep 3, 2026
19 checks passed
@aheritier
aheritier deleted the fix/fireworks-model-reference branch September 3, 2026 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/config For configuration parsing, YAML, environment variables area/docs Documentation changes area/providers/openai For features/issues/fixes related to the usage of OpenAI models kind/fix PR fixes a bug (maps to fix:). Use on PRs only.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fireworks default/example model reference (kimi-k2-instruct) doesn't exist in models.dev, silently skipped by CI

3 participants