Skip to content

Commit bfcccba

Browse files
authored
Fix OpenAI docs code example (#3003)
1 parent ebd0f77 commit bfcccba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/models/openai.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ Image generation is not currently supported. If you need this feature, please co
130130

131131
File search and Computer use can be enabled by passing an [`openai.types.responses.FileSearchToolParam`](https://github.com/openai/openai-python/blob/main/src/openai/types/responses/file_search_tool_param.py) or [`openai.types.responses.ComputerToolParam`](https://github.com/openai/openai-python/blob/main/src/openai/types/responses/computer_tool_param.py) in the `openai_builtin_tools` setting on [`OpenAIResponsesModelSettings`][pydantic_ai.models.openai.OpenAIResponsesModelSettings]. They don't currently generate [`BuiltinToolCallPart`][pydantic_ai.messages.BuiltinToolCallPart] or [`BuiltinToolReturnPart`][pydantic_ai.messages.BuiltinToolReturnPart] parts in the message history, or streamed events; please submit an issue if you need native support for these built-in tools.
132132

133-
```python{title="file_search_tool.py"}
133+
```python {title="file_search_tool.py"}
134134
from openai.types.responses import FileSearchToolParam
135135

136136
from pydantic_ai import Agent

0 commit comments

Comments
 (0)