Repository navigation
Conversation
Greptile SummaryRegisters the Fireworks AI Kimi K3 model so LiteLLM recognizes its capabilities and pricing.
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains, and the previously reported OpenAPI schema-test issue is absent from the current code.
|
| Filename | Overview |
|---|---|
| model_prices_and_context_window.json | Adds internally consistent full-path and short-form Kimi K3 registry entries with pricing, token limits, and capability metadata. |
| litellm/model_prices_and_context_window_backup.json | Mirrors the Kimi K3 metadata in the packaged backup registry. |
| tests/test_litellm/test_utils.py | Adds CI-covered assertions for Kimi K3 metadata and equality between its full-path and short-form entries in both registries. |
Reviews (2): Last reviewed commit: "feat(fireworks_ai): add Kimi K3 model re..." | Re-trigger Greptile
| assert "requestBody" in post_spec | ||
| body_schema = post_spec["requestBody"]["content"]["application/json"]["schema"] | ||
|
|
||
| assert body_schema.get("type") == "object" |
There was a problem hiding this comment.
Component reference breaks schema test
When FastAPI represents MCPRestToolCallRequest as a component $ref, this assertion treats the reference as an inline object, causing the new OpenAPI regression test to fail before validating the request fields.
Rule Used: What: Flag any modifications to existing tests and... (source)
266e5e5 to
af1b685
Compare
|
The branch was rebased onto the current @greptileai please re-review the latest commit. |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
af1b685 to
2bc0655
Compare
Fixes missing supports_function_calling and supports_tool_choice metadata for fireworks_ai/accounts/fireworks/models/kimi-k3, which caused UnsupportedParamsError when using tool_choice with that model despite Fireworks supporting it upstream. Adds both the full-path entry and short-form alias, plus a regression test.
2bc0655 to
ecda6ad
Compare
|
Superseded by rolling registry audit #37902, which reverified and absorbed the provider-documented metadata changes at field level |
Relevant issues
Fixes #35382
Linear ticket
Pre-Submission checklist
Please complete all items before asking a LiteLLM maintainer to review your PR
@greptileaito re-request a review after pushing changes)Screenshots / Proof of Fix
Before this change,
fireworks_ai/accounts/fireworks/models/kimi-k3had no entry in the model registry, so LiteLLM's capability validation treatedtool_choiceas unsupported and raisedUnsupportedParamsErrorbefore the request ever reached Fireworks.After this change the model is registered with
supports_tool_choice: trueandsupports_function_calling: true, so requests carryingtool_choicepass validation and are forwarded to Fireworks.Type
🐛 Bug Fix
Changes
fireworks_ai/accounts/fireworks/models/kimi-k3and the short-form aliasfireworks_ai/kimi-k3tomodel_prices_and_context_window.jsonandlitellm/model_prices_and_context_window_backup.json, including pricing, context window, and capability flags (supports_function_calling,supports_tool_choice,supports_reasoning,supports_response_schema,supports_vision).tests/test_litellm/test_utils.pyasserting the Kimi K3 full-path and short-form entries exist in both registry files with the expected pricing, context window, and capability values.Final Attestation