litellm - ✅(Solved) Fix [Bug]: Fireworks Kimi 2.6 [1 pull requests, 1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
BerriAI/litellm#26257Fetched 2026-04-23 07:24:16
View on GitHub
Comments
0
Participants
1
Timeline
5
Reactions
0
Participants
Timeline (top)
labeled ×3cross-referenced ×1referenced ×1

Error Message

litellm.UnsupportedParamsError: fireworks_ai does not support parameters: ['tool_choice'], for model=accounts/fireworks/models/kimi-k2p6. To drop these, set litellm.drop_params=True or for proxy:

litellm_settings: drop_params: true . If you want to use these params dynamically send allowed_openai_params=['tool_choice'] in your request.. Received Model Group=moonshotai/kimi-k2.6 Available Model Group Fallbacks=None

Fix Action

Fixed

PR fix notes

PR #26164: feat(fireworks_ai, moonshot): add kimi-k2.6 / kimi-k2p6 with tool_choice support

Description (problem / solution / changelog)

Summary

  • Adds moonshot/kimi-k2.6 to both pricing JSON files with supports_reasoning: true (fixes multi-turn tool-calling 400 errors for Moonshot provider)
  • Adds fireworks_ai/accounts/fireworks/models/kimi-k2p6 and fireworks_ai/kimi-k2p6 with supports_tool_choice: true (fixes UnsupportedParamsError when tool_choice is passed for Kimi 2.6 on Fireworks AI)

Issues fixed

  • Closes #26257 (fireworks_ai does not support parameters: ['tool_choice'] for kimi-k2p6)

Changes

  • model_prices_and_context_window.json: Added moonshot/kimi-k2.6, fireworks_ai/accounts/fireworks/models/kimi-k2p6, fireworks_ai/kimi-k2p6
  • litellm/model_prices_and_context_window_backup.json: Same additions

All entries modelled after existing kimi-k2p5 / moonshot/kimi-k2.5 entries with identical pricing (Fireworks pricing page: https://fireworks.ai/pricing).

Changed files

  • litellm/model_prices_and_context_window_backup.json (modified, +38590/-38546)
  • model_prices_and_context_window.json (modified, +38590/-38546)

Code Example

litellm.UnsupportedParamsError: fireworks_ai does not support parameters: ['tool_choice'], for model=accounts/fireworks/models/kimi-k2p6. To drop these, set `litellm.drop_params=True` or for proxy:

`litellm_settings:
 drop_params: true`
. 
 If you want to use these params dynamically send allowed_openai_params=['tool_choice'] in your request.. Received Model Group=moonshotai/kimi-k2.6
Available Model Group Fallbacks=None

---
RAW_BUFFERClick to expand / collapse

Check for existing issues

  • I have searched the existing issues and checked that my issue is not a duplicate.

What happened?

litellm.UnsupportedParamsError: fireworks_ai does not support parameters: ['tool_choice'], for model=accounts/fireworks/models/kimi-k2p6. To drop these, set `litellm.drop_params=True` or for proxy:

`litellm_settings:
 drop_params: true`
. 
 If you want to use these params dynamically send allowed_openai_params=['tool_choice'] in your request.. Received Model Group=moonshotai/kimi-k2.6
Available Model Group Fallbacks=None

Steps to Reproduce

  1. Use v1.81.14
  2. Add kimi 2.6 to config
  3. Make calls with tool choice.

Note that this was also an issue k2.5

Relevant log output

What part of LiteLLM is this about?

Proxy

What LiteLLM version are you on ?

v1.81.14

Twitter / LinkedIn details

No response

extent analysis

TL;DR

Set litellm.drop_params=True or litellm_settings: drop_params: true to drop unsupported parameters, or send allowed_openai_params=['tool_choice'] in the request to use the parameter dynamically.

Guidance

  • To resolve the UnsupportedParamsError, either drop the unsupported parameters by setting drop_params to true or allow the specific parameter tool_choice by sending it in the allowed_openai_params list.
  • Verify the fix by making a call with the tool_choice parameter after applying one of the suggested solutions.
  • If using the drop_params solution, ensure that dropping the parameters does not affect the functionality of your application.
  • Consider checking the documentation for the model accounts/fireworks/models/kimi-k2p6 to see if there are any other unsupported parameters.

Example

No explicit code example is provided in the issue, but the error message suggests adding litellm_settings: drop_params: true to the configuration or sending allowed_openai_params=['tool_choice'] in the request.

Notes

The issue seems to be specific to the kimi-k2p6 model and the tool_choice parameter. The solution may not apply to other models or parameters.

Recommendation

Apply the workaround by setting litellm.drop_params=True or sending allowed_openai_params=['tool_choice'] in the request, as upgrading to a fixed version is not mentioned in the issue. This is because the error message provides a clear solution to the problem, and there is no indication that a newer version of LiteLLM would resolve the issue.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

litellm - ✅(Solved) Fix [Bug]: Fireworks Kimi 2.6 [1 pull requests, 1 participants]