Для AI-агентов: markdown этой страницы — /docs/schema-19fd6a107ff432d0d25e7b5f2583c56c7c9d83c39051e5da369386aa88078c5b.mdиндекс документации — /llms.txt
Схема: content.application/json.schema
Обновлено
| Поле | Значение |
|---|---|
| additionalProperties | false |
| properties.files.description | "Files the AI host attached: a download_url and a file_id each. ChatGPT fills this itself." |
| properties.files.items.additionalProperties | false |
| properties.files.items.properties.download_url.format | "uri" |
| properties.files.items.properties.download_url.maxLength | 8192 |
| properties.files.items.properties.download_url.type | "string" |
| properties.files.items.properties.file_id.maxLength | 1024 |
| properties.files.items.properties.file_id.minLength | 1 |
| properties.files.items.properties.file_id.type | "string" |
| properties.files.items.properties.file_name.maxLength | 1024 |
| properties.files.items.properties.file_name.minLength | 1 |
| properties.files.items.properties.file_name.type | "string" |
| properties.files.items.properties.media_kind.enum | ["voice","audio","video_note"] |
| properties.files.items.properties.media_kind.type | "string" |
| properties.files.items.properties.mime_type.maxLength | 255 |
| properties.files.items.properties.mime_type.minLength | 1 |
| properties.files.items.properties.mime_type.type | "string" |
| properties.files.items.required | ["download_url","file_id"] |
| properties.files.items.type | "object" |
| properties.files.maxItems | 10 |
| properties.files.type | "array" |
| properties.idempotency_key.maxLength | 256 |
| properties.idempotency_key.minLength | 1 |
| properties.idempotency_key.type | "string" |
| properties.sources.description | "HTTPS addresses of files on the business site or an allowed file host, or small files as data: addresses with byte_length. Up to 10 files and sources together." |
| properties.sources.items.additionalProperties | false |
| properties.sources.items.properties.byte_length.description | "Required with a data: address: the exact number of bytes the base64 payload decodes to." |
| properties.sources.items.properties.byte_length.exclusiveMinimum | 0 |
| properties.sources.items.properties.byte_length.type | "integer" |
| properties.sources.items.properties.file_name.maxLength | 1024 |
| properties.sources.items.properties.file_name.minLength | 1 |
| properties.sources.items.properties.file_name.type | "string" |
| properties.sources.items.properties.media_kind.enum | ["voice","audio","video_note"] |
| properties.sources.items.properties.media_kind.type | "string" |
| properties.sources.items.properties.mime_type.maxLength | 255 |
| properties.sources.items.properties.mime_type.minLength | 1 |
| properties.sources.items.properties.mime_type.type | "string" |
| properties.sources.items.properties.sha256.description | "Optional with a data: address: the SHA-256 of the decoded bytes, 64 hex characters; checked against them." |
| properties.sources.items.properties.sha256.maxLength | 64 |
| properties.sources.items.properties.sha256.minLength | 64 |
| properties.sources.items.properties.sha256.type | "string" |
| properties.sources.items.properties.url.description | "An https address, or for a small file (at most 131072 bytes after decoding) data:<mime>;base64,<payload>. A larger file goes through media_request_upload." |
| properties.sources.items.properties.url.maxLength | 1048576 |
| properties.sources.items.properties.url.minLength | 1 |
| properties.sources.items.properties.url.type | "string" |
| properties.sources.items.required | ["url"] |
| properties.sources.items.type | "object" |
| properties.sources.maxItems | 10 |
| properties.sources.type | "array" |
| required | ["idempotency_key"] |
| type | "object" |