mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-13 08:52:02 +00:00
test(tools): a malformed legacy function entry does not keep a forced choice for a dropped MCP tool
This commit is contained in:
parent
dbac9d619a
commit
892331c655
1 changed files with 2 additions and 2 deletions
|
|
@ -257,8 +257,8 @@ _FORCED_DEEPWIKI: Final = {"type": "function", "function": {"name": "deepwiki"}}
|
|||
)
|
||||
@pytest.mark.parametrize(
|
||||
"functions",
|
||||
[None, [{"name": "get_weather", "parameters": {"type": "object"}}]],
|
||||
ids=["tools_kept", "legacy_functions_kept"],
|
||||
[None, [{"name": "get_weather", "parameters": {"type": "object"}}], ["deepwiki"]],
|
||||
ids=["tools_kept", "legacy_functions_kept", "malformed_legacy_function_kept"],
|
||||
)
|
||||
def test_dropping_a_hosted_mcp_tool_clears_a_tool_choice_that_forces_it(
|
||||
functions: object, tool_choice: Mapping[str, object]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue