Skip to content

Commit ec057c8

Browse files
gpt -> GPT or quoted
1 parent 5d2b372 commit ec057c8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/models/openai.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ timestamp_grammar_definition = r'^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01]) (?
197197
def timestamp_accepting_tool(timestamp: str): ...
198198
```
199199

200-
1. The GPT-5 family (`gpt-5`, `gpt-5-mini`, `gpt-5-nano`) all support freeform function calling with context free grammar constraints. Unfortunately gpt-5-nano often struggles with these calls.
200+
1. The GPT-5 family (`gpt-5`, `gpt-5-mini`, `gpt-5-nano`) all support freeform function calling with context free grammar constraints. Unfortunately `gpt-5-nano` often struggles with these calls.
201201
2. If the tool or model cannot be used with freeform function calling then it will be invoked in the normal way, which may lead to invalid input.
202202

203203
##### LARK
@@ -230,7 +230,7 @@ MINUTE: /[0-5]\d/
230230
def i_like_iso_dates(date: str): ...
231231
```
232232

233-
1. The GPT-5 family (`gpt-5`, `gpt-5-mini`, `gpt-5-nano`) all support freeform function calling with context free grammar constraints. Unfortunately gpt-5-nano often struggles with these calls.
233+
1. The GPT-5 family (`gpt-5`, `gpt-5-mini`, `gpt-5-nano`) all support freeform function calling with context free grammar constraints. Unfortunately `gpt-5-nano` often struggles with these calls.
234234
2. If the tool or model cannot be used with freeform function calling then it will be invoked in the normal way, which may lead to invalid input.
235235

236236
There is a limit to the grammar complexity that GPT-5 supports, as such it is important to test your grammar.

pydantic_ai_slim/pydantic_ai/tools.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ class FunctionTextFormat:
228228
229229
Calling a function in this way prevents parallel tool calling.
230230
231-
Note: this is currently only supported by OpenAI gpt-5 models.
231+
Note: this is currently only supported by OpenAI GPT-5 models.
232232
"""
233233

234234
syntax: Literal['lark', 'regex']
@@ -534,7 +534,7 @@ class ToolDefinition:
534534
535535
When `None` (the default), the model invokes the tool in the normal way and parallel tool calls are possible.
536536
537-
Note: this is currently only supported by OpenAI gpt-5 models.
537+
Note: this is currently only supported by OpenAI GPT-5 models.
538538
"""
539539

540540
kind: ToolKind = field(default='function')

0 commit comments

Comments
 (0)