Skip to content

Commit d0c346c

Browse files
Update pydantic_ai_slim/pydantic_ai/models/openai.py
Co-authored-by: Douwe Maan <[email protected]>
1 parent d713c29 commit d0c346c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pydantic_ai_slim/pydantic_ai/models/openai.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1020,7 +1020,7 @@ def _map_tool_definition(self, f: ToolDefinition) -> responses.FunctionToolParam
10201020
if f.text_format:
10211021
if not model_profile.openai_supports_freeform_function_calling:
10221022
raise UserError(
1023-
f'`{f.name}` is uses free-form function calling but {self._model_name} does not support free form function calling.'
1023+
f'Tool {f.name!r} uses freeform function calling but {self._model_name!r} does not support freeform function calling.'
10241024
)
10251025
if not f.only_takes_string_argument:
10261026
raise UserError(

0 commit comments

Comments
 (0)