mirror of
https://github.com/OpenHands/OpenHands.git
synced 2025-12-26 05:48:36 +08:00
fix: set tool_choice to none for non-fncall models (#6652)
This commit is contained in:
parent
5fa2634d60
commit
52ac2729f7
@ -232,6 +232,9 @@ class LLM(RetryMixin, DebugMixin):
|
||||
kwargs['stop'] = STOP_WORDS
|
||||
|
||||
mock_fncall_tools = kwargs.pop('tools')
|
||||
kwargs['tool_choice'] = (
|
||||
'none' # force no tool calling because we're mocking it - without it, it will cause issue with sglang
|
||||
)
|
||||
|
||||
# if we have no messages, something went very wrong
|
||||
if not messages:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user