Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -918,6 +918,10 @@ output might be lower in quality.

#### JSON Schema support

Use `response_json_schema` when you want to pass a standard JSON Schema
dictionary directly. If you are passing Python types, Pydantic models, or
other SDK-native schema helpers, use `response_schema` instead.

Schemas can be provided as standard JSON schema.

```python
Expand Down Expand Up @@ -954,7 +958,8 @@ print(response.text)

#### Pydantic Model Schema support

Schemas can be provided as Pydantic Models.
Schemas can also be provided as Python types or Pydantic models through
`response_schema`.

```python
from pydantic import BaseModel
Expand Down