mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +00:00
fix(o_series_transformation.py): fix optional param check for o-serie… (#8787)
* fix(o_series_transformation.py): fix optional param check for o-series models o3-mini and o-1 do not support parallel tool calling * fix(utils.py): support 'drop_params' for 'thinking' param across models allows switching to older claude versions (or non-anthropic models) and param to be safely dropped * fix: fix passing thinking param in optional params allows dropping thinking_param where not applicable * test: update old model * fix(utils.py): fix linting errors * fix(main.py): add param to acompletion
This commit is contained in:
parent
aabb5c0df4
commit
017c482d7b
11 changed files with 87 additions and 31 deletions
|
@ -4072,7 +4072,7 @@ def test_mock_response_iterator_tool_use():
|
|||
"anthropic/claude-3-7-sonnet-20250219",
|
||||
],
|
||||
)
|
||||
def test_deepseek_reasoning_content_completion(model):
|
||||
def test_reasoning_content_completion(model):
|
||||
# litellm.set_verbose = True
|
||||
try:
|
||||
# litellm._turn_on_debug()
|
||||
|
@ -4081,7 +4081,6 @@ def test_deepseek_reasoning_content_completion(model):
|
|||
messages=[{"role": "user", "content": "Tell me a joke."}],
|
||||
stream=True,
|
||||
thinking={"type": "enabled", "budget_tokens": 1024},
|
||||
timeout=5,
|
||||
)
|
||||
|
||||
reasoning_content_exists = False
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue