We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f73edd7 commit d608708Copy full SHA for d608708
openhands/llm/llm.py
@@ -76,6 +76,8 @@
76
MODELS_WITHOUT_STOP_WORDS = [
77
'o1-mini',
78
'o1-preview',
79
+ 'o1',
80
+ 'o1-2024-12-17',
81
]
82
83
@@ -217,9 +219,8 @@ def wrapper(*args, **kwargs):
217
219
kwargs['stop'] = STOP_WORDS
218
220
221
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
222
- )
+ # tool_choice should not be specified when mocking function calling
223
+ kwargs.pop('tool_choice', None)
224
225
# if we have no messages, something went very wrong
226
if not messages:
0 commit comments