mirror of
https://github.com/BerriAI/litellm.git
synced 2026-12-05 01:59:27 +00:00
* fix(moonshot): send Kimi K3 a tool_choice it accepts Kimi K3 takes tool_choice="required", so it is sent as is and the extra "Please select a tool" user message is no longer added for K3, on Moonshot's API and on Bedrock invoke. Moonshot's API rejects a named tool_choice on K3 while thinking is on, so that call is forced by offering only the named tool with "required". Models before K3 and callers that turned thinking off keep today's request. Fixes #55761 Co-authored-by: Chaitanya Deshpande <dcchaitanyadeshpande@gmail.com> * refactor(moonshot): build the K3 request params without casts or rebinding * refactor(moonshot): validate the tool params instead of narrowing untyped values --------- Co-authored-by: Chaitanya Deshpande <dcchaitanyadeshpande@gmail.com> |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| test_moonshot_chat_transformation.py | ||