test: cover invalid web search function shapes

This commit is contained in:
lei_lei 2026-08-30 14:21:25 +08:00 • committed by lei_lei
parent af0e0f478a
commit f78c6592c1

View file

@ -28,6 +28,7 @@ def test_openai_function_web_search_shapes_are_detected(tool: dict[str, Any]):
[
{"type": "function", "function": {"name": "web_search_helper"}},
{"type": "function", "function": {"name": "search"}},
{"type": "function", "function": None},
],
)
def test_unrelated_openai_function_tools_are_not_detected(tool: dict[str, Any]):