Skip to content

Commit cf347c8

Browse files
committed
update docs: code format, use gpt-5
1 parent c2c7332 commit cf347c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/output.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -472,14 +472,14 @@ _(This example is complete, it can be run "as is")_
472472

473473
#### Partial validation during streaming {#partial-validation}
474474

475-
When [streaming responses](#streaming-model-responses), you can pass allow_partial=True to validate_response_output to make Pydantic output validators use partial validation.
475+
When [streaming responses](#streaming-model-responses), you can pass `allow_partial=True` to `validate_response_output` to make Pydantic output validators use partial validation.
476476

477477
By adding a `partial: bool` parameter as the last argument, you can access this information within output validator functions as well.
478478

479479
```python
480480
from pydantic_ai import Agent, ModelRetry, RunContext
481481

482-
agent = Agent('openai:gpt-4o')
482+
agent = Agent('openai:gpt-5')
483483

484484
@agent.output_validator
485485
def validate_output(ctx: RunContext, output: str, partial: bool) -> str:

0 commit comments

Comments
 (0)