Skip to content

Commit 48aa03c

Browse files
committed
Addressing more comments
1 parent 8b42bb8 commit 48aa03c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

pydantic_ai_slim/pydantic_ai/models/openai.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1253,17 +1253,17 @@ def _get_builtin_tools(self, model_request_parameters: ModelRequestParameters) -
12531253
require_approval='never',
12541254
)
12551255

1256-
if tool.authorization_token:
1256+
if tool.authorization_token: # pragma: no branch
12571257
mcp_tool['authorization'] = tool.authorization_token
12581258

1259-
if tool.allowed_tools:
1259+
if tool.allowed_tools: # pragma: no branch
12601260
mcp_tool['allowed_tools'] = tool.allowed_tools
12611261

1262-
if tool.description: # pragma: no cover
1263-
mcp_tool['server_description'] = tool.description
1262+
if tool.description: # pragma: no branch
1263+
mcp_tool['server_description'] = tool.description # pragma: no cover
12641264

1265-
if tool.headers: # pragma: no cover
1266-
mcp_tool['headers'] = tool.headers
1265+
if tool.headers: # pragma: no branch
1266+
mcp_tool['headers'] = tool.headers # pragma: no cover
12671267

12681268
url, connector_id = None, None
12691269
if tool.url.startswith(OpenAIResponsesMCPConnectorIdPrefix): # pragma: no cover

0 commit comments

Comments
 (0)