mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-18 04:44:37 +00:00
fix(anthropic): name the proxy drop_params setting in the tool_search 400
This commit is contained in:
parent
0235b8c96b
commit
07516c334b
2 changed files with 3 additions and 1 deletions
|
|
@ -352,7 +352,8 @@ def tools_without_unsupported_tool_search(
|
|||
message=(
|
||||
f"{model} on {route} cannot run the OpenAI `tool_search` tool as sent. Only a server-executed "
|
||||
"`tool_search` on a route that supports tool search becomes Anthropic's tool search. To drop it "
|
||||
"and the `defer_loading` of the other tools, set `litellm.drop_params = True`."
|
||||
"and the `defer_loading` of the other tools, set `litellm.drop_params=True` or for proxy:\n\n"
|
||||
"`litellm_settings:\n drop_params: true`\n"
|
||||
),
|
||||
status_code=400,
|
||||
)
|
||||
|
|
|
|||
|
|
@ -8915,6 +8915,7 @@ def test_map_openai_params_answers_400_for_an_openai_tool_search_tool_it_cannot_
|
|||
)
|
||||
assert raised.value.status_code == 400
|
||||
assert "tool_search" in str(raised.value)
|
||||
assert "drop_params: true" in str(raised.value)
|
||||
|
||||
|
||||
@pytest.mark.parametrize(("config", "model", "provider", "execution"), _UNRUNNABLE_TOOL_SEARCH_CASES)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue