@xyd-js/opensdk-python 0.0.0-build-f0c10f6-20260703195526
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/LICENSE +21 -0
- package/__fixtures__/-2.complex.openai/admin__organization__admin_api_keys__create/input.json +325 -0
- package/__fixtures__/-2.complex.openai/admin__organization__admin_api_keys__create/output.py +26 -0
- package/__fixtures__/-2.complex.openai/admin__organization__admin_api_keys__delete/input.json +201 -0
- package/__fixtures__/-2.complex.openai/admin__organization__admin_api_keys__delete/output.py +28 -0
- package/__fixtures__/-2.complex.openai/admin__organization__admin_api_keys__list/input.json +400 -0
- package/__fixtures__/-2.complex.openai/admin__organization__admin_api_keys__list/output.py +29 -0
- package/__fixtures__/-2.complex.openai/admin__organization__admin_api_keys__retrieve/input.json +304 -0
- package/__fixtures__/-2.complex.openai/admin__organization__admin_api_keys__retrieve/output.py +28 -0
- package/__fixtures__/-2.complex.openai/admin__organization__audit_logs__list/input.json +2602 -0
- package/__fixtures__/-2.complex.openai/admin__organization__audit_logs__list/output.py +29 -0
- package/__fixtures__/-2.complex.openai/admin__organization__certificates__activate__create/input.json +308 -0
- package/__fixtures__/-2.complex.openai/admin__organization__certificates__activate__create/output.py +32 -0
- package/__fixtures__/-2.complex.openai/admin__organization__certificates__create/input.json +308 -0
- package/__fixtures__/-2.complex.openai/admin__organization__certificates__create/output.py +28 -0
- package/__fixtures__/-2.complex.openai/admin__organization__certificates__deactivate__create/input.json +308 -0
- package/__fixtures__/-2.complex.openai/admin__organization__certificates__deactivate__create/output.py +32 -0
- package/__fixtures__/-2.complex.openai/admin__organization__certificates__delete/input.json +196 -0
- package/__fixtures__/-2.complex.openai/admin__organization__certificates__delete/output.py +28 -0
- package/__fixtures__/-2.complex.openai/admin__organization__certificates__list/input.json +356 -0
- package/__fixtures__/-2.complex.openai/admin__organization__certificates__list/output.py +29 -0
- package/__fixtures__/-2.complex.openai/admin__organization__certificates__retrieve/input.json +300 -0
- package/__fixtures__/-2.complex.openai/admin__organization__certificates__retrieve/output.py +30 -0
- package/__fixtures__/-2.complex.openai/admin__organization__certificates__update/input.json +310 -0
- package/__fixtures__/-2.complex.openai/admin__organization__certificates__update/output.py +30 -0
- package/__fixtures__/-2.complex.openai/admin__organization__costs__list/input.json +1062 -0
- package/__fixtures__/-2.complex.openai/admin__organization__costs__list/output.py +29 -0
- package/__fixtures__/-2.complex.openai/admin__organization__groups__create/input.json +239 -0
- package/__fixtures__/-2.complex.openai/admin__organization__groups__create/output.py +26 -0
- package/__fixtures__/-2.complex.openai/admin__organization__groups__delete/input.json +206 -0
- package/__fixtures__/-2.complex.openai/admin__organization__groups__delete/output.py +28 -0
- package/__fixtures__/-2.complex.openai/admin__organization__groups__list/input.json +316 -0
- package/__fixtures__/-2.complex.openai/admin__organization__groups__list/output.py +29 -0
- package/__fixtures__/-2.complex.openai/admin__organization__groups__roles__create/input.json +364 -0
- package/__fixtures__/-2.complex.openai/admin__organization__groups__roles__create/output.py +34 -0
- package/__fixtures__/-2.complex.openai/admin__organization__groups__roles__delete/input.json +210 -0
- package/__fixtures__/-2.complex.openai/admin__organization__groups__roles__delete/output.py +36 -0
- package/__fixtures__/-2.complex.openai/admin__organization__groups__roles__list/input.json +398 -0
- package/__fixtures__/-2.complex.openai/admin__organization__groups__roles__list/output.py +37 -0
- package/__fixtures__/-2.complex.openai/admin__organization__groups__update/input.json +241 -0
- package/__fixtures__/-2.complex.openai/admin__organization__groups__update/output.py +28 -0
- package/__fixtures__/-2.complex.openai/admin__organization__groups__users__create/input.json +237 -0
- package/__fixtures__/-2.complex.openai/admin__organization__groups__users__create/output.py +34 -0
- package/__fixtures__/-2.complex.openai/admin__organization__groups__users__delete/input.json +211 -0
- package/__fixtures__/-2.complex.openai/admin__organization__groups__users__delete/output.py +36 -0
- package/__fixtures__/-2.complex.openai/admin__organization__groups__users__list/input.json +314 -0
- package/__fixtures__/-2.complex.openai/admin__organization__groups__users__list/output.py +37 -0
- package/__fixtures__/-2.complex.openai/admin__organization__invites__create/input.json +386 -0
- package/__fixtures__/-2.complex.openai/admin__organization__invites__create/output.py +28 -0
- package/__fixtures__/-2.complex.openai/admin__organization__invites__delete/input.json +203 -0
- package/__fixtures__/-2.complex.openai/admin__organization__invites__delete/output.py +28 -0
- package/__fixtures__/-2.complex.openai/admin__organization__invites__list/input.json +414 -0
- package/__fixtures__/-2.complex.openai/admin__organization__invites__list/output.py +29 -0
- package/__fixtures__/-2.complex.openai/admin__organization__invites__retrieve/input.json +337 -0
- package/__fixtures__/-2.complex.openai/admin__organization__invites__retrieve/output.py +28 -0
- package/__fixtures__/-2.complex.openai/admin__organization__projects__api_keys__delete/input.json +279 -0
- package/__fixtures__/-2.complex.openai/admin__organization__projects__api_keys__delete/output.py +36 -0
- package/__fixtures__/-2.complex.openai/admin__organization__projects__api_keys__list/input.json +475 -0
- package/__fixtures__/-2.complex.openai/admin__organization__projects__api_keys__list/output.py +37 -0
- package/__fixtures__/-2.complex.openai/admin__organization__projects__api_keys__retrieve/input.json +400 -0
- package/__fixtures__/-2.complex.openai/admin__organization__projects__api_keys__retrieve/output.py +36 -0
- package/__fixtures__/-2.complex.openai/admin__organization__projects__archive/input.json +247 -0
- package/__fixtures__/-2.complex.openai/admin__organization__projects__archive/output.py +28 -0
- package/__fixtures__/-2.complex.openai/admin__organization__projects__certificates__activate__create/input.json +324 -0
- package/__fixtures__/-2.complex.openai/admin__organization__projects__certificates__activate__create/output.py +40 -0
- package/__fixtures__/-2.complex.openai/admin__organization__projects__certificates__deactivate__create/input.json +324 -0
- package/__fixtures__/-2.complex.openai/admin__organization__projects__certificates__deactivate__create/output.py +40 -0
- package/__fixtures__/-2.complex.openai/admin__organization__projects__certificates__list/input.json +372 -0
- package/__fixtures__/-2.complex.openai/admin__organization__projects__certificates__list/output.py +37 -0
- package/__fixtures__/-2.complex.openai/admin__organization__projects__create/input.json +281 -0
- package/__fixtures__/-2.complex.openai/admin__organization__projects__create/output.py +28 -0
- package/__fixtures__/-2.complex.openai/admin__organization__projects__groups__create/input.json +274 -0
- package/__fixtures__/-2.complex.openai/admin__organization__projects__groups__create/output.py +34 -0
- package/__fixtures__/-2.complex.openai/admin__organization__projects__groups__delete/input.json +211 -0
- package/__fixtures__/-2.complex.openai/admin__organization__projects__groups__delete/output.py +36 -0
- package/__fixtures__/-2.complex.openai/admin__organization__projects__groups__list/input.json +342 -0
- package/__fixtures__/-2.complex.openai/admin__organization__projects__groups__list/output.py +37 -0
- package/__fixtures__/-2.complex.openai/admin__organization__projects__list/input.json +330 -0
- package/__fixtures__/-2.complex.openai/admin__organization__projects__list/output.py +29 -0
- package/__fixtures__/-2.complex.openai/admin__organization__projects__rate_limits__list_rate_limits/input.json +358 -0
- package/__fixtures__/-2.complex.openai/admin__organization__projects__rate_limits__list_rate_limits/output.py +37 -0
- package/__fixtures__/-2.complex.openai/admin__organization__projects__rate_limits__update_rate_limit/input.json +407 -0
- package/__fixtures__/-2.complex.openai/admin__organization__projects__rate_limits__update_rate_limit/output.py +38 -0
- package/__fixtures__/-2.complex.openai/admin__organization__projects__retrieve/input.json +247 -0
- package/__fixtures__/-2.complex.openai/admin__organization__projects__retrieve/output.py +28 -0
- package/__fixtures__/-2.complex.openai/admin__organization__projects__service_accounts__create/input.json +372 -0
- package/__fixtures__/-2.complex.openai/admin__organization__projects__service_accounts__create/output.py +34 -0
- package/__fixtures__/-2.complex.openai/admin__organization__projects__service_accounts__delete/input.json +216 -0
- package/__fixtures__/-2.complex.openai/admin__organization__projects__service_accounts__delete/output.py +36 -0
- package/__fixtures__/-2.complex.openai/admin__organization__projects__service_accounts__list/input.json +391 -0
- package/__fixtures__/-2.complex.openai/admin__organization__projects__service_accounts__list/output.py +37 -0
- package/__fixtures__/-2.complex.openai/admin__organization__projects__service_accounts__retrieve/input.json +253 -0
- package/__fixtures__/-2.complex.openai/admin__organization__projects__service_accounts__retrieve/output.py +36 -0
- package/__fixtures__/-2.complex.openai/admin__organization__projects__update/input.json +356 -0
- package/__fixtures__/-2.complex.openai/admin__organization__projects__update/output.py +30 -0
- package/__fixtures__/-2.complex.openai/admin__organization__projects__users__create/input.json +349 -0
- package/__fixtures__/-2.complex.openai/admin__organization__projects__users__create/output.py +36 -0
- package/__fixtures__/-2.complex.openai/admin__organization__projects__users__delete/input.json +279 -0
- package/__fixtures__/-2.complex.openai/admin__organization__projects__users__delete/output.py +36 -0
- package/__fixtures__/-2.complex.openai/admin__organization__projects__users__list/input.json +387 -0
- package/__fixtures__/-2.complex.openai/admin__organization__projects__users__list/output.py +37 -0
- package/__fixtures__/-2.complex.openai/admin__organization__projects__users__retrieve/input.json +250 -0
- package/__fixtures__/-2.complex.openai/admin__organization__projects__users__retrieve/output.py +36 -0
- package/__fixtures__/-2.complex.openai/admin__organization__projects__users__update/input.json +339 -0
- package/__fixtures__/-2.complex.openai/admin__organization__projects__users__update/output.py +38 -0
- package/__fixtures__/-2.complex.openai/admin__organization__roles__create/input.json +283 -0
- package/__fixtures__/-2.complex.openai/admin__organization__roles__create/output.py +28 -0
- package/__fixtures__/-2.complex.openai/admin__organization__roles__delete/input.json +206 -0
- package/__fixtures__/-2.complex.openai/admin__organization__roles__delete/output.py +28 -0
- package/__fixtures__/-2.complex.openai/admin__organization__roles__list/input.json +338 -0
- package/__fixtures__/-2.complex.openai/admin__organization__roles__list/output.py +29 -0
- package/__fixtures__/-2.complex.openai/admin__organization__roles__update/input.json +296 -0
- package/__fixtures__/-2.complex.openai/admin__organization__roles__update/output.py +30 -0
- package/__fixtures__/-2.complex.openai/admin__organization__usage__audio_speeches__list/input.json +1108 -0
- package/__fixtures__/-2.complex.openai/admin__organization__usage__audio_speeches__list/output.py +35 -0
- package/__fixtures__/-2.complex.openai/admin__organization__usage__audio_transcriptions__list/input.json +1108 -0
- package/__fixtures__/-2.complex.openai/admin__organization__usage__audio_transcriptions__list/output.py +35 -0
- package/__fixtures__/-2.complex.openai/admin__organization__usage__code_interpreter_sessions__list/input.json +1054 -0
- package/__fixtures__/-2.complex.openai/admin__organization__usage__code_interpreter_sessions__list/output.py +35 -0
- package/__fixtures__/-2.complex.openai/admin__organization__usage__completions__list/input.json +1123 -0
- package/__fixtures__/-2.complex.openai/admin__organization__usage__completions__list/output.py +35 -0
- package/__fixtures__/-2.complex.openai/admin__organization__usage__embeddings__list/input.json +1108 -0
- package/__fixtures__/-2.complex.openai/admin__organization__usage__embeddings__list/output.py +35 -0
- package/__fixtures__/-2.complex.openai/admin__organization__usage__images__list/input.json +1176 -0
- package/__fixtures__/-2.complex.openai/admin__organization__usage__images__list/output.py +35 -0
- package/__fixtures__/-2.complex.openai/admin__organization__usage__moderations__list/input.json +1108 -0
- package/__fixtures__/-2.complex.openai/admin__organization__usage__moderations__list/output.py +35 -0
- package/__fixtures__/-2.complex.openai/admin__organization__usage__vector_stores__list/input.json +1054 -0
- package/__fixtures__/-2.complex.openai/admin__organization__usage__vector_stores__list/output.py +35 -0
- package/__fixtures__/-2.complex.openai/admin__organization__users__delete/input.json +202 -0
- package/__fixtures__/-2.complex.openai/admin__organization__users__delete/output.py +28 -0
- package/__fixtures__/-2.complex.openai/admin__organization__users__list/input.json +557 -0
- package/__fixtures__/-2.complex.openai/admin__organization__users__list/output.py +29 -0
- package/__fixtures__/-2.complex.openai/admin__organization__users__retrieve/input.json +472 -0
- package/__fixtures__/-2.complex.openai/admin__organization__users__retrieve/output.py +28 -0
- package/__fixtures__/-2.complex.openai/admin__organization__users__roles__create/input.json +611 -0
- package/__fixtures__/-2.complex.openai/admin__organization__users__roles__create/output.py +34 -0
- package/__fixtures__/-2.complex.openai/admin__organization__users__roles__delete/input.json +210 -0
- package/__fixtures__/-2.complex.openai/admin__organization__users__roles__delete/output.py +36 -0
- package/__fixtures__/-2.complex.openai/admin__organization__users__roles__list/input.json +398 -0
- package/__fixtures__/-2.complex.openai/admin__organization__users__roles__list/output.py +37 -0
- package/__fixtures__/-2.complex.openai/admin__organization__users__update/input.json +528 -0
- package/__fixtures__/-2.complex.openai/admin__organization__users__update/output.py +30 -0
- package/__fixtures__/-2.complex.openai/audio__speech__create/input.json +388 -0
- package/__fixtures__/-2.complex.openai/audio__speech__create/output.py +22 -0
- package/__fixtures__/-2.complex.openai/audio__transcriptions__create/input.json +999 -0
- package/__fixtures__/-2.complex.openai/audio__transcriptions__create/output.py +22 -0
- package/__fixtures__/-2.complex.openai/audio__translations__create/input.json +430 -0
- package/__fixtures__/-2.complex.openai/audio__translations__create/output.py +22 -0
- package/__fixtures__/-2.complex.openai/audio__voice_consents__create/input.json +244 -0
- package/__fixtures__/-2.complex.openai/audio__voice_consents__create/output.py +22 -0
- package/__fixtures__/-2.complex.openai/audio__voice_consents__delete/input.json +190 -0
- package/__fixtures__/-2.complex.openai/audio__voice_consents__delete/output.py +22 -0
- package/__fixtures__/-2.complex.openai/audio__voice_consents__list/input.json +285 -0
- package/__fixtures__/-2.complex.openai/audio__voice_consents__list/output.py +23 -0
- package/__fixtures__/-2.complex.openai/audio__voice_consents__retrieve/input.json +212 -0
- package/__fixtures__/-2.complex.openai/audio__voice_consents__retrieve/output.py +22 -0
- package/__fixtures__/-2.complex.openai/audio__voice_consents__update/input.json +236 -0
- package/__fixtures__/-2.complex.openai/audio__voice_consents__update/output.py +22 -0
- package/__fixtures__/-2.complex.openai/audio__voices__create/input.json +235 -0
- package/__fixtures__/-2.complex.openai/audio__voices__create/output.py +22 -0
- package/__fixtures__/-2.complex.openai/batches__cancel/input.json +594 -0
- package/__fixtures__/-2.complex.openai/batches__cancel/output.py +16 -0
- package/__fixtures__/-2.complex.openai/batches__create/input.json +701 -0
- package/__fixtures__/-2.complex.openai/batches__create/output.py +16 -0
- package/__fixtures__/-2.complex.openai/batches__list/input.json +665 -0
- package/__fixtures__/-2.complex.openai/batches__list/output.py +17 -0
- package/__fixtures__/-2.complex.openai/batches__retrieve/input.json +594 -0
- package/__fixtures__/-2.complex.openai/batches__retrieve/output.py +16 -0
- package/__fixtures__/-2.complex.openai/beta__assistants__create/input.json +1029 -0
- package/__fixtures__/-2.complex.openai/beta__assistants__create/output.py +22 -0
- package/__fixtures__/-2.complex.openai/beta__assistants__delete/input.json +190 -0
- package/__fixtures__/-2.complex.openai/beta__assistants__delete/output.py +22 -0
- package/__fixtures__/-2.complex.openai/beta__assistants__list/input.json +796 -0
- package/__fixtures__/-2.complex.openai/beta__assistants__list/output.py +23 -0
- package/__fixtures__/-2.complex.openai/beta__assistants__retrieve/input.json +694 -0
- package/__fixtures__/-2.complex.openai/beta__assistants__retrieve/output.py +22 -0
- package/__fixtures__/-2.complex.openai/beta__assistants__update/input.json +1045 -0
- package/__fixtures__/-2.complex.openai/beta__assistants__update/output.py +24 -0
- package/__fixtures__/-2.complex.openai/beta__chat_kit__sessions__cancel/input.json +482 -0
- package/__fixtures__/-2.complex.openai/beta__chat_kit__sessions__cancel/output.py +28 -0
- package/__fixtures__/-2.complex.openai/beta__chat_kit__sessions__create/input.json +738 -0
- package/__fixtures__/-2.complex.openai/beta__chat_kit__sessions__create/output.py +28 -0
- package/__fixtures__/-2.complex.openai/beta__chat_kit__threads__delete/input.json +200 -0
- package/__fixtures__/-2.complex.openai/beta__chat_kit__threads__delete/output.py +28 -0
- package/__fixtures__/-2.complex.openai/beta__chat_kit__threads__items__list/input.json +1218 -0
- package/__fixtures__/-2.complex.openai/beta__chat_kit__threads__items__list/output.py +37 -0
- package/__fixtures__/-2.complex.openai/beta__chat_kit__threads__list/input.json +444 -0
- package/__fixtures__/-2.complex.openai/beta__chat_kit__threads__list/output.py +29 -0
- package/__fixtures__/-2.complex.openai/beta__chat_kit__threads__retrieve/input.json +328 -0
- package/__fixtures__/-2.complex.openai/beta__chat_kit__threads__retrieve/output.py +28 -0
- package/__fixtures__/-2.complex.openai/beta__threads__create/input.json +665 -0
- package/__fixtures__/-2.complex.openai/beta__threads__create/output.py +22 -0
- package/__fixtures__/-2.complex.openai/beta__threads__delete/input.json +189 -0
- package/__fixtures__/-2.complex.openai/beta__threads__delete/output.py +22 -0
- package/__fixtures__/-2.complex.openai/beta__threads__messages__create/input.json +938 -0
- package/__fixtures__/-2.complex.openai/beta__threads__messages__create/output.py +30 -0
- package/__fixtures__/-2.complex.openai/beta__threads__messages__delete/input.json +203 -0
- package/__fixtures__/-2.complex.openai/beta__threads__messages__delete/output.py +30 -0
- package/__fixtures__/-2.complex.openai/beta__threads__messages__list/input.json +945 -0
- package/__fixtures__/-2.complex.openai/beta__threads__messages__list/output.py +31 -0
- package/__fixtures__/-2.complex.openai/beta__threads__messages__retrieve/input.json +832 -0
- package/__fixtures__/-2.complex.openai/beta__threads__messages__retrieve/output.py +30 -0
- package/__fixtures__/-2.complex.openai/beta__threads__messages__update/input.json +855 -0
- package/__fixtures__/-2.complex.openai/beta__threads__messages__update/output.py +32 -0
- package/__fixtures__/-2.complex.openai/beta__threads__new_and_run/input.json +1899 -0
- package/__fixtures__/-2.complex.openai/beta__threads__new_and_run/output.py +22 -0
- package/__fixtures__/-2.complex.openai/beta__threads__retrieve/input.json +283 -0
- package/__fixtures__/-2.complex.openai/beta__threads__retrieve/output.py +22 -0
- package/__fixtures__/-2.complex.openai/beta__threads__runs__cancel/input.json +1181 -0
- package/__fixtures__/-2.complex.openai/beta__threads__runs__cancel/output.py +30 -0
- package/__fixtures__/-2.complex.openai/beta__threads__runs__create/input.json +1851 -0
- package/__fixtures__/-2.complex.openai/beta__threads__runs__create/output.py +30 -0
- package/__fixtures__/-2.complex.openai/beta__threads__runs__list/input.json +1285 -0
- package/__fixtures__/-2.complex.openai/beta__threads__runs__list/output.py +31 -0
- package/__fixtures__/-2.complex.openai/beta__threads__runs__retrieve/input.json +1181 -0
- package/__fixtures__/-2.complex.openai/beta__threads__runs__retrieve/output.py +30 -0
- package/__fixtures__/-2.complex.openai/beta__threads__runs__steps__list/input.json +1066 -0
- package/__fixtures__/-2.complex.openai/beta__threads__runs__steps__list/output.py +39 -0
- package/__fixtures__/-2.complex.openai/beta__threads__runs__steps__retrieve/input.json +964 -0
- package/__fixtures__/-2.complex.openai/beta__threads__runs__steps__retrieve/output.py +40 -0
- package/__fixtures__/-2.complex.openai/beta__threads__runs__submit_tool_outputs__create/input.json +1246 -0
- package/__fixtures__/-2.complex.openai/beta__threads__runs__submit_tool_outputs__create/output.py +38 -0
- package/__fixtures__/-2.complex.openai/beta__threads__runs__update/input.json +1204 -0
- package/__fixtures__/-2.complex.openai/beta__threads__runs__update/output.py +32 -0
- package/__fixtures__/-2.complex.openai/beta__threads__update/input.json +315 -0
- package/__fixtures__/-2.complex.openai/beta__threads__update/output.py +24 -0
- package/__fixtures__/-2.complex.openai/chat__completions__create/input.json +3325 -0
- package/__fixtures__/-2.complex.openai/chat__completions__create/output.py +22 -0
- package/__fixtures__/-2.complex.openai/chat__completions__delete/input.json +192 -0
- package/__fixtures__/-2.complex.openai/chat__completions__delete/output.py +22 -0
- package/__fixtures__/-2.complex.openai/chat__completions__list/input.json +1069 -0
- package/__fixtures__/-2.complex.openai/chat__completions__list/output.py +23 -0
- package/__fixtures__/-2.complex.openai/chat__completions__messages__list/input.json +770 -0
- package/__fixtures__/-2.complex.openai/chat__completions__messages__list/output.py +31 -0
- package/__fixtures__/-2.complex.openai/chat__completions__retrieve/input.json +938 -0
- package/__fixtures__/-2.complex.openai/chat__completions__retrieve/output.py +22 -0
- package/__fixtures__/-2.complex.openai/chat__completions__update/input.json +973 -0
- package/__fixtures__/-2.complex.openai/chat__completions__update/output.py +22 -0
- package/__fixtures__/-2.complex.openai/completions__create/input.json +788 -0
- package/__fixtures__/-2.complex.openai/completions__create/output.py +16 -0
- package/__fixtures__/-2.complex.openai/containers__create/input.json +671 -0
- package/__fixtures__/-2.complex.openai/containers__create/output.py +16 -0
- package/__fixtures__/-2.complex.openai/containers__delete/input.json +142 -0
- package/__fixtures__/-2.complex.openai/containers__delete/output.py +16 -0
- package/__fixtures__/-2.complex.openai/containers__files__content/input.json +154 -0
- package/__fixtures__/-2.complex.openai/containers__files__content/output.py +24 -0
- package/__fixtures__/-2.complex.openai/containers__files__create/input.json +261 -0
- package/__fixtures__/-2.complex.openai/containers__files__create/output.py +24 -0
- package/__fixtures__/-2.complex.openai/containers__files__delete/input.json +154 -0
- package/__fixtures__/-2.complex.openai/containers__files__delete/output.py +24 -0
- package/__fixtures__/-2.complex.openai/containers__files__list/input.json +337 -0
- package/__fixtures__/-2.complex.openai/containers__files__list/output.py +25 -0
- package/__fixtures__/-2.complex.openai/containers__files__retrieve/input.json +235 -0
- package/__fixtures__/-2.complex.openai/containers__files__retrieve/output.py +24 -0
- package/__fixtures__/-2.complex.openai/containers__list/input.json +438 -0
- package/__fixtures__/-2.complex.openai/containers__list/output.py +17 -0
- package/__fixtures__/-2.complex.openai/containers__retrieve/input.json +329 -0
- package/__fixtures__/-2.complex.openai/containers__retrieve/output.py +16 -0
- package/__fixtures__/-2.complex.openai/conversations__create/input.json +6737 -0
- package/__fixtures__/-2.complex.openai/conversations__create/output.py +16 -0
- package/__fixtures__/-2.complex.openai/conversations__delete/input.json +186 -0
- package/__fixtures__/-2.complex.openai/conversations__delete/output.py +16 -0
- package/__fixtures__/-2.complex.openai/conversations__items__create/input.json +8352 -0
- package/__fixtures__/-2.complex.openai/conversations__items__create/output.py +25 -0
- package/__fixtures__/-2.complex.openai/conversations__items__delete/input.json +213 -0
- package/__fixtures__/-2.complex.openai/conversations__items__delete/output.py +24 -0
- package/__fixtures__/-2.complex.openai/conversations__items__list/input.json +6695 -0
- package/__fixtures__/-2.complex.openai/conversations__items__list/output.py +25 -0
- package/__fixtures__/-2.complex.openai/conversations__items__retrieve/input.json +6597 -0
- package/__fixtures__/-2.complex.openai/conversations__items__retrieve/output.py +26 -0
- package/__fixtures__/-2.complex.openai/conversations__retrieve/input.json +198 -0
- package/__fixtures__/-2.complex.openai/conversations__retrieve/output.py +16 -0
- package/__fixtures__/-2.complex.openai/conversations__update/input.json +233 -0
- package/__fixtures__/-2.complex.openai/conversations__update/output.py +16 -0
- package/__fixtures__/-2.complex.openai/embeddings__create/input.json +395 -0
- package/__fixtures__/-2.complex.openai/embeddings__create/output.py +16 -0
- package/__fixtures__/-2.complex.openai/evals__create/input.json +1424 -0
- package/__fixtures__/-2.complex.openai/evals__create/output.py +16 -0
- package/__fixtures__/-2.complex.openai/evals__delete/input.json +232 -0
- package/__fixtures__/-2.complex.openai/evals__delete/output.py +16 -0
- package/__fixtures__/-2.complex.openai/evals__list/input.json +1251 -0
- package/__fixtures__/-2.complex.openai/evals__list/output.py +17 -0
- package/__fixtures__/-2.complex.openai/evals__retrieve/input.json +1127 -0
- package/__fixtures__/-2.complex.openai/evals__retrieve/output.py +16 -0
- package/__fixtures__/-2.complex.openai/evals__runs__cancel/input.json +4445 -0
- package/__fixtures__/-2.complex.openai/evals__runs__cancel/output.py +24 -0
- package/__fixtures__/-2.complex.openai/evals__runs__create/input.json +4526 -0
- package/__fixtures__/-2.complex.openai/evals__runs__create/output.py +24 -0
- package/__fixtures__/-2.complex.openai/evals__runs__delete/input.json +246 -0
- package/__fixtures__/-2.complex.openai/evals__runs__delete/output.py +24 -0
- package/__fixtures__/-2.complex.openai/evals__runs__list/input.json +4579 -0
- package/__fixtures__/-2.complex.openai/evals__runs__list/output.py +25 -0
- package/__fixtures__/-2.complex.openai/evals__runs__output_items__list/input.json +685 -0
- package/__fixtures__/-2.complex.openai/evals__runs__output_items__list/output.py +33 -0
- package/__fixtures__/-2.complex.openai/evals__runs__output_items__retrieve/input.json +560 -0
- package/__fixtures__/-2.complex.openai/evals__runs__output_items__retrieve/output.py +32 -0
- package/__fixtures__/-2.complex.openai/evals__runs__retrieve/input.json +4445 -0
- package/__fixtures__/-2.complex.openai/evals__runs__retrieve/output.py +24 -0
- package/__fixtures__/-2.complex.openai/evals__update/input.json +1160 -0
- package/__fixtures__/-2.complex.openai/evals__update/output.py +18 -0
- package/__fixtures__/-2.complex.openai/files__content/input.json +151 -0
- package/__fixtures__/-2.complex.openai/files__content/output.py +16 -0
- package/__fixtures__/-2.complex.openai/files__create/input.json +379 -0
- package/__fixtures__/-2.complex.openai/files__create/output.py +16 -0
- package/__fixtures__/-2.complex.openai/files__delete/input.json +184 -0
- package/__fixtures__/-2.complex.openai/files__delete/output.py +16 -0
- package/__fixtures__/-2.complex.openai/files__list/input.json +397 -0
- package/__fixtures__/-2.complex.openai/files__list/output.py +17 -0
- package/__fixtures__/-2.complex.openai/files__retrieve/input.json +295 -0
- package/__fixtures__/-2.complex.openai/files__retrieve/output.py +16 -0
- package/__fixtures__/-2.complex.openai/fine_tuning__alpha__graders__run__create/input.json +1225 -0
- package/__fixtures__/-2.complex.openai/fine_tuning__alpha__graders__run__create/output.py +34 -0
- package/__fixtures__/-2.complex.openai/fine_tuning__alpha__graders__validate__create/input.json +991 -0
- package/__fixtures__/-2.complex.openai/fine_tuning__alpha__graders__validate__create/output.py +32 -0
- package/__fixtures__/-2.complex.openai/fine_tuning__checkpoints__permissions__create/input.json +297 -0
- package/__fixtures__/-2.complex.openai/fine_tuning__checkpoints__permissions__create/output.py +29 -0
- package/__fixtures__/-2.complex.openai/fine_tuning__checkpoints__permissions__delete/input.json +208 -0
- package/__fixtures__/-2.complex.openai/fine_tuning__checkpoints__permissions__delete/output.py +30 -0
- package/__fixtures__/-2.complex.openai/fine_tuning__checkpoints__permissions__list/input.json +325 -0
- package/__fixtures__/-2.complex.openai/fine_tuning__checkpoints__permissions__list/output.py +31 -0
- package/__fixtures__/-2.complex.openai/fine_tuning__jobs__cancel/input.json +1645 -0
- package/__fixtures__/-2.complex.openai/fine_tuning__jobs__cancel/output.py +22 -0
- package/__fixtures__/-2.complex.openai/fine_tuning__jobs__checkpoints__list/input.json +383 -0
- package/__fixtures__/-2.complex.openai/fine_tuning__jobs__checkpoints__list/output.py +31 -0
- package/__fixtures__/-2.complex.openai/fine_tuning__jobs__create/input.json +1887 -0
- package/__fixtures__/-2.complex.openai/fine_tuning__jobs__create/output.py +22 -0
- package/__fixtures__/-2.complex.openai/fine_tuning__jobs__list/input.json +1714 -0
- package/__fixtures__/-2.complex.openai/fine_tuning__jobs__list/output.py +23 -0
- package/__fixtures__/-2.complex.openai/fine_tuning__jobs__list_events/input.json +330 -0
- package/__fixtures__/-2.complex.openai/fine_tuning__jobs__list_events/output.py +25 -0
- package/__fixtures__/-2.complex.openai/fine_tuning__jobs__pause/input.json +1645 -0
- package/__fixtures__/-2.complex.openai/fine_tuning__jobs__pause/output.py +22 -0
- package/__fixtures__/-2.complex.openai/fine_tuning__jobs__resume/input.json +1645 -0
- package/__fixtures__/-2.complex.openai/fine_tuning__jobs__resume/output.py +22 -0
- package/__fixtures__/-2.complex.openai/fine_tuning__jobs__retrieve/input.json +1645 -0
- package/__fixtures__/-2.complex.openai/fine_tuning__jobs__retrieve/output.py +22 -0
- package/__fixtures__/-2.complex.openai/images__edits__create/input.json +744 -0
- package/__fixtures__/-2.complex.openai/images__edits__create/output.py +22 -0
- package/__fixtures__/-2.complex.openai/images__generations__create/input.json +789 -0
- package/__fixtures__/-2.complex.openai/images__generations__create/output.py +22 -0
- package/__fixtures__/-2.complex.openai/images__variations__create/input.json +550 -0
- package/__fixtures__/-2.complex.openai/images__variations__create/output.py +22 -0
- package/__fixtures__/-2.complex.openai/models__delete/input.json +184 -0
- package/__fixtures__/-2.complex.openai/models__delete/output.py +16 -0
- package/__fixtures__/-2.complex.openai/models__list/input.json +221 -0
- package/__fixtures__/-2.complex.openai/models__list/output.py +15 -0
- package/__fixtures__/-2.complex.openai/models__retrieve/input.json +199 -0
- package/__fixtures__/-2.complex.openai/models__retrieve/output.py +16 -0
- package/__fixtures__/-2.complex.openai/moderations__create/input.json +831 -0
- package/__fixtures__/-2.complex.openai/moderations__create/output.py +16 -0
- package/__fixtures__/-2.complex.openai/projects__groups__roles__create/input.json +368 -0
- package/__fixtures__/-2.complex.openai/projects__groups__roles__create/output.py +30 -0
- package/__fixtures__/-2.complex.openai/projects__groups__roles__delete/input.json +214 -0
- package/__fixtures__/-2.complex.openai/projects__groups__roles__delete/output.py +32 -0
- package/__fixtures__/-2.complex.openai/projects__groups__roles__list/input.json +402 -0
- package/__fixtures__/-2.complex.openai/projects__groups__roles__list/output.py +33 -0
- package/__fixtures__/-2.complex.openai/projects__roles__create/input.json +289 -0
- package/__fixtures__/-2.complex.openai/projects__roles__create/output.py +24 -0
- package/__fixtures__/-2.complex.openai/projects__roles__delete/input.json +210 -0
- package/__fixtures__/-2.complex.openai/projects__roles__delete/output.py +24 -0
- package/__fixtures__/-2.complex.openai/projects__roles__list/input.json +344 -0
- package/__fixtures__/-2.complex.openai/projects__roles__list/output.py +25 -0
- package/__fixtures__/-2.complex.openai/projects__roles__update/input.json +300 -0
- package/__fixtures__/-2.complex.openai/projects__roles__update/output.py +26 -0
- package/__fixtures__/-2.complex.openai/projects__users__roles__create/input.json +615 -0
- package/__fixtures__/-2.complex.openai/projects__users__roles__create/output.py +30 -0
- package/__fixtures__/-2.complex.openai/projects__users__roles__delete/input.json +214 -0
- package/__fixtures__/-2.complex.openai/projects__users__roles__delete/output.py +32 -0
- package/__fixtures__/-2.complex.openai/projects__users__roles__list/input.json +402 -0
- package/__fixtures__/-2.complex.openai/projects__users__roles__list/output.py +33 -0
- package/__fixtures__/-2.complex.openai/realtime__calls__accept/input.json +1768 -0
- package/__fixtures__/-2.complex.openai/realtime__calls__accept/output.py +24 -0
- package/__fixtures__/-2.complex.openai/realtime__calls__create/input.json +1790 -0
- package/__fixtures__/-2.complex.openai/realtime__calls__create/output.py +22 -0
- package/__fixtures__/-2.complex.openai/realtime__calls__hangup/input.json +147 -0
- package/__fixtures__/-2.complex.openai/realtime__calls__hangup/output.py +22 -0
- package/__fixtures__/-2.complex.openai/realtime__calls__refer/input.json +175 -0
- package/__fixtures__/-2.complex.openai/realtime__calls__refer/output.py +22 -0
- package/__fixtures__/-2.complex.openai/realtime__calls__reject/input.json +175 -0
- package/__fixtures__/-2.complex.openai/realtime__calls__reject/output.py +24 -0
- package/__fixtures__/-2.complex.openai/realtime__client_secrets__create/input.json +2407 -0
- package/__fixtures__/-2.complex.openai/realtime__client_secrets__create/output.py +22 -0
- package/__fixtures__/-2.complex.openai/realtime__sessions__create/input.json +1400 -0
- package/__fixtures__/-2.complex.openai/realtime__sessions__create/output.py +22 -0
- package/__fixtures__/-2.complex.openai/realtime__transcription_sessions__create/input.json +562 -0
- package/__fixtures__/-2.complex.openai/realtime__transcription_sessions__create/output.py +22 -0
- package/__fixtures__/-2.complex.openai/realtime__translations__client_secrets__create/input.json +498 -0
- package/__fixtures__/-2.complex.openai/realtime__translations__client_secrets__create/output.py +28 -0
- package/__fixtures__/-2.complex.openai/responses__cancel/input.json +9526 -0
- package/__fixtures__/-2.complex.openai/responses__cancel/output.py +16 -0
- package/__fixtures__/-2.complex.openai/responses__compact__create/input.json +8721 -0
- package/__fixtures__/-2.complex.openai/responses__compact__create/output.py +22 -0
- package/__fixtures__/-2.complex.openai/responses__create/input.json +9862 -0
- package/__fixtures__/-2.complex.openai/responses__create/output.py +16 -0
- package/__fixtures__/-2.complex.openai/responses__delete/input.json +194 -0
- package/__fixtures__/-2.complex.openai/responses__delete/output.py +16 -0
- package/__fixtures__/-2.complex.openai/responses__input_items__list/input.json +6686 -0
- package/__fixtures__/-2.complex.openai/responses__input_items__list/output.py +25 -0
- package/__fixtures__/-2.complex.openai/responses__input_tokens__count/input.json +7368 -0
- package/__fixtures__/-2.complex.openai/responses__input_tokens__count/output.py +22 -0
- package/__fixtures__/-2.complex.openai/responses__retrieve/input.json +9550 -0
- package/__fixtures__/-2.complex.openai/responses__retrieve/output.py +18 -0
- package/__fixtures__/-2.complex.openai/skills__content/input.json +152 -0
- package/__fixtures__/-2.complex.openai/skills__content/output.py +16 -0
- package/__fixtures__/-2.complex.openai/skills__create/input.json +258 -0
- package/__fixtures__/-2.complex.openai/skills__create/output.py +14 -0
- package/__fixtures__/-2.complex.openai/skills__delete/input.json +186 -0
- package/__fixtures__/-2.complex.openai/skills__delete/output.py +16 -0
- package/__fixtures__/-2.complex.openai/skills__list/input.json +323 -0
- package/__fixtures__/-2.complex.openai/skills__list/output.py +17 -0
- package/__fixtures__/-2.complex.openai/skills__retrieve/input.json +226 -0
- package/__fixtures__/-2.complex.openai/skills__retrieve/output.py +16 -0
- package/__fixtures__/-2.complex.openai/skills__update/input.json +251 -0
- package/__fixtures__/-2.complex.openai/skills__update/output.py +16 -0
- package/__fixtures__/-2.complex.openai/skills__versions__content/input.json +166 -0
- package/__fixtures__/-2.complex.openai/skills__versions__content/output.py +24 -0
- package/__fixtures__/-2.complex.openai/skills__versions__create/input.json +284 -0
- package/__fixtures__/-2.complex.openai/skills__versions__create/output.py +24 -0
- package/__fixtures__/-2.complex.openai/skills__versions__delete/input.json +209 -0
- package/__fixtures__/-2.complex.openai/skills__versions__delete/output.py +24 -0
- package/__fixtures__/-2.complex.openai/skills__versions__list/input.json +341 -0
- package/__fixtures__/-2.complex.openai/skills__versions__list/output.py +25 -0
- package/__fixtures__/-2.complex.openai/skills__versions__retrieve/input.json +240 -0
- package/__fixtures__/-2.complex.openai/skills__versions__retrieve/output.py +24 -0
- package/__fixtures__/-2.complex.openai/uploads__cancel/input.json +407 -0
- package/__fixtures__/-2.complex.openai/uploads__cancel/output.py +16 -0
- package/__fixtures__/-2.complex.openai/uploads__complete/input.json +443 -0
- package/__fixtures__/-2.complex.openai/uploads__complete/output.py +18 -0
- package/__fixtures__/-2.complex.openai/uploads__create/input.json +501 -0
- package/__fixtures__/-2.complex.openai/uploads__create/output.py +16 -0
- package/__fixtures__/-2.complex.openai/uploads__parts__create/input.json +229 -0
- package/__fixtures__/-2.complex.openai/uploads__parts__create/output.py +24 -0
- package/__fixtures__/-2.complex.openai/vector_stores__create/input.json +507 -0
- package/__fixtures__/-2.complex.openai/vector_stores__create/output.py +16 -0
- package/__fixtures__/-2.complex.openai/vector_stores__delete/input.json +184 -0
- package/__fixtures__/-2.complex.openai/vector_stores__delete/output.py +16 -0
- package/__fixtures__/-2.complex.openai/vector_stores__file_batches__cancel/input.json +300 -0
- package/__fixtures__/-2.complex.openai/vector_stores__file_batches__cancel/output.py +24 -0
- package/__fixtures__/-2.complex.openai/vector_stores__file_batches__create/input.json +314 -0
- package/__fixtures__/-2.complex.openai/vector_stores__file_batches__create/output.py +22 -0
- package/__fixtures__/-2.complex.openai/vector_stores__file_batches__list_files/input.json +571 -0
- package/__fixtures__/-2.complex.openai/vector_stores__file_batches__list_files/output.py +27 -0
- package/__fixtures__/-2.complex.openai/vector_stores__file_batches__retrieve/input.json +302 -0
- package/__fixtures__/-2.complex.openai/vector_stores__file_batches__retrieve/output.py +24 -0
- package/__fixtures__/-2.complex.openai/vector_stores__files__content/input.json +249 -0
- package/__fixtures__/-2.complex.openai/vector_stores__files__content/output.py +25 -0
- package/__fixtures__/-2.complex.openai/vector_stores__files__create/input.json +527 -0
- package/__fixtures__/-2.complex.openai/vector_stores__files__create/output.py +24 -0
- package/__fixtures__/-2.complex.openai/vector_stores__files__delete/input.json +198 -0
- package/__fixtures__/-2.complex.openai/vector_stores__files__delete/output.py +24 -0
- package/__fixtures__/-2.complex.openai/vector_stores__files__list/input.json +562 -0
- package/__fixtures__/-2.complex.openai/vector_stores__files__list/output.py +25 -0
- package/__fixtures__/-2.complex.openai/vector_stores__files__retrieve/input.json +432 -0
- package/__fixtures__/-2.complex.openai/vector_stores__files__retrieve/output.py +24 -0
- package/__fixtures__/-2.complex.openai/vector_stores__files__update/input.json +455 -0
- package/__fixtures__/-2.complex.openai/vector_stores__files__update/output.py +24 -0
- package/__fixtures__/-2.complex.openai/vector_stores__list/input.json +468 -0
- package/__fixtures__/-2.complex.openai/vector_stores__list/output.py +17 -0
- package/__fixtures__/-2.complex.openai/vector_stores__retrieve/input.json +366 -0
- package/__fixtures__/-2.complex.openai/vector_stores__retrieve/output.py +16 -0
- package/__fixtures__/-2.complex.openai/vector_stores__search/input.json +637 -0
- package/__fixtures__/-2.complex.openai/vector_stores__search/output.py +19 -0
- package/__fixtures__/-2.complex.openai/vector_stores__update/input.json +409 -0
- package/__fixtures__/-2.complex.openai/vector_stores__update/output.py +18 -0
- package/__fixtures__/-2.complex.openai/videos__characters__create/input.json +216 -0
- package/__fixtures__/-2.complex.openai/videos__characters__create/output.py +22 -0
- package/__fixtures__/-2.complex.openai/videos__characters__retrieve/input.json +193 -0
- package/__fixtures__/-2.complex.openai/videos__characters__retrieve/output.py +22 -0
- package/__fixtures__/-2.complex.openai/videos__create/input.json +465 -0
- package/__fixtures__/-2.complex.openai/videos__create/output.py +16 -0
- package/__fixtures__/-2.complex.openai/videos__delete/input.json +190 -0
- package/__fixtures__/-2.complex.openai/videos__delete/output.py +16 -0
- package/__fixtures__/-2.complex.openai/videos__download_content/input.json +181 -0
- package/__fixtures__/-2.complex.openai/videos__download_content/output.py +18 -0
- package/__fixtures__/-2.complex.openai/videos__edits__create/input.json +422 -0
- package/__fixtures__/-2.complex.openai/videos__edits__create/output.py +20 -0
- package/__fixtures__/-2.complex.openai/videos__extensions__create/input.json +446 -0
- package/__fixtures__/-2.complex.openai/videos__extensions__create/output.py +20 -0
- package/__fixtures__/-2.complex.openai/videos__list/input.json +477 -0
- package/__fixtures__/-2.complex.openai/videos__list/output.py +17 -0
- package/__fixtures__/-2.complex.openai/videos__remix/input.json +405 -0
- package/__fixtures__/-2.complex.openai/videos__remix/output.py +16 -0
- package/__fixtures__/-2.complex.openai/videos__retrieve/input.json +380 -0
- package/__fixtures__/-2.complex.openai/videos__retrieve/output.py +16 -0
- package/__fixtures__/1.basic/input.json +249 -0
- package/__fixtures__/1.basic/output/petstore/__init__.py +6 -0
- package/__fixtures__/1.basic/output/petstore/_client.py +21 -0
- package/__fixtures__/1.basic/output/petstore/_pagination.py +42 -0
- package/__fixtures__/1.basic/output/petstore/_transport.py +391 -0
- package/__fixtures__/1.basic/output/petstore/models.py +33 -0
- package/__fixtures__/1.basic/output/petstore/resources.py +25 -0
- package/__fixtures__/1.basic/output/pyproject.toml +12 -0
- package/__fixtures__/1.basic/output/tests/conftest.py +16 -0
- package/__fixtures__/1.basic/output/tests/test_pets.py +36 -0
- package/__fixtures__/1.basic/output/tests/utils.py +28 -0
- package/__fixtures__/2.wire/input.json +351 -0
- package/__fixtures__/2.wire/output/pyproject.toml +12 -0
- package/__fixtures__/2.wire/output/tests/conftest.py +16 -0
- package/__fixtures__/2.wire/output/tests/test_items.py +18 -0
- package/__fixtures__/2.wire/output/tests/test_tokens.py +17 -0
- package/__fixtures__/2.wire/output/tests/test_uploads.py +27 -0
- package/__fixtures__/2.wire/output/tests/utils.py +28 -0
- package/__fixtures__/2.wire/output/wire_service/__init__.py +6 -0
- package/__fixtures__/2.wire/output/wire_service/_client.py +23 -0
- package/__fixtures__/2.wire/output/wire_service/_pagination.py +42 -0
- package/__fixtures__/2.wire/output/wire_service/_transport.py +391 -0
- package/__fixtures__/2.wire/output/wire_service/models.py +44 -0
- package/__fixtures__/2.wire/output/wire_service/resources.py +38 -0
- package/__tests__/docs.test.ts +115 -0
- package/__tests__/e2e/harness.ts +79 -0
- package/__tests__/e2e/openai.test.ts +14 -0
- package/__tests__/e2e/publish.test.ts +19 -0
- package/__tests__/opensdk-python.test.ts +134 -0
- package/__tests__/utils.ts +117 -0
- package/biome.json +25 -0
- package/dist/index.cjs +1274 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +32 -0
- package/dist/index.d.ts +32 -0
- package/dist/index.js +1246 -0
- package/dist/index.js.map +1 -0
- package/index.ts +1 -0
- package/package.json +30 -0
- package/src/emitter.ts +95 -0
- package/src/example-py.ts +60 -0
- package/src/index.ts +4 -0
- package/src/method.ts +13 -0
- package/src/naming.ts +45 -0
- package/src/project.ts +446 -0
- package/src/publish.ts +22 -0
- package/src/pytype.ts +86 -0
- package/src/runtime.ts +551 -0
- package/src/tests-py.ts +197 -0
- package/src/types.ts +8 -0
- package/tsconfig.json +18 -0
- package/tsup.config.ts +19 -0
- package/vitest.config.ts +8 -0
|
@@ -0,0 +1,1768 @@
|
|
|
1
|
+
{
|
|
2
|
+
"opensdk": "1.0.0",
|
|
3
|
+
"info": {
|
|
4
|
+
"title": "openai",
|
|
5
|
+
"version": "2.3.0"
|
|
6
|
+
},
|
|
7
|
+
"servers": [
|
|
8
|
+
"https://api.openai.com/v1"
|
|
9
|
+
],
|
|
10
|
+
"security": [
|
|
11
|
+
{
|
|
12
|
+
"type": "http",
|
|
13
|
+
"kind": "bearer",
|
|
14
|
+
"schemeName": "ApiKeyAuth",
|
|
15
|
+
"envVar": "OPENAI_API_KEY",
|
|
16
|
+
"scheme": "bearer"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"type": "http",
|
|
20
|
+
"kind": "bearer",
|
|
21
|
+
"schemeName": "AdminApiKeyAuth",
|
|
22
|
+
"envVar": "OPENAI_API_KEY",
|
|
23
|
+
"scheme": "bearer"
|
|
24
|
+
}
|
|
25
|
+
],
|
|
26
|
+
"types": [
|
|
27
|
+
{
|
|
28
|
+
"name": "RealtimeSessionCreateRequestGa",
|
|
29
|
+
"kind": "struct",
|
|
30
|
+
"fields": [
|
|
31
|
+
{
|
|
32
|
+
"name": "type",
|
|
33
|
+
"type": {
|
|
34
|
+
"kind": "scalar",
|
|
35
|
+
"scalar": "string",
|
|
36
|
+
"const": "realtime"
|
|
37
|
+
},
|
|
38
|
+
"required": true,
|
|
39
|
+
"description": "The type of session to create. Always `realtime` for the Realtime API.\n"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"name": "output_modalities",
|
|
43
|
+
"type": {
|
|
44
|
+
"kind": "array",
|
|
45
|
+
"items": {
|
|
46
|
+
"kind": "ref",
|
|
47
|
+
"name": "RealtimeSessionCreateRequestGaOutputModalitiesItem"
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"required": false,
|
|
51
|
+
"default": [
|
|
52
|
+
"audio"
|
|
53
|
+
],
|
|
54
|
+
"description": "The set of modalities the model can respond with. It defaults to `[\"audio\"]`, indicating\nthat the model will respond with audio plus a transcript. `[\"text\"]` can be used to make\nthe model respond with text only. It is not possible to request both `text` and `audio` at the same time.\n"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"name": "model",
|
|
58
|
+
"type": {
|
|
59
|
+
"kind": "ref",
|
|
60
|
+
"name": "RealtimeSessionCreateRequestGaModel"
|
|
61
|
+
},
|
|
62
|
+
"required": false,
|
|
63
|
+
"description": "The Realtime model used for this session.\n"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"name": "instructions",
|
|
67
|
+
"type": {
|
|
68
|
+
"kind": "scalar",
|
|
69
|
+
"scalar": "string"
|
|
70
|
+
},
|
|
71
|
+
"required": false,
|
|
72
|
+
"description": "The default system instructions (i.e. system message) prepended to model calls. This field allows the client to guide the model on desired responses. The model can be instructed on response content and format, (e.g. \"be extremely succinct\", \"act friendly\", \"here are examples of good responses\") and on audio behavior (e.g. \"talk quickly\", \"inject emotion into your voice\", \"laugh frequently\"). The instructions are not guaranteed to be followed by the model, but they provide guidance to the model on the desired behavior.\n\nNote that the server sets default instructions which will be used if this field is not set and are visible in the `session.created` event at the start of the session.\n"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"name": "audio",
|
|
76
|
+
"type": {
|
|
77
|
+
"kind": "ref",
|
|
78
|
+
"name": "RealtimeSessionCreateRequestGaAudio"
|
|
79
|
+
},
|
|
80
|
+
"required": false,
|
|
81
|
+
"description": "Configuration for input and output audio.\n"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"name": "include",
|
|
85
|
+
"type": {
|
|
86
|
+
"kind": "array",
|
|
87
|
+
"items": {
|
|
88
|
+
"kind": "scalar",
|
|
89
|
+
"scalar": "string",
|
|
90
|
+
"const": "item.input_audio_transcription.logprobs"
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
"required": false,
|
|
94
|
+
"description": "Additional fields to include in server outputs.\n\n`item.input_audio_transcription.logprobs`: Include logprobs for input audio transcription.\n"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"name": "tracing",
|
|
98
|
+
"type": {
|
|
99
|
+
"kind": "ref",
|
|
100
|
+
"name": "RealtimeSessionCreateRequestGaTracing",
|
|
101
|
+
"nullable": true
|
|
102
|
+
},
|
|
103
|
+
"required": false,
|
|
104
|
+
"nullable": true,
|
|
105
|
+
"default": null,
|
|
106
|
+
"description": "Realtime API can write session traces to the [Traces Dashboard](https://platform.openai.com/logs?api=traces). Set to null to disable tracing. Once\ntracing is enabled for a session, the configuration cannot be modified.\n\n`auto` will create a trace for the session with default values for the\nworkflow name, group id, and metadata.\n"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"name": "tools",
|
|
110
|
+
"type": {
|
|
111
|
+
"kind": "array",
|
|
112
|
+
"items": {
|
|
113
|
+
"kind": "ref",
|
|
114
|
+
"name": "RealtimeSessionCreateRequestGaToolsItem"
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
"required": false,
|
|
118
|
+
"description": "Tools available to the model."
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"name": "tool_choice",
|
|
122
|
+
"type": {
|
|
123
|
+
"kind": "ref",
|
|
124
|
+
"name": "RealtimeSessionCreateRequestGaToolChoice"
|
|
125
|
+
},
|
|
126
|
+
"required": false,
|
|
127
|
+
"default": "auto",
|
|
128
|
+
"description": "How the model chooses tools. Provide one of the string modes or force a specific\nfunction/MCP tool.\n"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"name": "parallel_tool_calls",
|
|
132
|
+
"type": {
|
|
133
|
+
"kind": "scalar",
|
|
134
|
+
"scalar": "boolean"
|
|
135
|
+
},
|
|
136
|
+
"required": false,
|
|
137
|
+
"description": "Whether the model may call multiple tools in parallel. Only supported by\nreasoning Realtime models such as `gpt-realtime-2`.\n"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"name": "reasoning",
|
|
141
|
+
"type": {
|
|
142
|
+
"kind": "ref",
|
|
143
|
+
"name": "RealtimeReasoning"
|
|
144
|
+
},
|
|
145
|
+
"required": false
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"name": "max_output_tokens",
|
|
149
|
+
"type": {
|
|
150
|
+
"kind": "ref",
|
|
151
|
+
"name": "RealtimeSessionCreateRequestGaMaxOutputTokens"
|
|
152
|
+
},
|
|
153
|
+
"required": false,
|
|
154
|
+
"description": "Maximum number of output tokens for a single assistant response,\ninclusive of tool calls. Provide an integer between 1 and 4096 to\nlimit output tokens, or `inf` for the maximum available tokens for a\ngiven model. Defaults to `inf`.\n"
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"name": "truncation",
|
|
158
|
+
"type": {
|
|
159
|
+
"kind": "ref",
|
|
160
|
+
"name": "RealtimeTruncation"
|
|
161
|
+
},
|
|
162
|
+
"required": false
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"name": "prompt",
|
|
166
|
+
"type": {
|
|
167
|
+
"kind": "ref",
|
|
168
|
+
"name": "Prompt"
|
|
169
|
+
},
|
|
170
|
+
"required": false
|
|
171
|
+
}
|
|
172
|
+
],
|
|
173
|
+
"description": "Realtime session object configuration."
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"name": "RealtimeSessionCreateRequestGaOutputModalitiesItem",
|
|
177
|
+
"kind": "enum",
|
|
178
|
+
"base": "string",
|
|
179
|
+
"values": [
|
|
180
|
+
{
|
|
181
|
+
"value": "text"
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"value": "audio"
|
|
185
|
+
}
|
|
186
|
+
]
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"name": "RealtimeSessionCreateRequestGaModel",
|
|
190
|
+
"kind": "union",
|
|
191
|
+
"semantics": "anyOf",
|
|
192
|
+
"variants": [
|
|
193
|
+
{
|
|
194
|
+
"kind": "scalar",
|
|
195
|
+
"scalar": "string"
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"kind": "ref",
|
|
199
|
+
"name": "RealtimeSessionCreateRequestGaModelString"
|
|
200
|
+
}
|
|
201
|
+
],
|
|
202
|
+
"description": "The Realtime model used for this session.\n"
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
"name": "RealtimeSessionCreateRequestGaModelString",
|
|
206
|
+
"kind": "enum",
|
|
207
|
+
"base": "string",
|
|
208
|
+
"values": [
|
|
209
|
+
{
|
|
210
|
+
"value": "gpt-realtime"
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"value": "gpt-realtime-1.5"
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
"value": "gpt-realtime-2"
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
"value": "gpt-realtime-2025-08-28"
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
"value": "gpt-4o-realtime-preview"
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
"value": "gpt-4o-realtime-preview-2024-10-01"
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
"value": "gpt-4o-realtime-preview-2024-12-17"
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
"value": "gpt-4o-realtime-preview-2025-06-03"
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
"value": "gpt-4o-mini-realtime-preview"
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
"value": "gpt-4o-mini-realtime-preview-2024-12-17"
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
"value": "gpt-realtime-mini"
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
"value": "gpt-realtime-mini-2025-10-06"
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
"value": "gpt-realtime-mini-2025-12-15"
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
"value": "gpt-audio-1.5"
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
"value": "gpt-audio-mini"
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
"value": "gpt-audio-mini-2025-10-06"
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
"value": "gpt-audio-mini-2025-12-15"
|
|
259
|
+
}
|
|
260
|
+
]
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
"name": "RealtimeSessionCreateRequestGaAudio",
|
|
264
|
+
"kind": "struct",
|
|
265
|
+
"fields": [
|
|
266
|
+
{
|
|
267
|
+
"name": "input",
|
|
268
|
+
"type": {
|
|
269
|
+
"kind": "ref",
|
|
270
|
+
"name": "RealtimeSessionCreateRequestGaAudioInput"
|
|
271
|
+
},
|
|
272
|
+
"required": false
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
"name": "output",
|
|
276
|
+
"type": {
|
|
277
|
+
"kind": "ref",
|
|
278
|
+
"name": "RealtimeSessionCreateRequestGaAudioOutput"
|
|
279
|
+
},
|
|
280
|
+
"required": false
|
|
281
|
+
}
|
|
282
|
+
],
|
|
283
|
+
"description": "Configuration for input and output audio.\n"
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
"name": "RealtimeSessionCreateRequestGaAudioInput",
|
|
287
|
+
"kind": "struct",
|
|
288
|
+
"fields": [
|
|
289
|
+
{
|
|
290
|
+
"name": "format",
|
|
291
|
+
"type": {
|
|
292
|
+
"kind": "ref",
|
|
293
|
+
"name": "RealtimeAudioFormats"
|
|
294
|
+
},
|
|
295
|
+
"required": false
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
"name": "transcription",
|
|
299
|
+
"type": {
|
|
300
|
+
"kind": "ref",
|
|
301
|
+
"name": "AudioTranscription"
|
|
302
|
+
},
|
|
303
|
+
"required": false
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
"name": "noise_reduction",
|
|
307
|
+
"type": {
|
|
308
|
+
"kind": "ref",
|
|
309
|
+
"name": "RealtimeSessionCreateRequestGaAudioInputNoiseReduction"
|
|
310
|
+
},
|
|
311
|
+
"required": false,
|
|
312
|
+
"default": null,
|
|
313
|
+
"description": "Configuration for input audio noise reduction. This can be set to `null` to turn off.\nNoise reduction filters audio added to the input audio buffer before it is sent to VAD and the model.\nFiltering the audio can improve VAD and turn detection accuracy (reducing false positives) and model performance by improving perception of the input audio.\n"
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
"name": "turn_detection",
|
|
317
|
+
"type": {
|
|
318
|
+
"kind": "ref",
|
|
319
|
+
"name": "RealtimeTurnDetection"
|
|
320
|
+
},
|
|
321
|
+
"required": false
|
|
322
|
+
}
|
|
323
|
+
]
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
"name": "RealtimeAudioFormats",
|
|
327
|
+
"kind": "union",
|
|
328
|
+
"semantics": "anyOf",
|
|
329
|
+
"variants": [
|
|
330
|
+
{
|
|
331
|
+
"kind": "ref",
|
|
332
|
+
"name": "RealtimeAudioFormatsAudioPcm"
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
"kind": "ref",
|
|
336
|
+
"name": "RealtimeAudioFormatsAudioPcmu"
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
"kind": "ref",
|
|
340
|
+
"name": "RealtimeAudioFormatsAudioPcma"
|
|
341
|
+
}
|
|
342
|
+
]
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
"name": "RealtimeAudioFormatsAudioPcm",
|
|
346
|
+
"kind": "struct",
|
|
347
|
+
"fields": [
|
|
348
|
+
{
|
|
349
|
+
"name": "type",
|
|
350
|
+
"type": {
|
|
351
|
+
"kind": "scalar",
|
|
352
|
+
"scalar": "string",
|
|
353
|
+
"const": "audio/pcm"
|
|
354
|
+
},
|
|
355
|
+
"required": false,
|
|
356
|
+
"description": "The audio format. Always `audio/pcm`."
|
|
357
|
+
},
|
|
358
|
+
{
|
|
359
|
+
"name": "rate",
|
|
360
|
+
"type": {
|
|
361
|
+
"kind": "scalar",
|
|
362
|
+
"scalar": "integer",
|
|
363
|
+
"const": 24000
|
|
364
|
+
},
|
|
365
|
+
"required": false,
|
|
366
|
+
"description": "The sample rate of the audio. Always `24000`."
|
|
367
|
+
}
|
|
368
|
+
],
|
|
369
|
+
"description": "The PCM audio format. Only a 24kHz sample rate is supported."
|
|
370
|
+
},
|
|
371
|
+
{
|
|
372
|
+
"name": "RealtimeAudioFormatsAudioPcmu",
|
|
373
|
+
"kind": "struct",
|
|
374
|
+
"fields": [
|
|
375
|
+
{
|
|
376
|
+
"name": "type",
|
|
377
|
+
"type": {
|
|
378
|
+
"kind": "scalar",
|
|
379
|
+
"scalar": "string",
|
|
380
|
+
"const": "audio/pcmu"
|
|
381
|
+
},
|
|
382
|
+
"required": false,
|
|
383
|
+
"description": "The audio format. Always `audio/pcmu`."
|
|
384
|
+
}
|
|
385
|
+
],
|
|
386
|
+
"description": "The G.711 μ-law format."
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
"name": "RealtimeAudioFormatsAudioPcma",
|
|
390
|
+
"kind": "struct",
|
|
391
|
+
"fields": [
|
|
392
|
+
{
|
|
393
|
+
"name": "type",
|
|
394
|
+
"type": {
|
|
395
|
+
"kind": "scalar",
|
|
396
|
+
"scalar": "string",
|
|
397
|
+
"const": "audio/pcma"
|
|
398
|
+
},
|
|
399
|
+
"required": false,
|
|
400
|
+
"description": "The audio format. Always `audio/pcma`."
|
|
401
|
+
}
|
|
402
|
+
],
|
|
403
|
+
"description": "The G.711 A-law format."
|
|
404
|
+
},
|
|
405
|
+
{
|
|
406
|
+
"name": "AudioTranscription",
|
|
407
|
+
"kind": "struct",
|
|
408
|
+
"fields": [
|
|
409
|
+
{
|
|
410
|
+
"name": "model",
|
|
411
|
+
"type": {
|
|
412
|
+
"kind": "ref",
|
|
413
|
+
"name": "AudioTranscriptionModel"
|
|
414
|
+
},
|
|
415
|
+
"required": false,
|
|
416
|
+
"description": "The model to use for transcription. Current options are `whisper-1`, `gpt-4o-mini-transcribe`, `gpt-4o-mini-transcribe-2025-12-15`, `gpt-4o-transcribe`, `gpt-4o-transcribe-diarize`, and `gpt-realtime-whisper`. Use `gpt-4o-transcribe-diarize` when you need diarization with speaker labels.\n"
|
|
417
|
+
},
|
|
418
|
+
{
|
|
419
|
+
"name": "language",
|
|
420
|
+
"type": {
|
|
421
|
+
"kind": "scalar",
|
|
422
|
+
"scalar": "string"
|
|
423
|
+
},
|
|
424
|
+
"required": false,
|
|
425
|
+
"description": "The language of the input audio. Supplying the input language in\n[ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) (e.g. `en`) format\nwill improve accuracy and latency.\n"
|
|
426
|
+
},
|
|
427
|
+
{
|
|
428
|
+
"name": "prompt",
|
|
429
|
+
"type": {
|
|
430
|
+
"kind": "scalar",
|
|
431
|
+
"scalar": "string"
|
|
432
|
+
},
|
|
433
|
+
"required": false,
|
|
434
|
+
"description": "An optional text to guide the model's style or continue a previous audio\nsegment.\nFor `whisper-1`, the [prompt is a list of keywords](/docs/guides/speech-to-text#prompting).\nFor `gpt-4o-transcribe` models (excluding `gpt-4o-transcribe-diarize`), the prompt is a free text string, for example \"expect words related to technology\".\nPrompt is not supported with `gpt-realtime-whisper` in GA Realtime sessions.\n"
|
|
435
|
+
},
|
|
436
|
+
{
|
|
437
|
+
"name": "delay",
|
|
438
|
+
"type": {
|
|
439
|
+
"kind": "ref",
|
|
440
|
+
"name": "AudioTranscriptionDelay"
|
|
441
|
+
},
|
|
442
|
+
"required": false,
|
|
443
|
+
"description": "Controls how long the model waits before emitting transcription text.\nHigher values can improve transcription accuracy at the cost of latency.\nOnly supported with `gpt-realtime-whisper` in GA Realtime sessions.\n"
|
|
444
|
+
}
|
|
445
|
+
]
|
|
446
|
+
},
|
|
447
|
+
{
|
|
448
|
+
"name": "AudioTranscriptionModel",
|
|
449
|
+
"kind": "union",
|
|
450
|
+
"semantics": "anyOf",
|
|
451
|
+
"variants": [
|
|
452
|
+
{
|
|
453
|
+
"kind": "scalar",
|
|
454
|
+
"scalar": "string"
|
|
455
|
+
},
|
|
456
|
+
{
|
|
457
|
+
"kind": "ref",
|
|
458
|
+
"name": "AudioTranscriptionModelString"
|
|
459
|
+
}
|
|
460
|
+
],
|
|
461
|
+
"description": "The model to use for transcription. Current options are `whisper-1`, `gpt-4o-mini-transcribe`, `gpt-4o-mini-transcribe-2025-12-15`, `gpt-4o-transcribe`, `gpt-4o-transcribe-diarize`, and `gpt-realtime-whisper`. Use `gpt-4o-transcribe-diarize` when you need diarization with speaker labels.\n"
|
|
462
|
+
},
|
|
463
|
+
{
|
|
464
|
+
"name": "AudioTranscriptionModelString",
|
|
465
|
+
"kind": "enum",
|
|
466
|
+
"base": "string",
|
|
467
|
+
"values": [
|
|
468
|
+
{
|
|
469
|
+
"value": "whisper-1"
|
|
470
|
+
},
|
|
471
|
+
{
|
|
472
|
+
"value": "gpt-4o-mini-transcribe"
|
|
473
|
+
},
|
|
474
|
+
{
|
|
475
|
+
"value": "gpt-4o-mini-transcribe-2025-12-15"
|
|
476
|
+
},
|
|
477
|
+
{
|
|
478
|
+
"value": "gpt-4o-transcribe"
|
|
479
|
+
},
|
|
480
|
+
{
|
|
481
|
+
"value": "gpt-4o-transcribe-diarize"
|
|
482
|
+
},
|
|
483
|
+
{
|
|
484
|
+
"value": "gpt-realtime-whisper"
|
|
485
|
+
}
|
|
486
|
+
]
|
|
487
|
+
},
|
|
488
|
+
{
|
|
489
|
+
"name": "AudioTranscriptionDelay",
|
|
490
|
+
"kind": "enum",
|
|
491
|
+
"base": "string",
|
|
492
|
+
"values": [
|
|
493
|
+
{
|
|
494
|
+
"value": "minimal"
|
|
495
|
+
},
|
|
496
|
+
{
|
|
497
|
+
"value": "low"
|
|
498
|
+
},
|
|
499
|
+
{
|
|
500
|
+
"value": "medium"
|
|
501
|
+
},
|
|
502
|
+
{
|
|
503
|
+
"value": "high"
|
|
504
|
+
},
|
|
505
|
+
{
|
|
506
|
+
"value": "xhigh"
|
|
507
|
+
}
|
|
508
|
+
],
|
|
509
|
+
"description": "Controls how long the model waits before emitting transcription text.\nHigher values can improve transcription accuracy at the cost of latency.\nOnly supported with `gpt-realtime-whisper` in GA Realtime sessions.\n"
|
|
510
|
+
},
|
|
511
|
+
{
|
|
512
|
+
"name": "RealtimeSessionCreateRequestGaAudioInputNoiseReduction",
|
|
513
|
+
"kind": "struct",
|
|
514
|
+
"fields": [
|
|
515
|
+
{
|
|
516
|
+
"name": "type",
|
|
517
|
+
"type": {
|
|
518
|
+
"kind": "ref",
|
|
519
|
+
"name": "NoiseReductionType"
|
|
520
|
+
},
|
|
521
|
+
"required": false
|
|
522
|
+
}
|
|
523
|
+
],
|
|
524
|
+
"description": "Configuration for input audio noise reduction. This can be set to `null` to turn off.\nNoise reduction filters audio added to the input audio buffer before it is sent to VAD and the model.\nFiltering the audio can improve VAD and turn detection accuracy (reducing false positives) and model performance by improving perception of the input audio.\n"
|
|
525
|
+
},
|
|
526
|
+
{
|
|
527
|
+
"name": "NoiseReductionType",
|
|
528
|
+
"kind": "enum",
|
|
529
|
+
"base": "string",
|
|
530
|
+
"values": [
|
|
531
|
+
{
|
|
532
|
+
"value": "near_field"
|
|
533
|
+
},
|
|
534
|
+
{
|
|
535
|
+
"value": "far_field"
|
|
536
|
+
}
|
|
537
|
+
],
|
|
538
|
+
"description": "Type of noise reduction. `near_field` is for close-talking microphones such as headphones, `far_field` is for far-field microphones such as laptop or conference room microphones.\n"
|
|
539
|
+
},
|
|
540
|
+
{
|
|
541
|
+
"name": "RealtimeTurnDetection",
|
|
542
|
+
"kind": "union",
|
|
543
|
+
"semantics": "oneOf",
|
|
544
|
+
"variants": [
|
|
545
|
+
{
|
|
546
|
+
"kind": "ref",
|
|
547
|
+
"name": "RealtimeTurnDetectionServerVad"
|
|
548
|
+
},
|
|
549
|
+
{
|
|
550
|
+
"kind": "ref",
|
|
551
|
+
"name": "RealtimeTurnDetectionSemanticVad"
|
|
552
|
+
}
|
|
553
|
+
],
|
|
554
|
+
"discriminator": {
|
|
555
|
+
"propertyName": "type",
|
|
556
|
+
"mapping": {
|
|
557
|
+
"server_vad": "RealtimeTurnDetectionServerVad",
|
|
558
|
+
"semantic_vad": "RealtimeTurnDetectionSemanticVad"
|
|
559
|
+
}
|
|
560
|
+
},
|
|
561
|
+
"description": "Configuration for turn detection, ether Server VAD or Semantic VAD. This can be set to `null` to turn off, in which case the client must manually trigger model response.\n\nServer VAD means that the model will detect the start and end of speech based on audio volume and respond at the end of user speech.\n\nSemantic VAD is more advanced and uses a turn detection model (in conjunction with VAD) to semantically estimate whether the user has finished speaking, then dynamically sets a timeout based on this probability. For example, if user audio trails off with \"uhhm\", the model will score a low probability of turn end and wait longer for the user to continue speaking. This can be useful for more natural conversations, but may have a higher latency.\n\nFor `gpt-realtime-whisper` transcription sessions, turn detection must be\nset to `null`; VAD is not supported.\n"
|
|
562
|
+
},
|
|
563
|
+
{
|
|
564
|
+
"name": "RealtimeTurnDetectionServerVad",
|
|
565
|
+
"kind": "struct",
|
|
566
|
+
"fields": [
|
|
567
|
+
{
|
|
568
|
+
"name": "type",
|
|
569
|
+
"type": {
|
|
570
|
+
"kind": "scalar",
|
|
571
|
+
"scalar": "string",
|
|
572
|
+
"const": "server_vad"
|
|
573
|
+
},
|
|
574
|
+
"required": true,
|
|
575
|
+
"default": "server_vad",
|
|
576
|
+
"description": "Type of turn detection, `server_vad` to turn on simple Server VAD.\n"
|
|
577
|
+
},
|
|
578
|
+
{
|
|
579
|
+
"name": "threshold",
|
|
580
|
+
"type": {
|
|
581
|
+
"kind": "scalar",
|
|
582
|
+
"scalar": "number"
|
|
583
|
+
},
|
|
584
|
+
"required": false,
|
|
585
|
+
"description": "Used only for `server_vad` mode. Activation threshold for VAD (0.0 to 1.0), this defaults to 0.5. A\nhigher threshold will require louder audio to activate the model, and\nthus might perform better in noisy environments.\n"
|
|
586
|
+
},
|
|
587
|
+
{
|
|
588
|
+
"name": "prefix_padding_ms",
|
|
589
|
+
"type": {
|
|
590
|
+
"kind": "scalar",
|
|
591
|
+
"scalar": "integer"
|
|
592
|
+
},
|
|
593
|
+
"required": false,
|
|
594
|
+
"description": "Used only for `server_vad` mode. Amount of audio to include before the VAD detected speech (in\nmilliseconds). Defaults to 300ms.\n"
|
|
595
|
+
},
|
|
596
|
+
{
|
|
597
|
+
"name": "silence_duration_ms",
|
|
598
|
+
"type": {
|
|
599
|
+
"kind": "scalar",
|
|
600
|
+
"scalar": "integer"
|
|
601
|
+
},
|
|
602
|
+
"required": false,
|
|
603
|
+
"description": "Used only for `server_vad` mode. Duration of silence to detect speech stop (in milliseconds). Defaults\nto 500ms. With shorter values the model will respond more quickly,\nbut may jump in on short pauses from the user.\n"
|
|
604
|
+
},
|
|
605
|
+
{
|
|
606
|
+
"name": "create_response",
|
|
607
|
+
"type": {
|
|
608
|
+
"kind": "scalar",
|
|
609
|
+
"scalar": "boolean"
|
|
610
|
+
},
|
|
611
|
+
"required": false,
|
|
612
|
+
"default": true,
|
|
613
|
+
"description": "Whether or not to automatically generate a response when a VAD stop event occurs. If `interrupt_response` is set to `false` this may fail to create a response if the model is already responding.\n\nIf both `create_response` and `interrupt_response` are set to `false`, the model will never respond automatically but VAD events will still be emitted.\n"
|
|
614
|
+
},
|
|
615
|
+
{
|
|
616
|
+
"name": "interrupt_response",
|
|
617
|
+
"type": {
|
|
618
|
+
"kind": "scalar",
|
|
619
|
+
"scalar": "boolean"
|
|
620
|
+
},
|
|
621
|
+
"required": false,
|
|
622
|
+
"default": true,
|
|
623
|
+
"description": "Whether or not to automatically interrupt (cancel) any ongoing response with output to the default\nconversation (i.e. `conversation` of `auto`) when a VAD start event occurs. If `true` then the response will be cancelled, otherwise it will continue until complete.\n\nIf both `create_response` and `interrupt_response` are set to `false`, the model will never respond automatically but VAD events will still be emitted.\n"
|
|
624
|
+
},
|
|
625
|
+
{
|
|
626
|
+
"name": "idle_timeout_ms",
|
|
627
|
+
"type": {
|
|
628
|
+
"kind": "scalar",
|
|
629
|
+
"scalar": "integer",
|
|
630
|
+
"nullable": true
|
|
631
|
+
},
|
|
632
|
+
"required": false
|
|
633
|
+
}
|
|
634
|
+
],
|
|
635
|
+
"description": "Server-side voice activity detection (VAD) which flips on when user speech is detected and off after a period of silence."
|
|
636
|
+
},
|
|
637
|
+
{
|
|
638
|
+
"name": "RealtimeTurnDetectionSemanticVad",
|
|
639
|
+
"kind": "struct",
|
|
640
|
+
"fields": [
|
|
641
|
+
{
|
|
642
|
+
"name": "type",
|
|
643
|
+
"type": {
|
|
644
|
+
"kind": "scalar",
|
|
645
|
+
"scalar": "string",
|
|
646
|
+
"const": "semantic_vad"
|
|
647
|
+
},
|
|
648
|
+
"required": true,
|
|
649
|
+
"description": "Type of turn detection, `semantic_vad` to turn on Semantic VAD.\n"
|
|
650
|
+
},
|
|
651
|
+
{
|
|
652
|
+
"name": "eagerness",
|
|
653
|
+
"type": {
|
|
654
|
+
"kind": "ref",
|
|
655
|
+
"name": "RealtimeTurnDetectionSemanticVadEagerness"
|
|
656
|
+
},
|
|
657
|
+
"required": false,
|
|
658
|
+
"default": "auto",
|
|
659
|
+
"description": "Used only for `semantic_vad` mode. The eagerness of the model to respond. `low` will wait longer for the user to continue speaking, `high` will respond more quickly. `auto` is the default and is equivalent to `medium`. `low`, `medium`, and `high` have max timeouts of 8s, 4s, and 2s respectively.\n"
|
|
660
|
+
},
|
|
661
|
+
{
|
|
662
|
+
"name": "create_response",
|
|
663
|
+
"type": {
|
|
664
|
+
"kind": "scalar",
|
|
665
|
+
"scalar": "boolean"
|
|
666
|
+
},
|
|
667
|
+
"required": false,
|
|
668
|
+
"default": true,
|
|
669
|
+
"description": "Whether or not to automatically generate a response when a VAD stop event occurs.\n"
|
|
670
|
+
},
|
|
671
|
+
{
|
|
672
|
+
"name": "interrupt_response",
|
|
673
|
+
"type": {
|
|
674
|
+
"kind": "scalar",
|
|
675
|
+
"scalar": "boolean"
|
|
676
|
+
},
|
|
677
|
+
"required": false,
|
|
678
|
+
"default": true,
|
|
679
|
+
"description": "Whether or not to automatically interrupt any ongoing response with output to the default\nconversation (i.e. `conversation` of `auto`) when a VAD start event occurs.\n"
|
|
680
|
+
}
|
|
681
|
+
],
|
|
682
|
+
"description": "Server-side semantic turn detection which uses a model to determine when the user has finished speaking."
|
|
683
|
+
},
|
|
684
|
+
{
|
|
685
|
+
"name": "RealtimeTurnDetectionSemanticVadEagerness",
|
|
686
|
+
"kind": "enum",
|
|
687
|
+
"base": "string",
|
|
688
|
+
"values": [
|
|
689
|
+
{
|
|
690
|
+
"value": "low"
|
|
691
|
+
},
|
|
692
|
+
{
|
|
693
|
+
"value": "medium"
|
|
694
|
+
},
|
|
695
|
+
{
|
|
696
|
+
"value": "high"
|
|
697
|
+
},
|
|
698
|
+
{
|
|
699
|
+
"value": "auto"
|
|
700
|
+
}
|
|
701
|
+
],
|
|
702
|
+
"description": "Used only for `semantic_vad` mode. The eagerness of the model to respond. `low` will wait longer for the user to continue speaking, `high` will respond more quickly. `auto` is the default and is equivalent to `medium`. `low`, `medium`, and `high` have max timeouts of 8s, 4s, and 2s respectively.\n"
|
|
703
|
+
},
|
|
704
|
+
{
|
|
705
|
+
"name": "RealtimeSessionCreateRequestGaAudioOutput",
|
|
706
|
+
"kind": "struct",
|
|
707
|
+
"fields": [
|
|
708
|
+
{
|
|
709
|
+
"name": "format",
|
|
710
|
+
"type": {
|
|
711
|
+
"kind": "ref",
|
|
712
|
+
"name": "RealtimeAudioFormats"
|
|
713
|
+
},
|
|
714
|
+
"required": false
|
|
715
|
+
},
|
|
716
|
+
{
|
|
717
|
+
"name": "voice",
|
|
718
|
+
"type": {
|
|
719
|
+
"kind": "ref",
|
|
720
|
+
"name": "VoiceIdsOrCustomVoice"
|
|
721
|
+
},
|
|
722
|
+
"required": false
|
|
723
|
+
},
|
|
724
|
+
{
|
|
725
|
+
"name": "speed",
|
|
726
|
+
"type": {
|
|
727
|
+
"kind": "scalar",
|
|
728
|
+
"scalar": "number"
|
|
729
|
+
},
|
|
730
|
+
"required": false,
|
|
731
|
+
"default": 1,
|
|
732
|
+
"description": "The speed of the model's spoken response as a multiple of the original speed.\n1.0 is the default speed. 0.25 is the minimum speed. 1.5 is the maximum speed. This value can only be changed in between model turns, not while a response is in progress.\n\nThis parameter is a post-processing adjustment to the audio after it is generated, it's\nalso possible to prompt the model to speak faster or slower.\n"
|
|
733
|
+
}
|
|
734
|
+
]
|
|
735
|
+
},
|
|
736
|
+
{
|
|
737
|
+
"name": "VoiceIdsOrCustomVoice",
|
|
738
|
+
"kind": "union",
|
|
739
|
+
"semantics": "anyOf",
|
|
740
|
+
"variants": [
|
|
741
|
+
{
|
|
742
|
+
"kind": "ref",
|
|
743
|
+
"name": "VoiceIdsShared"
|
|
744
|
+
},
|
|
745
|
+
{
|
|
746
|
+
"kind": "ref",
|
|
747
|
+
"name": "VoiceIdsOrCustomVoiceVariant1"
|
|
748
|
+
}
|
|
749
|
+
],
|
|
750
|
+
"description": "A built-in voice name or a custom voice reference.\n"
|
|
751
|
+
},
|
|
752
|
+
{
|
|
753
|
+
"name": "VoiceIdsShared",
|
|
754
|
+
"kind": "union",
|
|
755
|
+
"semantics": "anyOf",
|
|
756
|
+
"variants": [
|
|
757
|
+
{
|
|
758
|
+
"kind": "scalar",
|
|
759
|
+
"scalar": "string"
|
|
760
|
+
},
|
|
761
|
+
{
|
|
762
|
+
"kind": "ref",
|
|
763
|
+
"name": "VoiceIdsSharedString"
|
|
764
|
+
}
|
|
765
|
+
]
|
|
766
|
+
},
|
|
767
|
+
{
|
|
768
|
+
"name": "VoiceIdsSharedString",
|
|
769
|
+
"kind": "enum",
|
|
770
|
+
"base": "string",
|
|
771
|
+
"values": [
|
|
772
|
+
{
|
|
773
|
+
"value": "alloy"
|
|
774
|
+
},
|
|
775
|
+
{
|
|
776
|
+
"value": "ash"
|
|
777
|
+
},
|
|
778
|
+
{
|
|
779
|
+
"value": "ballad"
|
|
780
|
+
},
|
|
781
|
+
{
|
|
782
|
+
"value": "coral"
|
|
783
|
+
},
|
|
784
|
+
{
|
|
785
|
+
"value": "echo"
|
|
786
|
+
},
|
|
787
|
+
{
|
|
788
|
+
"value": "sage"
|
|
789
|
+
},
|
|
790
|
+
{
|
|
791
|
+
"value": "shimmer"
|
|
792
|
+
},
|
|
793
|
+
{
|
|
794
|
+
"value": "verse"
|
|
795
|
+
},
|
|
796
|
+
{
|
|
797
|
+
"value": "marin"
|
|
798
|
+
},
|
|
799
|
+
{
|
|
800
|
+
"value": "cedar"
|
|
801
|
+
}
|
|
802
|
+
]
|
|
803
|
+
},
|
|
804
|
+
{
|
|
805
|
+
"name": "VoiceIdsOrCustomVoiceVariant1",
|
|
806
|
+
"kind": "struct",
|
|
807
|
+
"fields": [
|
|
808
|
+
{
|
|
809
|
+
"name": "id",
|
|
810
|
+
"type": {
|
|
811
|
+
"kind": "scalar",
|
|
812
|
+
"scalar": "string"
|
|
813
|
+
},
|
|
814
|
+
"required": true,
|
|
815
|
+
"description": "The custom voice ID, e.g. `voice_1234`."
|
|
816
|
+
}
|
|
817
|
+
],
|
|
818
|
+
"description": "Custom voice reference."
|
|
819
|
+
},
|
|
820
|
+
{
|
|
821
|
+
"name": "RealtimeSessionCreateRequestGaTracing",
|
|
822
|
+
"kind": "union",
|
|
823
|
+
"semantics": "oneOf",
|
|
824
|
+
"variants": [
|
|
825
|
+
{
|
|
826
|
+
"kind": "scalar",
|
|
827
|
+
"scalar": "string",
|
|
828
|
+
"const": "auto"
|
|
829
|
+
},
|
|
830
|
+
{
|
|
831
|
+
"kind": "ref",
|
|
832
|
+
"name": "RealtimeSessionCreateRequestGaTracingTracingConfiguration"
|
|
833
|
+
}
|
|
834
|
+
],
|
|
835
|
+
"description": "Realtime API can write session traces to the [Traces Dashboard](https://platform.openai.com/logs?api=traces). Set to null to disable tracing. Once\ntracing is enabled for a session, the configuration cannot be modified.\n\n`auto` will create a trace for the session with default values for the\nworkflow name, group id, and metadata.\n"
|
|
836
|
+
},
|
|
837
|
+
{
|
|
838
|
+
"name": "RealtimeSessionCreateRequestGaTracingTracingConfiguration",
|
|
839
|
+
"kind": "struct",
|
|
840
|
+
"fields": [
|
|
841
|
+
{
|
|
842
|
+
"name": "workflow_name",
|
|
843
|
+
"type": {
|
|
844
|
+
"kind": "scalar",
|
|
845
|
+
"scalar": "string"
|
|
846
|
+
},
|
|
847
|
+
"required": false,
|
|
848
|
+
"description": "The name of the workflow to attach to this trace. This is used to\nname the trace in the Traces Dashboard.\n"
|
|
849
|
+
},
|
|
850
|
+
{
|
|
851
|
+
"name": "group_id",
|
|
852
|
+
"type": {
|
|
853
|
+
"kind": "scalar",
|
|
854
|
+
"scalar": "string"
|
|
855
|
+
},
|
|
856
|
+
"required": false,
|
|
857
|
+
"description": "The group id to attach to this trace to enable filtering and\ngrouping in the Traces Dashboard.\n"
|
|
858
|
+
},
|
|
859
|
+
{
|
|
860
|
+
"name": "metadata",
|
|
861
|
+
"type": {
|
|
862
|
+
"kind": "map",
|
|
863
|
+
"values": {
|
|
864
|
+
"kind": "any"
|
|
865
|
+
}
|
|
866
|
+
},
|
|
867
|
+
"required": false,
|
|
868
|
+
"description": "The arbitrary metadata to attach to this trace to enable\nfiltering in the Traces Dashboard.\n"
|
|
869
|
+
}
|
|
870
|
+
],
|
|
871
|
+
"description": "Granular configuration for tracing.\n"
|
|
872
|
+
},
|
|
873
|
+
{
|
|
874
|
+
"name": "RealtimeSessionCreateRequestGaToolsItem",
|
|
875
|
+
"kind": "union",
|
|
876
|
+
"semantics": "oneOf",
|
|
877
|
+
"variants": [
|
|
878
|
+
{
|
|
879
|
+
"kind": "ref",
|
|
880
|
+
"name": "RealtimeFunctionTool"
|
|
881
|
+
},
|
|
882
|
+
{
|
|
883
|
+
"kind": "ref",
|
|
884
|
+
"name": "McpTool"
|
|
885
|
+
}
|
|
886
|
+
]
|
|
887
|
+
},
|
|
888
|
+
{
|
|
889
|
+
"name": "RealtimeFunctionTool",
|
|
890
|
+
"kind": "struct",
|
|
891
|
+
"fields": [
|
|
892
|
+
{
|
|
893
|
+
"name": "type",
|
|
894
|
+
"type": {
|
|
895
|
+
"kind": "scalar",
|
|
896
|
+
"scalar": "string",
|
|
897
|
+
"const": "function"
|
|
898
|
+
},
|
|
899
|
+
"required": false,
|
|
900
|
+
"description": "The type of the tool, i.e. `function`."
|
|
901
|
+
},
|
|
902
|
+
{
|
|
903
|
+
"name": "name",
|
|
904
|
+
"type": {
|
|
905
|
+
"kind": "scalar",
|
|
906
|
+
"scalar": "string"
|
|
907
|
+
},
|
|
908
|
+
"required": false,
|
|
909
|
+
"description": "The name of the function."
|
|
910
|
+
},
|
|
911
|
+
{
|
|
912
|
+
"name": "description",
|
|
913
|
+
"type": {
|
|
914
|
+
"kind": "scalar",
|
|
915
|
+
"scalar": "string"
|
|
916
|
+
},
|
|
917
|
+
"required": false,
|
|
918
|
+
"description": "The description of the function, including guidance on when and how\nto call it, and guidance about what to tell the user when calling\n(if anything).\n"
|
|
919
|
+
},
|
|
920
|
+
{
|
|
921
|
+
"name": "parameters",
|
|
922
|
+
"type": {
|
|
923
|
+
"kind": "map",
|
|
924
|
+
"values": {
|
|
925
|
+
"kind": "any"
|
|
926
|
+
}
|
|
927
|
+
},
|
|
928
|
+
"required": false,
|
|
929
|
+
"description": "Parameters of the function in JSON Schema."
|
|
930
|
+
}
|
|
931
|
+
]
|
|
932
|
+
},
|
|
933
|
+
{
|
|
934
|
+
"name": "McpTool",
|
|
935
|
+
"kind": "struct",
|
|
936
|
+
"fields": [
|
|
937
|
+
{
|
|
938
|
+
"name": "type",
|
|
939
|
+
"type": {
|
|
940
|
+
"kind": "scalar",
|
|
941
|
+
"scalar": "string",
|
|
942
|
+
"const": "mcp"
|
|
943
|
+
},
|
|
944
|
+
"required": true,
|
|
945
|
+
"description": "The type of the MCP tool. Always `mcp`."
|
|
946
|
+
},
|
|
947
|
+
{
|
|
948
|
+
"name": "server_label",
|
|
949
|
+
"type": {
|
|
950
|
+
"kind": "scalar",
|
|
951
|
+
"scalar": "string"
|
|
952
|
+
},
|
|
953
|
+
"required": true,
|
|
954
|
+
"description": "A label for this MCP server, used to identify it in tool calls.\n"
|
|
955
|
+
},
|
|
956
|
+
{
|
|
957
|
+
"name": "server_url",
|
|
958
|
+
"type": {
|
|
959
|
+
"kind": "scalar",
|
|
960
|
+
"scalar": "string",
|
|
961
|
+
"format": "uri"
|
|
962
|
+
},
|
|
963
|
+
"required": false,
|
|
964
|
+
"description": "The URL for the MCP server. One of `server_url` or `connector_id` must be\nprovided.\n"
|
|
965
|
+
},
|
|
966
|
+
{
|
|
967
|
+
"name": "connector_id",
|
|
968
|
+
"type": {
|
|
969
|
+
"kind": "ref",
|
|
970
|
+
"name": "McpToolConnectorId"
|
|
971
|
+
},
|
|
972
|
+
"required": false,
|
|
973
|
+
"description": "Identifier for service connectors, like those available in ChatGPT. One of\n`server_url` or `connector_id` must be provided. Learn more about service\nconnectors [here](/docs/guides/tools-remote-mcp#connectors).\n\nCurrently supported `connector_id` values are:\n\n- Dropbox: `connector_dropbox`\n- Gmail: `connector_gmail`\n- Google Calendar: `connector_googlecalendar`\n- Google Drive: `connector_googledrive`\n- Microsoft Teams: `connector_microsoftteams`\n- Outlook Calendar: `connector_outlookcalendar`\n- Outlook Email: `connector_outlookemail`\n- SharePoint: `connector_sharepoint`\n"
|
|
974
|
+
},
|
|
975
|
+
{
|
|
976
|
+
"name": "authorization",
|
|
977
|
+
"type": {
|
|
978
|
+
"kind": "scalar",
|
|
979
|
+
"scalar": "string"
|
|
980
|
+
},
|
|
981
|
+
"required": false,
|
|
982
|
+
"description": "An OAuth access token that can be used with a remote MCP server, either\nwith a custom MCP server URL or a service connector. Your application\nmust handle the OAuth authorization flow and provide the token here.\n"
|
|
983
|
+
},
|
|
984
|
+
{
|
|
985
|
+
"name": "server_description",
|
|
986
|
+
"type": {
|
|
987
|
+
"kind": "scalar",
|
|
988
|
+
"scalar": "string"
|
|
989
|
+
},
|
|
990
|
+
"required": false,
|
|
991
|
+
"description": "Optional description of the MCP server, used to provide more context.\n"
|
|
992
|
+
},
|
|
993
|
+
{
|
|
994
|
+
"name": "headers",
|
|
995
|
+
"type": {
|
|
996
|
+
"kind": "map",
|
|
997
|
+
"values": {
|
|
998
|
+
"kind": "scalar",
|
|
999
|
+
"scalar": "string"
|
|
1000
|
+
},
|
|
1001
|
+
"nullable": true
|
|
1002
|
+
},
|
|
1003
|
+
"required": false
|
|
1004
|
+
},
|
|
1005
|
+
{
|
|
1006
|
+
"name": "allowed_tools",
|
|
1007
|
+
"type": {
|
|
1008
|
+
"kind": "ref",
|
|
1009
|
+
"name": "McpToolAllowedTools",
|
|
1010
|
+
"nullable": true
|
|
1011
|
+
},
|
|
1012
|
+
"required": false
|
|
1013
|
+
},
|
|
1014
|
+
{
|
|
1015
|
+
"name": "require_approval",
|
|
1016
|
+
"type": {
|
|
1017
|
+
"kind": "ref",
|
|
1018
|
+
"name": "McpToolRequireApproval",
|
|
1019
|
+
"nullable": true
|
|
1020
|
+
},
|
|
1021
|
+
"required": false
|
|
1022
|
+
},
|
|
1023
|
+
{
|
|
1024
|
+
"name": "defer_loading",
|
|
1025
|
+
"type": {
|
|
1026
|
+
"kind": "scalar",
|
|
1027
|
+
"scalar": "boolean"
|
|
1028
|
+
},
|
|
1029
|
+
"required": false,
|
|
1030
|
+
"description": "Whether this MCP tool is deferred and discovered via tool search.\n"
|
|
1031
|
+
}
|
|
1032
|
+
],
|
|
1033
|
+
"description": "Give the model access to additional tools via remote Model Context Protocol\n(MCP) servers. [Learn more about MCP](/docs/guides/tools-remote-mcp).\n"
|
|
1034
|
+
},
|
|
1035
|
+
{
|
|
1036
|
+
"name": "McpToolConnectorId",
|
|
1037
|
+
"kind": "enum",
|
|
1038
|
+
"base": "string",
|
|
1039
|
+
"values": [
|
|
1040
|
+
{
|
|
1041
|
+
"value": "connector_dropbox"
|
|
1042
|
+
},
|
|
1043
|
+
{
|
|
1044
|
+
"value": "connector_gmail"
|
|
1045
|
+
},
|
|
1046
|
+
{
|
|
1047
|
+
"value": "connector_googlecalendar"
|
|
1048
|
+
},
|
|
1049
|
+
{
|
|
1050
|
+
"value": "connector_googledrive"
|
|
1051
|
+
},
|
|
1052
|
+
{
|
|
1053
|
+
"value": "connector_microsoftteams"
|
|
1054
|
+
},
|
|
1055
|
+
{
|
|
1056
|
+
"value": "connector_outlookcalendar"
|
|
1057
|
+
},
|
|
1058
|
+
{
|
|
1059
|
+
"value": "connector_outlookemail"
|
|
1060
|
+
},
|
|
1061
|
+
{
|
|
1062
|
+
"value": "connector_sharepoint"
|
|
1063
|
+
}
|
|
1064
|
+
],
|
|
1065
|
+
"description": "Identifier for service connectors, like those available in ChatGPT. One of\n`server_url` or `connector_id` must be provided. Learn more about service\nconnectors [here](/docs/guides/tools-remote-mcp#connectors).\n\nCurrently supported `connector_id` values are:\n\n- Dropbox: `connector_dropbox`\n- Gmail: `connector_gmail`\n- Google Calendar: `connector_googlecalendar`\n- Google Drive: `connector_googledrive`\n- Microsoft Teams: `connector_microsoftteams`\n- Outlook Calendar: `connector_outlookcalendar`\n- Outlook Email: `connector_outlookemail`\n- SharePoint: `connector_sharepoint`\n"
|
|
1066
|
+
},
|
|
1067
|
+
{
|
|
1068
|
+
"name": "McpToolAllowedTools",
|
|
1069
|
+
"kind": "union",
|
|
1070
|
+
"semantics": "oneOf",
|
|
1071
|
+
"variants": [
|
|
1072
|
+
{
|
|
1073
|
+
"kind": "array",
|
|
1074
|
+
"items": {
|
|
1075
|
+
"kind": "scalar",
|
|
1076
|
+
"scalar": "string"
|
|
1077
|
+
}
|
|
1078
|
+
},
|
|
1079
|
+
{
|
|
1080
|
+
"kind": "ref",
|
|
1081
|
+
"name": "McpToolFilter"
|
|
1082
|
+
}
|
|
1083
|
+
],
|
|
1084
|
+
"description": "List of allowed tool names or a filter object.\n"
|
|
1085
|
+
},
|
|
1086
|
+
{
|
|
1087
|
+
"name": "McpToolFilter",
|
|
1088
|
+
"kind": "struct",
|
|
1089
|
+
"fields": [
|
|
1090
|
+
{
|
|
1091
|
+
"name": "tool_names",
|
|
1092
|
+
"type": {
|
|
1093
|
+
"kind": "array",
|
|
1094
|
+
"items": {
|
|
1095
|
+
"kind": "scalar",
|
|
1096
|
+
"scalar": "string"
|
|
1097
|
+
}
|
|
1098
|
+
},
|
|
1099
|
+
"required": false,
|
|
1100
|
+
"description": "List of allowed tool names."
|
|
1101
|
+
},
|
|
1102
|
+
{
|
|
1103
|
+
"name": "read_only",
|
|
1104
|
+
"type": {
|
|
1105
|
+
"kind": "scalar",
|
|
1106
|
+
"scalar": "boolean"
|
|
1107
|
+
},
|
|
1108
|
+
"required": false,
|
|
1109
|
+
"description": "Indicates whether or not a tool modifies data or is read-only. If an\nMCP server is [annotated with `readOnlyHint`](https://modelcontextprotocol.io/specification/2025-06-18/schema#toolannotations-readonlyhint),\nit will match this filter.\n"
|
|
1110
|
+
}
|
|
1111
|
+
],
|
|
1112
|
+
"description": "A filter object to specify which tools are allowed.\n"
|
|
1113
|
+
},
|
|
1114
|
+
{
|
|
1115
|
+
"name": "McpToolRequireApproval",
|
|
1116
|
+
"kind": "union",
|
|
1117
|
+
"semantics": "oneOf",
|
|
1118
|
+
"variants": [
|
|
1119
|
+
{
|
|
1120
|
+
"kind": "ref",
|
|
1121
|
+
"name": "McpToolRequireApprovalMcpToolApprovalFilter"
|
|
1122
|
+
},
|
|
1123
|
+
{
|
|
1124
|
+
"kind": "ref",
|
|
1125
|
+
"name": "McpToolRequireApprovalMcpToolApprovalSetting"
|
|
1126
|
+
}
|
|
1127
|
+
],
|
|
1128
|
+
"description": "Specify which of the MCP server's tools require approval."
|
|
1129
|
+
},
|
|
1130
|
+
{
|
|
1131
|
+
"name": "McpToolRequireApprovalMcpToolApprovalFilter",
|
|
1132
|
+
"kind": "struct",
|
|
1133
|
+
"fields": [
|
|
1134
|
+
{
|
|
1135
|
+
"name": "always",
|
|
1136
|
+
"type": {
|
|
1137
|
+
"kind": "ref",
|
|
1138
|
+
"name": "McpToolFilter"
|
|
1139
|
+
},
|
|
1140
|
+
"required": false
|
|
1141
|
+
},
|
|
1142
|
+
{
|
|
1143
|
+
"name": "never",
|
|
1144
|
+
"type": {
|
|
1145
|
+
"kind": "ref",
|
|
1146
|
+
"name": "McpToolFilter"
|
|
1147
|
+
},
|
|
1148
|
+
"required": false
|
|
1149
|
+
}
|
|
1150
|
+
],
|
|
1151
|
+
"description": "Specify which of the MCP server's tools require approval. Can be\n`always`, `never`, or a filter object associated with tools\nthat require approval.\n"
|
|
1152
|
+
},
|
|
1153
|
+
{
|
|
1154
|
+
"name": "McpToolRequireApprovalMcpToolApprovalSetting",
|
|
1155
|
+
"kind": "enum",
|
|
1156
|
+
"base": "string",
|
|
1157
|
+
"values": [
|
|
1158
|
+
{
|
|
1159
|
+
"value": "always"
|
|
1160
|
+
},
|
|
1161
|
+
{
|
|
1162
|
+
"value": "never"
|
|
1163
|
+
}
|
|
1164
|
+
],
|
|
1165
|
+
"description": "Specify a single approval policy for all tools. One of `always` or\n`never`. When set to `always`, all tools will require approval. When\nset to `never`, all tools will not require approval.\n"
|
|
1166
|
+
},
|
|
1167
|
+
{
|
|
1168
|
+
"name": "RealtimeSessionCreateRequestGaToolChoice",
|
|
1169
|
+
"kind": "union",
|
|
1170
|
+
"semantics": "oneOf",
|
|
1171
|
+
"variants": [
|
|
1172
|
+
{
|
|
1173
|
+
"kind": "ref",
|
|
1174
|
+
"name": "ToolChoiceOptions"
|
|
1175
|
+
},
|
|
1176
|
+
{
|
|
1177
|
+
"kind": "ref",
|
|
1178
|
+
"name": "ToolChoiceFunction"
|
|
1179
|
+
},
|
|
1180
|
+
{
|
|
1181
|
+
"kind": "ref",
|
|
1182
|
+
"name": "ToolChoiceMcp"
|
|
1183
|
+
}
|
|
1184
|
+
],
|
|
1185
|
+
"description": "How the model chooses tools. Provide one of the string modes or force a specific\nfunction/MCP tool.\n"
|
|
1186
|
+
},
|
|
1187
|
+
{
|
|
1188
|
+
"name": "ToolChoiceOptions",
|
|
1189
|
+
"kind": "enum",
|
|
1190
|
+
"base": "string",
|
|
1191
|
+
"values": [
|
|
1192
|
+
{
|
|
1193
|
+
"value": "none"
|
|
1194
|
+
},
|
|
1195
|
+
{
|
|
1196
|
+
"value": "auto"
|
|
1197
|
+
},
|
|
1198
|
+
{
|
|
1199
|
+
"value": "required"
|
|
1200
|
+
}
|
|
1201
|
+
],
|
|
1202
|
+
"description": "Controls which (if any) tool is called by the model.\n\n`none` means the model will not call any tool and instead generates a message.\n\n`auto` means the model can pick between generating a message or calling one or\nmore tools.\n\n`required` means the model must call one or more tools.\n"
|
|
1203
|
+
},
|
|
1204
|
+
{
|
|
1205
|
+
"name": "ToolChoiceFunction",
|
|
1206
|
+
"kind": "struct",
|
|
1207
|
+
"fields": [
|
|
1208
|
+
{
|
|
1209
|
+
"name": "type",
|
|
1210
|
+
"type": {
|
|
1211
|
+
"kind": "scalar",
|
|
1212
|
+
"scalar": "string",
|
|
1213
|
+
"const": "function"
|
|
1214
|
+
},
|
|
1215
|
+
"required": true,
|
|
1216
|
+
"description": "For function calling, the type is always `function`."
|
|
1217
|
+
},
|
|
1218
|
+
{
|
|
1219
|
+
"name": "name",
|
|
1220
|
+
"type": {
|
|
1221
|
+
"kind": "scalar",
|
|
1222
|
+
"scalar": "string"
|
|
1223
|
+
},
|
|
1224
|
+
"required": true,
|
|
1225
|
+
"description": "The name of the function to call."
|
|
1226
|
+
}
|
|
1227
|
+
],
|
|
1228
|
+
"description": "Use this option to force the model to call a specific function.\n"
|
|
1229
|
+
},
|
|
1230
|
+
{
|
|
1231
|
+
"name": "ToolChoiceMcp",
|
|
1232
|
+
"kind": "struct",
|
|
1233
|
+
"fields": [
|
|
1234
|
+
{
|
|
1235
|
+
"name": "type",
|
|
1236
|
+
"type": {
|
|
1237
|
+
"kind": "scalar",
|
|
1238
|
+
"scalar": "string",
|
|
1239
|
+
"const": "mcp"
|
|
1240
|
+
},
|
|
1241
|
+
"required": true,
|
|
1242
|
+
"description": "For MCP tools, the type is always `mcp`."
|
|
1243
|
+
},
|
|
1244
|
+
{
|
|
1245
|
+
"name": "server_label",
|
|
1246
|
+
"type": {
|
|
1247
|
+
"kind": "scalar",
|
|
1248
|
+
"scalar": "string"
|
|
1249
|
+
},
|
|
1250
|
+
"required": true,
|
|
1251
|
+
"description": "The label of the MCP server to use.\n"
|
|
1252
|
+
},
|
|
1253
|
+
{
|
|
1254
|
+
"name": "name",
|
|
1255
|
+
"type": {
|
|
1256
|
+
"kind": "scalar",
|
|
1257
|
+
"scalar": "string",
|
|
1258
|
+
"nullable": true
|
|
1259
|
+
},
|
|
1260
|
+
"required": false
|
|
1261
|
+
}
|
|
1262
|
+
],
|
|
1263
|
+
"description": "Use this option to force the model to call a specific tool on a remote MCP server.\n"
|
|
1264
|
+
},
|
|
1265
|
+
{
|
|
1266
|
+
"name": "RealtimeReasoning",
|
|
1267
|
+
"kind": "struct",
|
|
1268
|
+
"fields": [
|
|
1269
|
+
{
|
|
1270
|
+
"name": "effort",
|
|
1271
|
+
"type": {
|
|
1272
|
+
"kind": "ref",
|
|
1273
|
+
"name": "RealtimeReasoningEffort"
|
|
1274
|
+
},
|
|
1275
|
+
"required": false
|
|
1276
|
+
}
|
|
1277
|
+
],
|
|
1278
|
+
"description": "Configuration for reasoning-capable Realtime models such as `gpt-realtime-2`.\n"
|
|
1279
|
+
},
|
|
1280
|
+
{
|
|
1281
|
+
"name": "RealtimeReasoningEffort",
|
|
1282
|
+
"kind": "enum",
|
|
1283
|
+
"base": "string",
|
|
1284
|
+
"values": [
|
|
1285
|
+
{
|
|
1286
|
+
"value": "minimal"
|
|
1287
|
+
},
|
|
1288
|
+
{
|
|
1289
|
+
"value": "low"
|
|
1290
|
+
},
|
|
1291
|
+
{
|
|
1292
|
+
"value": "medium"
|
|
1293
|
+
},
|
|
1294
|
+
{
|
|
1295
|
+
"value": "high"
|
|
1296
|
+
},
|
|
1297
|
+
{
|
|
1298
|
+
"value": "xhigh"
|
|
1299
|
+
}
|
|
1300
|
+
],
|
|
1301
|
+
"description": "Constrains effort on reasoning for reasoning-capable Realtime models such as\n`gpt-realtime-2`.\n"
|
|
1302
|
+
},
|
|
1303
|
+
{
|
|
1304
|
+
"name": "RealtimeSessionCreateRequestGaMaxOutputTokens",
|
|
1305
|
+
"kind": "union",
|
|
1306
|
+
"semantics": "oneOf",
|
|
1307
|
+
"variants": [
|
|
1308
|
+
{
|
|
1309
|
+
"kind": "scalar",
|
|
1310
|
+
"scalar": "integer"
|
|
1311
|
+
},
|
|
1312
|
+
{
|
|
1313
|
+
"kind": "scalar",
|
|
1314
|
+
"scalar": "string",
|
|
1315
|
+
"const": "inf"
|
|
1316
|
+
}
|
|
1317
|
+
],
|
|
1318
|
+
"description": "Maximum number of output tokens for a single assistant response,\ninclusive of tool calls. Provide an integer between 1 and 4096 to\nlimit output tokens, or `inf` for the maximum available tokens for a\ngiven model. Defaults to `inf`.\n"
|
|
1319
|
+
},
|
|
1320
|
+
{
|
|
1321
|
+
"name": "RealtimeTruncation",
|
|
1322
|
+
"kind": "union",
|
|
1323
|
+
"semantics": "oneOf",
|
|
1324
|
+
"variants": [
|
|
1325
|
+
{
|
|
1326
|
+
"kind": "ref",
|
|
1327
|
+
"name": "RealtimeTruncationString"
|
|
1328
|
+
},
|
|
1329
|
+
{
|
|
1330
|
+
"kind": "ref",
|
|
1331
|
+
"name": "RealtimeTruncationRetentionRatio"
|
|
1332
|
+
}
|
|
1333
|
+
],
|
|
1334
|
+
"description": "When the number of tokens in a conversation exceeds the model's input token limit, the conversation be truncated, meaning messages (starting from the oldest) will not be included in the model's context. A 32k context model with 4,096 max output tokens can only include 28,224 tokens in the context before truncation occurs.\n\nClients can configure truncation behavior to truncate with a lower max token limit, which is an effective way to control token usage and cost.\n\nTruncation will reduce the number of cached tokens on the next turn (busting the cache), since messages are dropped from the beginning of the context. However, clients can also configure truncation to retain messages up to a fraction of the maximum context size, which will reduce the need for future truncations and thus improve the cache rate.\n\nTruncation can be disabled entirely, which means the server will never truncate but would instead return an error if the conversation exceeds the model's input token limit.\n"
|
|
1335
|
+
},
|
|
1336
|
+
{
|
|
1337
|
+
"name": "RealtimeTruncationString",
|
|
1338
|
+
"kind": "enum",
|
|
1339
|
+
"base": "string",
|
|
1340
|
+
"values": [
|
|
1341
|
+
{
|
|
1342
|
+
"value": "auto"
|
|
1343
|
+
},
|
|
1344
|
+
{
|
|
1345
|
+
"value": "disabled"
|
|
1346
|
+
}
|
|
1347
|
+
],
|
|
1348
|
+
"description": "The truncation strategy to use for the session. `auto` is the default truncation strategy. `disabled` will disable truncation and emit errors when the conversation exceeds the input token limit."
|
|
1349
|
+
},
|
|
1350
|
+
{
|
|
1351
|
+
"name": "RealtimeTruncationRetentionRatio",
|
|
1352
|
+
"kind": "struct",
|
|
1353
|
+
"fields": [
|
|
1354
|
+
{
|
|
1355
|
+
"name": "type",
|
|
1356
|
+
"type": {
|
|
1357
|
+
"kind": "scalar",
|
|
1358
|
+
"scalar": "string",
|
|
1359
|
+
"const": "retention_ratio"
|
|
1360
|
+
},
|
|
1361
|
+
"required": true,
|
|
1362
|
+
"description": "Use retention ratio truncation."
|
|
1363
|
+
},
|
|
1364
|
+
{
|
|
1365
|
+
"name": "retention_ratio",
|
|
1366
|
+
"type": {
|
|
1367
|
+
"kind": "scalar",
|
|
1368
|
+
"scalar": "number"
|
|
1369
|
+
},
|
|
1370
|
+
"required": true,
|
|
1371
|
+
"description": "Fraction of post-instruction conversation tokens to retain (`0.0` - `1.0`) when the conversation exceeds the input token limit. Setting this to `0.8` means that messages will be dropped until 80% of the maximum allowed tokens are used. This helps reduce the frequency of truncations and improve cache rates.\n"
|
|
1372
|
+
},
|
|
1373
|
+
{
|
|
1374
|
+
"name": "token_limits",
|
|
1375
|
+
"type": {
|
|
1376
|
+
"kind": "ref",
|
|
1377
|
+
"name": "RealtimeTruncationRetentionRatioTokenLimits"
|
|
1378
|
+
},
|
|
1379
|
+
"required": false,
|
|
1380
|
+
"description": "Optional custom token limits for this truncation strategy. If not provided, the model's default token limits will be used."
|
|
1381
|
+
}
|
|
1382
|
+
],
|
|
1383
|
+
"description": "Retain a fraction of the conversation tokens when the conversation exceeds the input token limit. This allows you to amortize truncations across multiple turns, which can help improve cached token usage."
|
|
1384
|
+
},
|
|
1385
|
+
{
|
|
1386
|
+
"name": "RealtimeTruncationRetentionRatioTokenLimits",
|
|
1387
|
+
"kind": "struct",
|
|
1388
|
+
"fields": [
|
|
1389
|
+
{
|
|
1390
|
+
"name": "post_instructions",
|
|
1391
|
+
"type": {
|
|
1392
|
+
"kind": "scalar",
|
|
1393
|
+
"scalar": "integer"
|
|
1394
|
+
},
|
|
1395
|
+
"required": false,
|
|
1396
|
+
"description": "Maximum tokens allowed in the conversation after instructions (which including tool definitions). For example, setting this to 5,000 would mean that truncation would occur when the conversation exceeds 5,000 tokens after instructions. This cannot be higher than the model's context window size minus the maximum output tokens."
|
|
1397
|
+
}
|
|
1398
|
+
],
|
|
1399
|
+
"description": "Optional custom token limits for this truncation strategy. If not provided, the model's default token limits will be used."
|
|
1400
|
+
},
|
|
1401
|
+
{
|
|
1402
|
+
"name": "Prompt",
|
|
1403
|
+
"kind": "struct",
|
|
1404
|
+
"fields": [
|
|
1405
|
+
{
|
|
1406
|
+
"name": "id",
|
|
1407
|
+
"type": {
|
|
1408
|
+
"kind": "scalar",
|
|
1409
|
+
"scalar": "string"
|
|
1410
|
+
},
|
|
1411
|
+
"required": true,
|
|
1412
|
+
"description": "The unique identifier of the prompt template to use."
|
|
1413
|
+
},
|
|
1414
|
+
{
|
|
1415
|
+
"name": "version",
|
|
1416
|
+
"type": {
|
|
1417
|
+
"kind": "scalar",
|
|
1418
|
+
"scalar": "string",
|
|
1419
|
+
"nullable": true
|
|
1420
|
+
},
|
|
1421
|
+
"required": false
|
|
1422
|
+
},
|
|
1423
|
+
{
|
|
1424
|
+
"name": "variables",
|
|
1425
|
+
"type": {
|
|
1426
|
+
"kind": "ref",
|
|
1427
|
+
"name": "ResponsePromptVariables"
|
|
1428
|
+
},
|
|
1429
|
+
"required": false
|
|
1430
|
+
}
|
|
1431
|
+
],
|
|
1432
|
+
"description": "Reference to a prompt template and its variables.\n[Learn more](/docs/guides/text?api-mode=responses#reusable-prompts).\n"
|
|
1433
|
+
},
|
|
1434
|
+
{
|
|
1435
|
+
"name": "ResponsePromptVariables",
|
|
1436
|
+
"kind": "alias",
|
|
1437
|
+
"of": {
|
|
1438
|
+
"kind": "map",
|
|
1439
|
+
"values": {
|
|
1440
|
+
"kind": "ref",
|
|
1441
|
+
"name": "ResponsePromptVariablesValue"
|
|
1442
|
+
},
|
|
1443
|
+
"nullable": true
|
|
1444
|
+
}
|
|
1445
|
+
},
|
|
1446
|
+
{
|
|
1447
|
+
"name": "ResponsePromptVariablesValue",
|
|
1448
|
+
"kind": "union",
|
|
1449
|
+
"semantics": "oneOf",
|
|
1450
|
+
"variants": [
|
|
1451
|
+
{
|
|
1452
|
+
"kind": "scalar",
|
|
1453
|
+
"scalar": "string"
|
|
1454
|
+
},
|
|
1455
|
+
{
|
|
1456
|
+
"kind": "ref",
|
|
1457
|
+
"name": "InputTextContent"
|
|
1458
|
+
},
|
|
1459
|
+
{
|
|
1460
|
+
"kind": "ref",
|
|
1461
|
+
"name": "InputImageContent"
|
|
1462
|
+
},
|
|
1463
|
+
{
|
|
1464
|
+
"kind": "ref",
|
|
1465
|
+
"name": "InputFileContent"
|
|
1466
|
+
}
|
|
1467
|
+
]
|
|
1468
|
+
},
|
|
1469
|
+
{
|
|
1470
|
+
"name": "InputTextContent",
|
|
1471
|
+
"kind": "struct",
|
|
1472
|
+
"fields": [
|
|
1473
|
+
{
|
|
1474
|
+
"name": "type",
|
|
1475
|
+
"type": {
|
|
1476
|
+
"kind": "scalar",
|
|
1477
|
+
"scalar": "string",
|
|
1478
|
+
"const": "input_text"
|
|
1479
|
+
},
|
|
1480
|
+
"required": true,
|
|
1481
|
+
"default": "input_text",
|
|
1482
|
+
"description": "The type of the input item. Always `input_text`."
|
|
1483
|
+
},
|
|
1484
|
+
{
|
|
1485
|
+
"name": "text",
|
|
1486
|
+
"type": {
|
|
1487
|
+
"kind": "scalar",
|
|
1488
|
+
"scalar": "string"
|
|
1489
|
+
},
|
|
1490
|
+
"required": true,
|
|
1491
|
+
"description": "The text input to the model."
|
|
1492
|
+
}
|
|
1493
|
+
],
|
|
1494
|
+
"description": "A text input to the model."
|
|
1495
|
+
},
|
|
1496
|
+
{
|
|
1497
|
+
"name": "InputImageContent",
|
|
1498
|
+
"kind": "struct",
|
|
1499
|
+
"fields": [
|
|
1500
|
+
{
|
|
1501
|
+
"name": "type",
|
|
1502
|
+
"type": {
|
|
1503
|
+
"kind": "scalar",
|
|
1504
|
+
"scalar": "string",
|
|
1505
|
+
"const": "input_image"
|
|
1506
|
+
},
|
|
1507
|
+
"required": true,
|
|
1508
|
+
"default": "input_image",
|
|
1509
|
+
"description": "The type of the input item. Always `input_image`."
|
|
1510
|
+
},
|
|
1511
|
+
{
|
|
1512
|
+
"name": "image_url",
|
|
1513
|
+
"type": {
|
|
1514
|
+
"kind": "scalar",
|
|
1515
|
+
"scalar": "string",
|
|
1516
|
+
"format": "uri",
|
|
1517
|
+
"nullable": true
|
|
1518
|
+
},
|
|
1519
|
+
"required": false
|
|
1520
|
+
},
|
|
1521
|
+
{
|
|
1522
|
+
"name": "file_id",
|
|
1523
|
+
"type": {
|
|
1524
|
+
"kind": "scalar",
|
|
1525
|
+
"scalar": "string",
|
|
1526
|
+
"nullable": true
|
|
1527
|
+
},
|
|
1528
|
+
"required": false
|
|
1529
|
+
},
|
|
1530
|
+
{
|
|
1531
|
+
"name": "detail",
|
|
1532
|
+
"type": {
|
|
1533
|
+
"kind": "ref",
|
|
1534
|
+
"name": "ImageDetail"
|
|
1535
|
+
},
|
|
1536
|
+
"required": true
|
|
1537
|
+
}
|
|
1538
|
+
],
|
|
1539
|
+
"description": "An image input to the model. Learn about [image inputs](/docs/guides/vision)."
|
|
1540
|
+
},
|
|
1541
|
+
{
|
|
1542
|
+
"name": "ImageDetail",
|
|
1543
|
+
"kind": "enum",
|
|
1544
|
+
"base": "string",
|
|
1545
|
+
"values": [
|
|
1546
|
+
{
|
|
1547
|
+
"value": "low"
|
|
1548
|
+
},
|
|
1549
|
+
{
|
|
1550
|
+
"value": "high"
|
|
1551
|
+
},
|
|
1552
|
+
{
|
|
1553
|
+
"value": "auto"
|
|
1554
|
+
},
|
|
1555
|
+
{
|
|
1556
|
+
"value": "original"
|
|
1557
|
+
}
|
|
1558
|
+
]
|
|
1559
|
+
},
|
|
1560
|
+
{
|
|
1561
|
+
"name": "InputFileContent",
|
|
1562
|
+
"kind": "struct",
|
|
1563
|
+
"fields": [
|
|
1564
|
+
{
|
|
1565
|
+
"name": "type",
|
|
1566
|
+
"type": {
|
|
1567
|
+
"kind": "scalar",
|
|
1568
|
+
"scalar": "string",
|
|
1569
|
+
"const": "input_file"
|
|
1570
|
+
},
|
|
1571
|
+
"required": true,
|
|
1572
|
+
"default": "input_file",
|
|
1573
|
+
"description": "The type of the input item. Always `input_file`."
|
|
1574
|
+
},
|
|
1575
|
+
{
|
|
1576
|
+
"name": "file_id",
|
|
1577
|
+
"type": {
|
|
1578
|
+
"kind": "scalar",
|
|
1579
|
+
"scalar": "string",
|
|
1580
|
+
"nullable": true
|
|
1581
|
+
},
|
|
1582
|
+
"required": false
|
|
1583
|
+
},
|
|
1584
|
+
{
|
|
1585
|
+
"name": "filename",
|
|
1586
|
+
"type": {
|
|
1587
|
+
"kind": "scalar",
|
|
1588
|
+
"scalar": "string"
|
|
1589
|
+
},
|
|
1590
|
+
"required": false,
|
|
1591
|
+
"description": "The name of the file to be sent to the model."
|
|
1592
|
+
},
|
|
1593
|
+
{
|
|
1594
|
+
"name": "file_data",
|
|
1595
|
+
"type": {
|
|
1596
|
+
"kind": "scalar",
|
|
1597
|
+
"scalar": "string"
|
|
1598
|
+
},
|
|
1599
|
+
"required": false,
|
|
1600
|
+
"description": "The content of the file to be sent to the model.\n"
|
|
1601
|
+
},
|
|
1602
|
+
{
|
|
1603
|
+
"name": "file_url",
|
|
1604
|
+
"type": {
|
|
1605
|
+
"kind": "scalar",
|
|
1606
|
+
"scalar": "string",
|
|
1607
|
+
"format": "uri"
|
|
1608
|
+
},
|
|
1609
|
+
"required": false,
|
|
1610
|
+
"description": "The URL of the file to be sent to the model."
|
|
1611
|
+
},
|
|
1612
|
+
{
|
|
1613
|
+
"name": "detail",
|
|
1614
|
+
"type": {
|
|
1615
|
+
"kind": "ref",
|
|
1616
|
+
"name": "FileInputDetail"
|
|
1617
|
+
},
|
|
1618
|
+
"required": false
|
|
1619
|
+
}
|
|
1620
|
+
],
|
|
1621
|
+
"description": "A file input to the model."
|
|
1622
|
+
},
|
|
1623
|
+
{
|
|
1624
|
+
"name": "FileInputDetail",
|
|
1625
|
+
"kind": "enum",
|
|
1626
|
+
"base": "string",
|
|
1627
|
+
"values": [
|
|
1628
|
+
{
|
|
1629
|
+
"value": "low"
|
|
1630
|
+
},
|
|
1631
|
+
{
|
|
1632
|
+
"value": "high"
|
|
1633
|
+
}
|
|
1634
|
+
]
|
|
1635
|
+
}
|
|
1636
|
+
],
|
|
1637
|
+
"resources": [
|
|
1638
|
+
{
|
|
1639
|
+
"name": "realtime",
|
|
1640
|
+
"resources": [
|
|
1641
|
+
{
|
|
1642
|
+
"name": "calls",
|
|
1643
|
+
"methods": [
|
|
1644
|
+
{
|
|
1645
|
+
"action": "accept",
|
|
1646
|
+
"httpMethod": "post",
|
|
1647
|
+
"path": "/realtime/calls/{call_id}/accept",
|
|
1648
|
+
"operationId": "accept-realtime-call",
|
|
1649
|
+
"description": "Accept an incoming SIP call and configure the realtime session that will\nhandle it.",
|
|
1650
|
+
"pathParams": [
|
|
1651
|
+
{
|
|
1652
|
+
"name": "call_id",
|
|
1653
|
+
"type": {
|
|
1654
|
+
"kind": "scalar",
|
|
1655
|
+
"scalar": "string"
|
|
1656
|
+
},
|
|
1657
|
+
"required": true,
|
|
1658
|
+
"description": "The identifier for the call provided in the\n[`realtime.call.incoming`](/docs/api-reference/webhook-events/realtime/call/incoming)\nwebhook."
|
|
1659
|
+
}
|
|
1660
|
+
],
|
|
1661
|
+
"requestBody": {
|
|
1662
|
+
"contentType": "application/json",
|
|
1663
|
+
"type": {
|
|
1664
|
+
"kind": "ref",
|
|
1665
|
+
"name": "RealtimeSessionCreateRequestGa"
|
|
1666
|
+
},
|
|
1667
|
+
"required": true,
|
|
1668
|
+
"encoding": "json",
|
|
1669
|
+
"description": "Session configuration to apply before the caller is bridged to the model."
|
|
1670
|
+
},
|
|
1671
|
+
"responses": [
|
|
1672
|
+
{
|
|
1673
|
+
"status": "200",
|
|
1674
|
+
"description": "Call accepted successfully."
|
|
1675
|
+
}
|
|
1676
|
+
]
|
|
1677
|
+
}
|
|
1678
|
+
]
|
|
1679
|
+
}
|
|
1680
|
+
]
|
|
1681
|
+
}
|
|
1682
|
+
],
|
|
1683
|
+
"sdk": {
|
|
1684
|
+
"retry": {
|
|
1685
|
+
"maxRetries": 2,
|
|
1686
|
+
"retryableStatusCodes": [
|
|
1687
|
+
408,
|
|
1688
|
+
429,
|
|
1689
|
+
500,
|
|
1690
|
+
502,
|
|
1691
|
+
503,
|
|
1692
|
+
504
|
|
1693
|
+
],
|
|
1694
|
+
"retryConnectionErrors": true,
|
|
1695
|
+
"honorRetryAfterHeader": true,
|
|
1696
|
+
"backoff": {
|
|
1697
|
+
"initialDelayMs": 500,
|
|
1698
|
+
"maxDelayMs": 8000,
|
|
1699
|
+
"multiplier": 2,
|
|
1700
|
+
"jitter": 0.25
|
|
1701
|
+
}
|
|
1702
|
+
},
|
|
1703
|
+
"timeout": {
|
|
1704
|
+
"defaultTimeoutMs": 60000
|
|
1705
|
+
},
|
|
1706
|
+
"errors": {
|
|
1707
|
+
"statusCodeMap": {
|
|
1708
|
+
"400": "BadRequest",
|
|
1709
|
+
"401": "Unauthorized",
|
|
1710
|
+
"403": "PermissionDenied",
|
|
1711
|
+
"404": "NotFound",
|
|
1712
|
+
"409": "Conflict",
|
|
1713
|
+
"422": "UnprocessableEntity",
|
|
1714
|
+
"429": "RateLimited"
|
|
1715
|
+
},
|
|
1716
|
+
"clientErrorKind": "API",
|
|
1717
|
+
"serverErrorKind": "Internal"
|
|
1718
|
+
},
|
|
1719
|
+
"userAgent": {
|
|
1720
|
+
"sdkIdentifierTemplate": "{package}-{language}/{version}",
|
|
1721
|
+
"includeRuntimeVersion": false,
|
|
1722
|
+
"aiAgentEnvVars": {
|
|
1723
|
+
"CLAUDE_CODE": "claude-code",
|
|
1724
|
+
"CURSOR_AGENT": "cursor",
|
|
1725
|
+
"CLINE_ACTIVE": "cline",
|
|
1726
|
+
"WINDSURF_ACTIVE": "windsurf",
|
|
1727
|
+
"COPILOT_AGENT": "copilot"
|
|
1728
|
+
}
|
|
1729
|
+
},
|
|
1730
|
+
"telemetry": {
|
|
1731
|
+
"requestIdHeader": "X-Request-ID",
|
|
1732
|
+
"headerName": "X-Client-Telemetry",
|
|
1733
|
+
"enabledByDefault": false
|
|
1734
|
+
},
|
|
1735
|
+
"logging": {
|
|
1736
|
+
"events": [
|
|
1737
|
+
"request.start",
|
|
1738
|
+
"request.success",
|
|
1739
|
+
"request.retry",
|
|
1740
|
+
"request.rate_limited",
|
|
1741
|
+
"request.error",
|
|
1742
|
+
"request.connection_error"
|
|
1743
|
+
]
|
|
1744
|
+
},
|
|
1745
|
+
"idempotency": {
|
|
1746
|
+
"headerName": "Idempotency-Key",
|
|
1747
|
+
"autoGenerateForPost": true
|
|
1748
|
+
},
|
|
1749
|
+
"pagination": {
|
|
1750
|
+
"autoPageDelayMs": 0
|
|
1751
|
+
},
|
|
1752
|
+
"requestGuard": {
|
|
1753
|
+
"optionKeys": [
|
|
1754
|
+
"api_key",
|
|
1755
|
+
"apiKey",
|
|
1756
|
+
"idempotency_key",
|
|
1757
|
+
"idempotencyKey",
|
|
1758
|
+
"extra_headers",
|
|
1759
|
+
"extraHeaders",
|
|
1760
|
+
"max_retries",
|
|
1761
|
+
"maxRetries",
|
|
1762
|
+
"base_url",
|
|
1763
|
+
"baseUrl",
|
|
1764
|
+
"timeout"
|
|
1765
|
+
]
|
|
1766
|
+
}
|
|
1767
|
+
}
|
|
1768
|
+
}
|