fix(responses): tolerate tools without model_extra in native validation
This commit is contained in:
@@ -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 '
|
||||
|
||||
Reference in New Issue
Block a user