Skip to content

Commit 5d9a846

Browse files
GDaamnDouweM
andauthored
Update docs
Co-authored-by: Douwe Maan <[email protected]>
1 parent d327750 commit 5d9a846

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docs/models/openai.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,9 +161,11 @@ result = agent.run_sync('What is the secret code?', model_settings=model_setting
161161
print(result.output)
162162
#> 1234
163163
```
164+
164165
By passing the `provider_response_id` from an earlier run, you can allow the model to build on its own prior reasoning without needing to resend the full message history.
165-
If message history is provided and all responses come from the same openai model,
166-
only the latest request and the `previous_response_id` from the latest response are sent to the server for efficiency.
166+
167+
If message history is provided and all responses come from the same OpenAI model,
168+
Pydantic AI will automatically only send the the latest request and the `previous_response_id` from the latest response to the API for efficiency.
167169

168170
## OpenAI-compatible Models
169171

0 commit comments

Comments
 (0)