@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,973 @@
|
|
|
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": "ChatCompletionsUpdateRequest",
|
|
29
|
+
"kind": "struct",
|
|
30
|
+
"fields": [
|
|
31
|
+
{
|
|
32
|
+
"name": "metadata",
|
|
33
|
+
"type": {
|
|
34
|
+
"kind": "ref",
|
|
35
|
+
"name": "Metadata"
|
|
36
|
+
},
|
|
37
|
+
"required": true
|
|
38
|
+
}
|
|
39
|
+
]
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"name": "Metadata",
|
|
43
|
+
"kind": "alias",
|
|
44
|
+
"of": {
|
|
45
|
+
"kind": "map",
|
|
46
|
+
"values": {
|
|
47
|
+
"kind": "scalar",
|
|
48
|
+
"scalar": "string"
|
|
49
|
+
},
|
|
50
|
+
"nullable": true
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"name": "CreateChatCompletionResponse",
|
|
55
|
+
"kind": "struct",
|
|
56
|
+
"fields": [
|
|
57
|
+
{
|
|
58
|
+
"name": "id",
|
|
59
|
+
"type": {
|
|
60
|
+
"kind": "scalar",
|
|
61
|
+
"scalar": "string"
|
|
62
|
+
},
|
|
63
|
+
"required": true,
|
|
64
|
+
"description": "A unique identifier for the chat completion."
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"name": "choices",
|
|
68
|
+
"type": {
|
|
69
|
+
"kind": "array",
|
|
70
|
+
"items": {
|
|
71
|
+
"kind": "ref",
|
|
72
|
+
"name": "CreateChatCompletionResponseChoicesItem"
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
"required": true,
|
|
76
|
+
"description": "A list of chat completion choices. Can be more than one if `n` is greater than 1."
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"name": "created",
|
|
80
|
+
"type": {
|
|
81
|
+
"kind": "scalar",
|
|
82
|
+
"scalar": "integer",
|
|
83
|
+
"format": "unixtime"
|
|
84
|
+
},
|
|
85
|
+
"required": true,
|
|
86
|
+
"description": "The Unix timestamp (in seconds) of when the chat completion was created."
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"name": "model",
|
|
90
|
+
"type": {
|
|
91
|
+
"kind": "scalar",
|
|
92
|
+
"scalar": "string"
|
|
93
|
+
},
|
|
94
|
+
"required": true,
|
|
95
|
+
"description": "The model used for the chat completion."
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"name": "service_tier",
|
|
99
|
+
"type": {
|
|
100
|
+
"kind": "ref",
|
|
101
|
+
"name": "ServiceTier"
|
|
102
|
+
},
|
|
103
|
+
"required": false
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"name": "system_fingerprint",
|
|
107
|
+
"type": {
|
|
108
|
+
"kind": "scalar",
|
|
109
|
+
"scalar": "string"
|
|
110
|
+
},
|
|
111
|
+
"required": false,
|
|
112
|
+
"deprecated": true,
|
|
113
|
+
"description": "This fingerprint represents the backend configuration that the model runs with.\n\nCan be used in conjunction with the `seed` request parameter to understand when backend changes have been made that might impact determinism.\n"
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"name": "object",
|
|
117
|
+
"type": {
|
|
118
|
+
"kind": "scalar",
|
|
119
|
+
"scalar": "string",
|
|
120
|
+
"const": "chat.completion"
|
|
121
|
+
},
|
|
122
|
+
"required": true,
|
|
123
|
+
"description": "The object type, which is always `chat.completion`."
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"name": "usage",
|
|
127
|
+
"type": {
|
|
128
|
+
"kind": "ref",
|
|
129
|
+
"name": "CompletionUsage"
|
|
130
|
+
},
|
|
131
|
+
"required": false
|
|
132
|
+
}
|
|
133
|
+
],
|
|
134
|
+
"description": "Represents a chat completion response returned by model, based on the provided input."
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"name": "CreateChatCompletionResponseChoicesItem",
|
|
138
|
+
"kind": "struct",
|
|
139
|
+
"fields": [
|
|
140
|
+
{
|
|
141
|
+
"name": "finish_reason",
|
|
142
|
+
"type": {
|
|
143
|
+
"kind": "ref",
|
|
144
|
+
"name": "CreateChatCompletionResponseChoicesItemFinishReason"
|
|
145
|
+
},
|
|
146
|
+
"required": true,
|
|
147
|
+
"description": "The reason the model stopped generating tokens. This will be `stop` if the model hit a natural stop point or a provided stop sequence,\n`length` if the maximum number of tokens specified in the request was reached,\n`content_filter` if content was omitted due to a flag from our content filters,\n`tool_calls` if the model called a tool, or `function_call` (deprecated) if the model called a function.\n"
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"name": "index",
|
|
151
|
+
"type": {
|
|
152
|
+
"kind": "scalar",
|
|
153
|
+
"scalar": "integer"
|
|
154
|
+
},
|
|
155
|
+
"required": true,
|
|
156
|
+
"description": "The index of the choice in the list of choices."
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"name": "message",
|
|
160
|
+
"type": {
|
|
161
|
+
"kind": "ref",
|
|
162
|
+
"name": "ChatCompletionResponseMessage"
|
|
163
|
+
},
|
|
164
|
+
"required": true
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"name": "logprobs",
|
|
168
|
+
"type": {
|
|
169
|
+
"kind": "ref",
|
|
170
|
+
"name": "CreateChatCompletionResponseChoicesItemLogprobs",
|
|
171
|
+
"nullable": true
|
|
172
|
+
},
|
|
173
|
+
"required": true
|
|
174
|
+
}
|
|
175
|
+
]
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"name": "CreateChatCompletionResponseChoicesItemFinishReason",
|
|
179
|
+
"kind": "enum",
|
|
180
|
+
"base": "string",
|
|
181
|
+
"values": [
|
|
182
|
+
{
|
|
183
|
+
"value": "stop"
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
"value": "length"
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"value": "tool_calls"
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"value": "content_filter"
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"value": "function_call"
|
|
196
|
+
}
|
|
197
|
+
],
|
|
198
|
+
"description": "The reason the model stopped generating tokens. This will be `stop` if the model hit a natural stop point or a provided stop sequence,\n`length` if the maximum number of tokens specified in the request was reached,\n`content_filter` if content was omitted due to a flag from our content filters,\n`tool_calls` if the model called a tool, or `function_call` (deprecated) if the model called a function.\n"
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"name": "ChatCompletionResponseMessage",
|
|
202
|
+
"kind": "struct",
|
|
203
|
+
"fields": [
|
|
204
|
+
{
|
|
205
|
+
"name": "content",
|
|
206
|
+
"type": {
|
|
207
|
+
"kind": "scalar",
|
|
208
|
+
"scalar": "string",
|
|
209
|
+
"nullable": true
|
|
210
|
+
},
|
|
211
|
+
"required": true
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
"name": "refusal",
|
|
215
|
+
"type": {
|
|
216
|
+
"kind": "scalar",
|
|
217
|
+
"scalar": "string",
|
|
218
|
+
"nullable": true
|
|
219
|
+
},
|
|
220
|
+
"required": true
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
"name": "tool_calls",
|
|
224
|
+
"type": {
|
|
225
|
+
"kind": "ref",
|
|
226
|
+
"name": "ChatCompletionMessageToolCalls"
|
|
227
|
+
},
|
|
228
|
+
"required": false
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
"name": "annotations",
|
|
232
|
+
"type": {
|
|
233
|
+
"kind": "array",
|
|
234
|
+
"items": {
|
|
235
|
+
"kind": "ref",
|
|
236
|
+
"name": "ChatCompletionResponseMessageAnnotationsItem"
|
|
237
|
+
}
|
|
238
|
+
},
|
|
239
|
+
"required": false,
|
|
240
|
+
"description": "Annotations for the message, when applicable, as when using the\n[web search tool](/docs/guides/tools-web-search?api-mode=chat).\n"
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
"name": "role",
|
|
244
|
+
"type": {
|
|
245
|
+
"kind": "scalar",
|
|
246
|
+
"scalar": "string",
|
|
247
|
+
"const": "assistant"
|
|
248
|
+
},
|
|
249
|
+
"required": true,
|
|
250
|
+
"description": "The role of the author of this message."
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
"name": "function_call",
|
|
254
|
+
"type": {
|
|
255
|
+
"kind": "ref",
|
|
256
|
+
"name": "ChatCompletionResponseMessageFunctionCall"
|
|
257
|
+
},
|
|
258
|
+
"required": false,
|
|
259
|
+
"deprecated": true,
|
|
260
|
+
"description": "Deprecated and replaced by `tool_calls`. The name and arguments of a function that should be called, as generated by the model."
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
"name": "audio",
|
|
264
|
+
"type": {
|
|
265
|
+
"kind": "ref",
|
|
266
|
+
"name": "ChatCompletionResponseMessageAudio",
|
|
267
|
+
"nullable": true
|
|
268
|
+
},
|
|
269
|
+
"required": false
|
|
270
|
+
}
|
|
271
|
+
],
|
|
272
|
+
"description": "A chat completion message generated by the model."
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
"name": "ChatCompletionMessageToolCalls",
|
|
276
|
+
"kind": "alias",
|
|
277
|
+
"of": {
|
|
278
|
+
"kind": "array",
|
|
279
|
+
"items": {
|
|
280
|
+
"kind": "ref",
|
|
281
|
+
"name": "ChatCompletionMessageToolCallsItem"
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
"name": "ChatCompletionMessageToolCallsItem",
|
|
287
|
+
"kind": "union",
|
|
288
|
+
"semantics": "oneOf",
|
|
289
|
+
"variants": [
|
|
290
|
+
{
|
|
291
|
+
"kind": "ref",
|
|
292
|
+
"name": "ChatCompletionMessageToolCall"
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
"kind": "ref",
|
|
296
|
+
"name": "ChatCompletionMessageCustomToolCall"
|
|
297
|
+
}
|
|
298
|
+
],
|
|
299
|
+
"discriminator": {
|
|
300
|
+
"propertyName": "type",
|
|
301
|
+
"mapping": {
|
|
302
|
+
"function": "ChatCompletionMessageToolCall",
|
|
303
|
+
"custom": "ChatCompletionMessageCustomToolCall"
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
"name": "ChatCompletionMessageToolCall",
|
|
309
|
+
"kind": "struct",
|
|
310
|
+
"fields": [
|
|
311
|
+
{
|
|
312
|
+
"name": "id",
|
|
313
|
+
"type": {
|
|
314
|
+
"kind": "scalar",
|
|
315
|
+
"scalar": "string"
|
|
316
|
+
},
|
|
317
|
+
"required": true,
|
|
318
|
+
"description": "The ID of the tool call."
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
"name": "type",
|
|
322
|
+
"type": {
|
|
323
|
+
"kind": "scalar",
|
|
324
|
+
"scalar": "string",
|
|
325
|
+
"const": "function"
|
|
326
|
+
},
|
|
327
|
+
"required": true,
|
|
328
|
+
"description": "The type of the tool. Currently, only `function` is supported."
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
"name": "function",
|
|
332
|
+
"type": {
|
|
333
|
+
"kind": "ref",
|
|
334
|
+
"name": "ChatCompletionMessageToolCallFunction"
|
|
335
|
+
},
|
|
336
|
+
"required": true,
|
|
337
|
+
"description": "The function that the model called."
|
|
338
|
+
}
|
|
339
|
+
],
|
|
340
|
+
"description": "A call to a function tool created by the model.\n"
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
"name": "ChatCompletionMessageToolCallFunction",
|
|
344
|
+
"kind": "struct",
|
|
345
|
+
"fields": [
|
|
346
|
+
{
|
|
347
|
+
"name": "name",
|
|
348
|
+
"type": {
|
|
349
|
+
"kind": "scalar",
|
|
350
|
+
"scalar": "string"
|
|
351
|
+
},
|
|
352
|
+
"required": true,
|
|
353
|
+
"description": "The name of the function to call."
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
"name": "arguments",
|
|
357
|
+
"type": {
|
|
358
|
+
"kind": "scalar",
|
|
359
|
+
"scalar": "string"
|
|
360
|
+
},
|
|
361
|
+
"required": true,
|
|
362
|
+
"description": "The arguments to call the function with, as generated by the model in JSON format. Note that the model does not always generate valid JSON, and may hallucinate parameters not defined by your function schema. Validate the arguments in your code before calling your function."
|
|
363
|
+
}
|
|
364
|
+
],
|
|
365
|
+
"description": "The function that the model called."
|
|
366
|
+
},
|
|
367
|
+
{
|
|
368
|
+
"name": "ChatCompletionMessageCustomToolCall",
|
|
369
|
+
"kind": "struct",
|
|
370
|
+
"fields": [
|
|
371
|
+
{
|
|
372
|
+
"name": "id",
|
|
373
|
+
"type": {
|
|
374
|
+
"kind": "scalar",
|
|
375
|
+
"scalar": "string"
|
|
376
|
+
},
|
|
377
|
+
"required": true,
|
|
378
|
+
"description": "The ID of the tool call."
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
"name": "type",
|
|
382
|
+
"type": {
|
|
383
|
+
"kind": "scalar",
|
|
384
|
+
"scalar": "string",
|
|
385
|
+
"const": "custom"
|
|
386
|
+
},
|
|
387
|
+
"required": true,
|
|
388
|
+
"description": "The type of the tool. Always `custom`."
|
|
389
|
+
},
|
|
390
|
+
{
|
|
391
|
+
"name": "custom",
|
|
392
|
+
"type": {
|
|
393
|
+
"kind": "ref",
|
|
394
|
+
"name": "ChatCompletionMessageCustomToolCallCustom"
|
|
395
|
+
},
|
|
396
|
+
"required": true,
|
|
397
|
+
"description": "The custom tool that the model called."
|
|
398
|
+
}
|
|
399
|
+
],
|
|
400
|
+
"description": "A call to a custom tool created by the model.\n"
|
|
401
|
+
},
|
|
402
|
+
{
|
|
403
|
+
"name": "ChatCompletionMessageCustomToolCallCustom",
|
|
404
|
+
"kind": "struct",
|
|
405
|
+
"fields": [
|
|
406
|
+
{
|
|
407
|
+
"name": "name",
|
|
408
|
+
"type": {
|
|
409
|
+
"kind": "scalar",
|
|
410
|
+
"scalar": "string"
|
|
411
|
+
},
|
|
412
|
+
"required": true,
|
|
413
|
+
"description": "The name of the custom tool to call."
|
|
414
|
+
},
|
|
415
|
+
{
|
|
416
|
+
"name": "input",
|
|
417
|
+
"type": {
|
|
418
|
+
"kind": "scalar",
|
|
419
|
+
"scalar": "string"
|
|
420
|
+
},
|
|
421
|
+
"required": true,
|
|
422
|
+
"description": "The input for the custom tool call generated by the model."
|
|
423
|
+
}
|
|
424
|
+
],
|
|
425
|
+
"description": "The custom tool that the model called."
|
|
426
|
+
},
|
|
427
|
+
{
|
|
428
|
+
"name": "ChatCompletionResponseMessageAnnotationsItem",
|
|
429
|
+
"kind": "struct",
|
|
430
|
+
"fields": [
|
|
431
|
+
{
|
|
432
|
+
"name": "type",
|
|
433
|
+
"type": {
|
|
434
|
+
"kind": "scalar",
|
|
435
|
+
"scalar": "string",
|
|
436
|
+
"const": "url_citation"
|
|
437
|
+
},
|
|
438
|
+
"required": true,
|
|
439
|
+
"description": "The type of the URL citation. Always `url_citation`."
|
|
440
|
+
},
|
|
441
|
+
{
|
|
442
|
+
"name": "url_citation",
|
|
443
|
+
"type": {
|
|
444
|
+
"kind": "ref",
|
|
445
|
+
"name": "ChatCompletionResponseMessageAnnotationsItemUrlCitation"
|
|
446
|
+
},
|
|
447
|
+
"required": true,
|
|
448
|
+
"description": "A URL citation when using web search."
|
|
449
|
+
}
|
|
450
|
+
],
|
|
451
|
+
"description": "A URL citation when using web search.\n"
|
|
452
|
+
},
|
|
453
|
+
{
|
|
454
|
+
"name": "ChatCompletionResponseMessageAnnotationsItemUrlCitation",
|
|
455
|
+
"kind": "struct",
|
|
456
|
+
"fields": [
|
|
457
|
+
{
|
|
458
|
+
"name": "end_index",
|
|
459
|
+
"type": {
|
|
460
|
+
"kind": "scalar",
|
|
461
|
+
"scalar": "integer"
|
|
462
|
+
},
|
|
463
|
+
"required": true,
|
|
464
|
+
"description": "The index of the last character of the URL citation in the message."
|
|
465
|
+
},
|
|
466
|
+
{
|
|
467
|
+
"name": "start_index",
|
|
468
|
+
"type": {
|
|
469
|
+
"kind": "scalar",
|
|
470
|
+
"scalar": "integer"
|
|
471
|
+
},
|
|
472
|
+
"required": true,
|
|
473
|
+
"description": "The index of the first character of the URL citation in the message."
|
|
474
|
+
},
|
|
475
|
+
{
|
|
476
|
+
"name": "url",
|
|
477
|
+
"type": {
|
|
478
|
+
"kind": "scalar",
|
|
479
|
+
"scalar": "string",
|
|
480
|
+
"format": "uri"
|
|
481
|
+
},
|
|
482
|
+
"required": true,
|
|
483
|
+
"description": "The URL of the web resource."
|
|
484
|
+
},
|
|
485
|
+
{
|
|
486
|
+
"name": "title",
|
|
487
|
+
"type": {
|
|
488
|
+
"kind": "scalar",
|
|
489
|
+
"scalar": "string"
|
|
490
|
+
},
|
|
491
|
+
"required": true,
|
|
492
|
+
"description": "The title of the web resource."
|
|
493
|
+
}
|
|
494
|
+
],
|
|
495
|
+
"description": "A URL citation when using web search."
|
|
496
|
+
},
|
|
497
|
+
{
|
|
498
|
+
"name": "ChatCompletionResponseMessageFunctionCall",
|
|
499
|
+
"kind": "struct",
|
|
500
|
+
"fields": [
|
|
501
|
+
{
|
|
502
|
+
"name": "arguments",
|
|
503
|
+
"type": {
|
|
504
|
+
"kind": "scalar",
|
|
505
|
+
"scalar": "string"
|
|
506
|
+
},
|
|
507
|
+
"required": true,
|
|
508
|
+
"description": "The arguments to call the function with, as generated by the model in JSON format. Note that the model does not always generate valid JSON, and may hallucinate parameters not defined by your function schema. Validate the arguments in your code before calling your function."
|
|
509
|
+
},
|
|
510
|
+
{
|
|
511
|
+
"name": "name",
|
|
512
|
+
"type": {
|
|
513
|
+
"kind": "scalar",
|
|
514
|
+
"scalar": "string"
|
|
515
|
+
},
|
|
516
|
+
"required": true,
|
|
517
|
+
"description": "The name of the function to call."
|
|
518
|
+
}
|
|
519
|
+
],
|
|
520
|
+
"description": "Deprecated and replaced by `tool_calls`. The name and arguments of a function that should be called, as generated by the model."
|
|
521
|
+
},
|
|
522
|
+
{
|
|
523
|
+
"name": "ChatCompletionResponseMessageAudio",
|
|
524
|
+
"kind": "struct",
|
|
525
|
+
"fields": [
|
|
526
|
+
{
|
|
527
|
+
"name": "id",
|
|
528
|
+
"type": {
|
|
529
|
+
"kind": "scalar",
|
|
530
|
+
"scalar": "string"
|
|
531
|
+
},
|
|
532
|
+
"required": true,
|
|
533
|
+
"description": "Unique identifier for this audio response."
|
|
534
|
+
},
|
|
535
|
+
{
|
|
536
|
+
"name": "expires_at",
|
|
537
|
+
"type": {
|
|
538
|
+
"kind": "scalar",
|
|
539
|
+
"scalar": "integer",
|
|
540
|
+
"format": "unixtime"
|
|
541
|
+
},
|
|
542
|
+
"required": true,
|
|
543
|
+
"description": "The Unix timestamp (in seconds) for when this audio response will\nno longer be accessible on the server for use in multi-turn\nconversations.\n"
|
|
544
|
+
},
|
|
545
|
+
{
|
|
546
|
+
"name": "data",
|
|
547
|
+
"type": {
|
|
548
|
+
"kind": "scalar",
|
|
549
|
+
"scalar": "string"
|
|
550
|
+
},
|
|
551
|
+
"required": true,
|
|
552
|
+
"description": "Base64 encoded audio bytes generated by the model, in the format\nspecified in the request.\n"
|
|
553
|
+
},
|
|
554
|
+
{
|
|
555
|
+
"name": "transcript",
|
|
556
|
+
"type": {
|
|
557
|
+
"kind": "scalar",
|
|
558
|
+
"scalar": "string"
|
|
559
|
+
},
|
|
560
|
+
"required": true,
|
|
561
|
+
"description": "Transcript of the audio generated by the model."
|
|
562
|
+
}
|
|
563
|
+
],
|
|
564
|
+
"description": "If the audio output modality is requested, this object contains data\nabout the audio response from the model. [Learn more](/docs/guides/audio).\n"
|
|
565
|
+
},
|
|
566
|
+
{
|
|
567
|
+
"name": "CreateChatCompletionResponseChoicesItemLogprobs",
|
|
568
|
+
"kind": "struct",
|
|
569
|
+
"fields": [
|
|
570
|
+
{
|
|
571
|
+
"name": "content",
|
|
572
|
+
"type": {
|
|
573
|
+
"kind": "array",
|
|
574
|
+
"items": {
|
|
575
|
+
"kind": "ref",
|
|
576
|
+
"name": "ChatCompletionTokenLogprob"
|
|
577
|
+
},
|
|
578
|
+
"nullable": true
|
|
579
|
+
},
|
|
580
|
+
"required": true
|
|
581
|
+
},
|
|
582
|
+
{
|
|
583
|
+
"name": "refusal",
|
|
584
|
+
"type": {
|
|
585
|
+
"kind": "array",
|
|
586
|
+
"items": {
|
|
587
|
+
"kind": "ref",
|
|
588
|
+
"name": "ChatCompletionTokenLogprob"
|
|
589
|
+
},
|
|
590
|
+
"nullable": true
|
|
591
|
+
},
|
|
592
|
+
"required": true
|
|
593
|
+
}
|
|
594
|
+
],
|
|
595
|
+
"description": "Log probability information for the choice."
|
|
596
|
+
},
|
|
597
|
+
{
|
|
598
|
+
"name": "ChatCompletionTokenLogprob",
|
|
599
|
+
"kind": "struct",
|
|
600
|
+
"fields": [
|
|
601
|
+
{
|
|
602
|
+
"name": "token",
|
|
603
|
+
"type": {
|
|
604
|
+
"kind": "scalar",
|
|
605
|
+
"scalar": "string"
|
|
606
|
+
},
|
|
607
|
+
"required": true,
|
|
608
|
+
"description": "The token."
|
|
609
|
+
},
|
|
610
|
+
{
|
|
611
|
+
"name": "logprob",
|
|
612
|
+
"type": {
|
|
613
|
+
"kind": "scalar",
|
|
614
|
+
"scalar": "number"
|
|
615
|
+
},
|
|
616
|
+
"required": true,
|
|
617
|
+
"description": "The log probability of this token, if it is within the top 20 most likely tokens. Otherwise, the value `-9999.0` is used to signify that the token is very unlikely."
|
|
618
|
+
},
|
|
619
|
+
{
|
|
620
|
+
"name": "bytes",
|
|
621
|
+
"type": {
|
|
622
|
+
"kind": "array",
|
|
623
|
+
"items": {
|
|
624
|
+
"kind": "scalar",
|
|
625
|
+
"scalar": "integer"
|
|
626
|
+
},
|
|
627
|
+
"nullable": true
|
|
628
|
+
},
|
|
629
|
+
"required": true
|
|
630
|
+
},
|
|
631
|
+
{
|
|
632
|
+
"name": "top_logprobs",
|
|
633
|
+
"type": {
|
|
634
|
+
"kind": "array",
|
|
635
|
+
"items": {
|
|
636
|
+
"kind": "ref",
|
|
637
|
+
"name": "ChatCompletionTokenLogprobTopLogprobsItem"
|
|
638
|
+
}
|
|
639
|
+
},
|
|
640
|
+
"required": true,
|
|
641
|
+
"description": "List of the most likely tokens and their log probability, at this token position. The number of entries may be fewer than the requested `top_logprobs`."
|
|
642
|
+
}
|
|
643
|
+
]
|
|
644
|
+
},
|
|
645
|
+
{
|
|
646
|
+
"name": "ChatCompletionTokenLogprobTopLogprobsItem",
|
|
647
|
+
"kind": "struct",
|
|
648
|
+
"fields": [
|
|
649
|
+
{
|
|
650
|
+
"name": "token",
|
|
651
|
+
"type": {
|
|
652
|
+
"kind": "scalar",
|
|
653
|
+
"scalar": "string"
|
|
654
|
+
},
|
|
655
|
+
"required": true,
|
|
656
|
+
"description": "The token."
|
|
657
|
+
},
|
|
658
|
+
{
|
|
659
|
+
"name": "logprob",
|
|
660
|
+
"type": {
|
|
661
|
+
"kind": "scalar",
|
|
662
|
+
"scalar": "number"
|
|
663
|
+
},
|
|
664
|
+
"required": true,
|
|
665
|
+
"description": "The log probability of this token, if it is within the top 20 most likely tokens. Otherwise, the value `-9999.0` is used to signify that the token is very unlikely."
|
|
666
|
+
},
|
|
667
|
+
{
|
|
668
|
+
"name": "bytes",
|
|
669
|
+
"type": {
|
|
670
|
+
"kind": "array",
|
|
671
|
+
"items": {
|
|
672
|
+
"kind": "scalar",
|
|
673
|
+
"scalar": "integer"
|
|
674
|
+
},
|
|
675
|
+
"nullable": true
|
|
676
|
+
},
|
|
677
|
+
"required": true
|
|
678
|
+
}
|
|
679
|
+
]
|
|
680
|
+
},
|
|
681
|
+
{
|
|
682
|
+
"name": "ServiceTier",
|
|
683
|
+
"kind": "enum",
|
|
684
|
+
"base": "string",
|
|
685
|
+
"values": [
|
|
686
|
+
{
|
|
687
|
+
"value": "auto"
|
|
688
|
+
},
|
|
689
|
+
{
|
|
690
|
+
"value": "default"
|
|
691
|
+
},
|
|
692
|
+
{
|
|
693
|
+
"value": "flex"
|
|
694
|
+
},
|
|
695
|
+
{
|
|
696
|
+
"value": "scale"
|
|
697
|
+
},
|
|
698
|
+
{
|
|
699
|
+
"value": "priority"
|
|
700
|
+
}
|
|
701
|
+
],
|
|
702
|
+
"description": "Specifies the processing type used for serving the request.\n - If set to 'auto', then the request will be processed with the service tier configured in the Project settings. Unless otherwise configured, the Project will use 'default'.\n - If set to 'default', then the request will be processed with the standard pricing and performance for the selected model.\n - If set to '[flex](/docs/guides/flex-processing)' or '[priority](https://openai.com/api-priority-processing/)', then the request will be processed with the corresponding service tier.\n - When not set, the default behavior is 'auto'.\n\n When the `service_tier` parameter is set, the response body will include the `service_tier` value based on the processing mode actually used to serve the request. This response value may be different from the value set in the parameter.\n"
|
|
703
|
+
},
|
|
704
|
+
{
|
|
705
|
+
"name": "CompletionUsage",
|
|
706
|
+
"kind": "struct",
|
|
707
|
+
"fields": [
|
|
708
|
+
{
|
|
709
|
+
"name": "completion_tokens",
|
|
710
|
+
"type": {
|
|
711
|
+
"kind": "scalar",
|
|
712
|
+
"scalar": "integer"
|
|
713
|
+
},
|
|
714
|
+
"required": true,
|
|
715
|
+
"default": 0,
|
|
716
|
+
"description": "Number of tokens in the generated completion."
|
|
717
|
+
},
|
|
718
|
+
{
|
|
719
|
+
"name": "prompt_tokens",
|
|
720
|
+
"type": {
|
|
721
|
+
"kind": "scalar",
|
|
722
|
+
"scalar": "integer"
|
|
723
|
+
},
|
|
724
|
+
"required": true,
|
|
725
|
+
"default": 0,
|
|
726
|
+
"description": "Number of tokens in the prompt."
|
|
727
|
+
},
|
|
728
|
+
{
|
|
729
|
+
"name": "total_tokens",
|
|
730
|
+
"type": {
|
|
731
|
+
"kind": "scalar",
|
|
732
|
+
"scalar": "integer"
|
|
733
|
+
},
|
|
734
|
+
"required": true,
|
|
735
|
+
"default": 0,
|
|
736
|
+
"description": "Total number of tokens used in the request (prompt + completion)."
|
|
737
|
+
},
|
|
738
|
+
{
|
|
739
|
+
"name": "completion_tokens_details",
|
|
740
|
+
"type": {
|
|
741
|
+
"kind": "ref",
|
|
742
|
+
"name": "CompletionUsageCompletionTokensDetails"
|
|
743
|
+
},
|
|
744
|
+
"required": false,
|
|
745
|
+
"description": "Breakdown of tokens used in a completion."
|
|
746
|
+
},
|
|
747
|
+
{
|
|
748
|
+
"name": "prompt_tokens_details",
|
|
749
|
+
"type": {
|
|
750
|
+
"kind": "ref",
|
|
751
|
+
"name": "CompletionUsagePromptTokensDetails"
|
|
752
|
+
},
|
|
753
|
+
"required": false,
|
|
754
|
+
"description": "Breakdown of tokens used in the prompt."
|
|
755
|
+
}
|
|
756
|
+
],
|
|
757
|
+
"description": "Usage statistics for the completion request."
|
|
758
|
+
},
|
|
759
|
+
{
|
|
760
|
+
"name": "CompletionUsageCompletionTokensDetails",
|
|
761
|
+
"kind": "struct",
|
|
762
|
+
"fields": [
|
|
763
|
+
{
|
|
764
|
+
"name": "accepted_prediction_tokens",
|
|
765
|
+
"type": {
|
|
766
|
+
"kind": "scalar",
|
|
767
|
+
"scalar": "integer"
|
|
768
|
+
},
|
|
769
|
+
"required": false,
|
|
770
|
+
"default": 0,
|
|
771
|
+
"description": "When using Predicted Outputs, the number of tokens in the\nprediction that appeared in the completion.\n"
|
|
772
|
+
},
|
|
773
|
+
{
|
|
774
|
+
"name": "audio_tokens",
|
|
775
|
+
"type": {
|
|
776
|
+
"kind": "scalar",
|
|
777
|
+
"scalar": "integer"
|
|
778
|
+
},
|
|
779
|
+
"required": false,
|
|
780
|
+
"default": 0,
|
|
781
|
+
"description": "Audio input tokens generated by the model."
|
|
782
|
+
},
|
|
783
|
+
{
|
|
784
|
+
"name": "reasoning_tokens",
|
|
785
|
+
"type": {
|
|
786
|
+
"kind": "scalar",
|
|
787
|
+
"scalar": "integer"
|
|
788
|
+
},
|
|
789
|
+
"required": false,
|
|
790
|
+
"default": 0,
|
|
791
|
+
"description": "Tokens generated by the model for reasoning."
|
|
792
|
+
},
|
|
793
|
+
{
|
|
794
|
+
"name": "rejected_prediction_tokens",
|
|
795
|
+
"type": {
|
|
796
|
+
"kind": "scalar",
|
|
797
|
+
"scalar": "integer"
|
|
798
|
+
},
|
|
799
|
+
"required": false,
|
|
800
|
+
"default": 0,
|
|
801
|
+
"description": "When using Predicted Outputs, the number of tokens in the\nprediction that did not appear in the completion. However, like\nreasoning tokens, these tokens are still counted in the total\ncompletion tokens for purposes of billing, output, and context window\nlimits.\n"
|
|
802
|
+
}
|
|
803
|
+
],
|
|
804
|
+
"description": "Breakdown of tokens used in a completion."
|
|
805
|
+
},
|
|
806
|
+
{
|
|
807
|
+
"name": "CompletionUsagePromptTokensDetails",
|
|
808
|
+
"kind": "struct",
|
|
809
|
+
"fields": [
|
|
810
|
+
{
|
|
811
|
+
"name": "audio_tokens",
|
|
812
|
+
"type": {
|
|
813
|
+
"kind": "scalar",
|
|
814
|
+
"scalar": "integer"
|
|
815
|
+
},
|
|
816
|
+
"required": false,
|
|
817
|
+
"default": 0,
|
|
818
|
+
"description": "Audio input tokens present in the prompt."
|
|
819
|
+
},
|
|
820
|
+
{
|
|
821
|
+
"name": "cached_tokens",
|
|
822
|
+
"type": {
|
|
823
|
+
"kind": "scalar",
|
|
824
|
+
"scalar": "integer"
|
|
825
|
+
},
|
|
826
|
+
"required": false,
|
|
827
|
+
"default": 0,
|
|
828
|
+
"description": "Cached tokens present in the prompt."
|
|
829
|
+
}
|
|
830
|
+
],
|
|
831
|
+
"description": "Breakdown of tokens used in the prompt."
|
|
832
|
+
}
|
|
833
|
+
],
|
|
834
|
+
"resources": [
|
|
835
|
+
{
|
|
836
|
+
"name": "chat",
|
|
837
|
+
"resources": [
|
|
838
|
+
{
|
|
839
|
+
"name": "completions",
|
|
840
|
+
"methods": [
|
|
841
|
+
{
|
|
842
|
+
"action": "update",
|
|
843
|
+
"httpMethod": "post",
|
|
844
|
+
"path": "/chat/completions/{completion_id}",
|
|
845
|
+
"operationId": "updateChatCompletion",
|
|
846
|
+
"description": "Modify a stored chat completion. Only Chat Completions that have been\ncreated with the `store` parameter set to `true` can be modified. Currently,\nthe only supported modification is to update the `metadata` field.\n",
|
|
847
|
+
"pathParams": [
|
|
848
|
+
{
|
|
849
|
+
"name": "completion_id",
|
|
850
|
+
"type": {
|
|
851
|
+
"kind": "scalar",
|
|
852
|
+
"scalar": "string"
|
|
853
|
+
},
|
|
854
|
+
"required": true,
|
|
855
|
+
"description": "The ID of the chat completion to update."
|
|
856
|
+
}
|
|
857
|
+
],
|
|
858
|
+
"requestBody": {
|
|
859
|
+
"contentType": "application/json",
|
|
860
|
+
"type": {
|
|
861
|
+
"kind": "ref",
|
|
862
|
+
"name": "ChatCompletionsUpdateRequest"
|
|
863
|
+
},
|
|
864
|
+
"required": true,
|
|
865
|
+
"encoding": "json"
|
|
866
|
+
},
|
|
867
|
+
"responses": [
|
|
868
|
+
{
|
|
869
|
+
"status": "200",
|
|
870
|
+
"description": "A chat completion",
|
|
871
|
+
"contentType": "application/json",
|
|
872
|
+
"type": {
|
|
873
|
+
"kind": "ref",
|
|
874
|
+
"name": "CreateChatCompletionResponse"
|
|
875
|
+
}
|
|
876
|
+
}
|
|
877
|
+
],
|
|
878
|
+
"primaryResponse": {
|
|
879
|
+
"kind": "ref",
|
|
880
|
+
"name": "CreateChatCompletionResponse"
|
|
881
|
+
}
|
|
882
|
+
}
|
|
883
|
+
]
|
|
884
|
+
}
|
|
885
|
+
]
|
|
886
|
+
}
|
|
887
|
+
],
|
|
888
|
+
"sdk": {
|
|
889
|
+
"retry": {
|
|
890
|
+
"maxRetries": 2,
|
|
891
|
+
"retryableStatusCodes": [
|
|
892
|
+
408,
|
|
893
|
+
429,
|
|
894
|
+
500,
|
|
895
|
+
502,
|
|
896
|
+
503,
|
|
897
|
+
504
|
|
898
|
+
],
|
|
899
|
+
"retryConnectionErrors": true,
|
|
900
|
+
"honorRetryAfterHeader": true,
|
|
901
|
+
"backoff": {
|
|
902
|
+
"initialDelayMs": 500,
|
|
903
|
+
"maxDelayMs": 8000,
|
|
904
|
+
"multiplier": 2,
|
|
905
|
+
"jitter": 0.25
|
|
906
|
+
}
|
|
907
|
+
},
|
|
908
|
+
"timeout": {
|
|
909
|
+
"defaultTimeoutMs": 60000
|
|
910
|
+
},
|
|
911
|
+
"errors": {
|
|
912
|
+
"statusCodeMap": {
|
|
913
|
+
"400": "BadRequest",
|
|
914
|
+
"401": "Unauthorized",
|
|
915
|
+
"403": "PermissionDenied",
|
|
916
|
+
"404": "NotFound",
|
|
917
|
+
"409": "Conflict",
|
|
918
|
+
"422": "UnprocessableEntity",
|
|
919
|
+
"429": "RateLimited"
|
|
920
|
+
},
|
|
921
|
+
"clientErrorKind": "API",
|
|
922
|
+
"serverErrorKind": "Internal"
|
|
923
|
+
},
|
|
924
|
+
"userAgent": {
|
|
925
|
+
"sdkIdentifierTemplate": "{package}-{language}/{version}",
|
|
926
|
+
"includeRuntimeVersion": false,
|
|
927
|
+
"aiAgentEnvVars": {
|
|
928
|
+
"CLAUDE_CODE": "claude-code",
|
|
929
|
+
"CURSOR_AGENT": "cursor",
|
|
930
|
+
"CLINE_ACTIVE": "cline",
|
|
931
|
+
"WINDSURF_ACTIVE": "windsurf",
|
|
932
|
+
"COPILOT_AGENT": "copilot"
|
|
933
|
+
}
|
|
934
|
+
},
|
|
935
|
+
"telemetry": {
|
|
936
|
+
"requestIdHeader": "X-Request-ID",
|
|
937
|
+
"headerName": "X-Client-Telemetry",
|
|
938
|
+
"enabledByDefault": false
|
|
939
|
+
},
|
|
940
|
+
"logging": {
|
|
941
|
+
"events": [
|
|
942
|
+
"request.start",
|
|
943
|
+
"request.success",
|
|
944
|
+
"request.retry",
|
|
945
|
+
"request.rate_limited",
|
|
946
|
+
"request.error",
|
|
947
|
+
"request.connection_error"
|
|
948
|
+
]
|
|
949
|
+
},
|
|
950
|
+
"idempotency": {
|
|
951
|
+
"headerName": "Idempotency-Key",
|
|
952
|
+
"autoGenerateForPost": true
|
|
953
|
+
},
|
|
954
|
+
"pagination": {
|
|
955
|
+
"autoPageDelayMs": 0
|
|
956
|
+
},
|
|
957
|
+
"requestGuard": {
|
|
958
|
+
"optionKeys": [
|
|
959
|
+
"api_key",
|
|
960
|
+
"apiKey",
|
|
961
|
+
"idempotency_key",
|
|
962
|
+
"idempotencyKey",
|
|
963
|
+
"extra_headers",
|
|
964
|
+
"extraHeaders",
|
|
965
|
+
"max_retries",
|
|
966
|
+
"maxRetries",
|
|
967
|
+
"base_url",
|
|
968
|
+
"baseUrl",
|
|
969
|
+
"timeout"
|
|
970
|
+
]
|
|
971
|
+
}
|
|
972
|
+
}
|
|
973
|
+
}
|