mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-10-09 00:12:21 +02:00
normalize named tool choice for Kimi thinking mode
This commit is contained in:
@@ -185,7 +185,7 @@ def search_tool_choice_request(request):
|
||||
def provider_compatible_tool_choice_request(request, model):
|
||||
"""Keep tools but avoid forced choice unsupported by thinking providers."""
|
||||
model_name = canonical(str(model or '')).casefold()
|
||||
if model_name.startswith('deepseek') and 'tool_choice' in request:
|
||||
if model_name.startswith(('deepseek', 'kimi')) and 'tool_choice' in request:
|
||||
compatible = dict(request)
|
||||
choice = compatible.get('tool_choice')
|
||||
selected_name = (
|
||||
|
||||
Reference in New Issue
Block a user