mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-07-29 11:23:49 +08:00
15 lines
3.0 KiB
Plaintext
15 lines
3.0 KiB
Plaintext
---
|
|
title: "ChatJSONSchemaConfig"
|
|
---
|
|
|
|
JSON Schema configuration object
|
|
|
|
|
|
## Fields
|
|
|
|
| Field | Type | Required | Description | Example |
|
|
| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ |
|
|
| `description` | *Optional[str]* | :heavy_minus_sign: | Schema description for the model | A mathematical response |
|
|
| `name` | *str* | :heavy_check_mark: | Schema name (a-z, A-Z, 0-9, underscores, dashes, max 64 chars) | math_response |
|
|
| `schema_` | Dict[str, *Nullable[Any]*] | :heavy_minus_sign: | JSON Schema object | \{<br/>"properties": \{<br/>"answer": \{<br/>"type": "number"<br/>}<br/>},<br/>"required": [<br/>"answer"<br/>],<br/>"type": "object"<br/>} |
|
|
| `strict` | *OptionalNullable[bool]* | :heavy_minus_sign: | Enable strict schema adherence | false | |