fix(responses): tolerate tools without model_extra in native validation

This commit is contained in:
2026-11-13 23:24:00 +08:00
parent cac60f7c2e
commit b6a5d70cba
@@ -1508,7 +1508,7 @@ class OpenAIServingResponses(OpenAIServingChat):
for tool in request.tools:
if (
tool.type == TOOL_SEARCH
and tool.model_extra.get("execution") != "client"
and (tool.model_extra or {}).get("execution") != "client"
):
return (
'tool_search requires execution "client": this server runs no '