openai/openai-python
Publicmirrored from https://github.com/openai/openai-pythonAvailable
api.md
680lines · modeblame
a228a539Stainless Bot2 years ago | 1 | # Shared Types |
| 2 | | |
| 3 | ```python | |
bf1ca86cRobert Craigie1 years ago | 4 | from openai.types import ( |
530f9b80stainless-app[bot]1 years ago | 5 | ChatModel, |
2954945eRobert Craigie1 years ago | 6 | ComparisonFilter, |
| 7 | CompoundFilter, | |
bf1ca86cRobert Craigie1 years ago | 8 | ErrorObject, |
| 9 | FunctionDefinition, | |
| 10 | FunctionParameters, | |
fdd52476stainless-app[bot]1 years ago | 11 | Metadata, |
2954945eRobert Craigie1 years ago | 12 | Reasoning, |
| 13 | ReasoningEffort, | |
bf1ca86cRobert Craigie1 years ago | 14 | ResponseFormatJSONObject, |
| 15 | ResponseFormatJSONSchema, | |
| 16 | ResponseFormatText, | |
| 17 | ) | |
a228a539Stainless Bot2 years ago | 18 | ``` |
| 19 | | |
08b8179aDavid Schnurr2 years ago | 20 | # Completions |
| 21 | | |
| 22 | Types: | |
| 23 | | |
| 24 | ```python | |
| 25 | from openai.types import Completion, CompletionChoice, CompletionUsage | |
| 26 | ``` | |
| 27 | | |
| 28 | Methods: | |
| 29 | | |
| 30 | - <code title="post /completions">client.completions.<a href="./src/openai/resources/completions.py">create</a>(\*\*<a href="src/openai/types/completion_create_params.py">params</a>) -> <a href="./src/openai/types/completion.py">Completion</a></code> | |
| 31 | | |
| 32 | # Chat | |
| 33 | | |
1dc93403Stainless Bot2 years ago | 34 | Types: |
| 35 | | |
| 36 | ```python | |
| 37 | from openai.types import ChatModel | |
| 38 | ``` | |
| 39 | | |
08b8179aDavid Schnurr2 years ago | 40 | ## Completions |
| 41 | | |
| 42 | Types: | |
| 43 | | |
| 44 | ```python | |
| 45 | from openai.types.chat import ( | |
| 46 | ChatCompletion, | |
baa9f07fRobert Craigie2 years ago | 47 | ChatCompletionAssistantMessageParam, |
550b855fstainless-app[bot]1 years ago | 48 | ChatCompletionAudio, |
| 49 | ChatCompletionAudioParam, | |
08b8179aDavid Schnurr2 years ago | 50 | ChatCompletionChunk, |
baa9f07fRobert Craigie2 years ago | 51 | ChatCompletionContentPart, |
| 52 | ChatCompletionContentPartImage, | |
550b855fstainless-app[bot]1 years ago | 53 | ChatCompletionContentPartInputAudio, |
bf1ca86cRobert Craigie1 years ago | 54 | ChatCompletionContentPartRefusal, |
baa9f07fRobert Craigie2 years ago | 55 | ChatCompletionContentPartText, |
300f58bbstainless-app[bot]1 years ago | 56 | ChatCompletionDeleted, |
575ff607stainless-app[bot]1 years ago | 57 | ChatCompletionDeveloperMessageParam, |
baa9f07fRobert Craigie2 years ago | 58 | ChatCompletionFunctionCallOption, |
| 59 | ChatCompletionFunctionMessageParam, | |
08b8179aDavid Schnurr2 years ago | 60 | ChatCompletionMessage, |
| 61 | ChatCompletionMessageParam, | |
baa9f07fRobert Craigie2 years ago | 62 | ChatCompletionMessageToolCall, |
550b855fstainless-app[bot]1 years ago | 63 | ChatCompletionModality, |
baa9f07fRobert Craigie2 years ago | 64 | ChatCompletionNamedToolChoice, |
dfdcf571Stainless Bot1 years ago | 65 | ChatCompletionPredictionContent, |
08b8179aDavid Schnurr2 years ago | 66 | ChatCompletionRole, |
300f58bbstainless-app[bot]1 years ago | 67 | ChatCompletionStoreMessage, |
6cc51587Stainless Bot2 years ago | 68 | ChatCompletionStreamOptions, |
baa9f07fRobert Craigie2 years ago | 69 | ChatCompletionSystemMessageParam, |
ccae821bStainless Bot2 years ago | 70 | ChatCompletionTokenLogprob, |
baa9f07fRobert Craigie2 years ago | 71 | ChatCompletionTool, |
| 72 | ChatCompletionToolChoiceOption, | |
| 73 | ChatCompletionToolMessageParam, | |
| 74 | ChatCompletionUserMessageParam, | |
2954945eRobert Craigie1 years ago | 75 | ChatCompletionReasoningEffort, |
08b8179aDavid Schnurr2 years ago | 76 | ) |
| 77 | ``` | |
| 78 | | |
| 79 | Methods: | |
| 80 | | |
300f58bbstainless-app[bot]1 years ago | 81 | - <code title="post /chat/completions">client.chat.completions.<a href="./src/openai/resources/chat/completions/completions.py">create</a>(\*\*<a href="src/openai/types/chat/completion_create_params.py">params</a>) -> <a href="./src/openai/types/chat/chat_completion.py">ChatCompletion</a></code> |
| 82 | - <code title="get /chat/completions/{completion_id}">client.chat.completions.<a href="./src/openai/resources/chat/completions/completions.py">retrieve</a>(completion_id) -> <a href="./src/openai/types/chat/chat_completion.py">ChatCompletion</a></code> | |
| 83 | - <code title="post /chat/completions/{completion_id}">client.chat.completions.<a href="./src/openai/resources/chat/completions/completions.py">update</a>(completion_id, \*\*<a href="src/openai/types/chat/completion_update_params.py">params</a>) -> <a href="./src/openai/types/chat/chat_completion.py">ChatCompletion</a></code> | |
| 84 | - <code title="get /chat/completions">client.chat.completions.<a href="./src/openai/resources/chat/completions/completions.py">list</a>(\*\*<a href="src/openai/types/chat/completion_list_params.py">params</a>) -> <a href="./src/openai/types/chat/chat_completion.py">SyncCursorPage[ChatCompletion]</a></code> | |
| 85 | - <code title="delete /chat/completions/{completion_id}">client.chat.completions.<a href="./src/openai/resources/chat/completions/completions.py">delete</a>(completion_id) -> <a href="./src/openai/types/chat/chat_completion_deleted.py">ChatCompletionDeleted</a></code> | |
| 86 | | |
| 87 | ### Messages | |
| 88 | | |
| 89 | Methods: | |
| 90 | | |
| 91 | - <code title="get /chat/completions/{completion_id}/messages">client.chat.completions.messages.<a href="./src/openai/resources/chat/completions/messages.py">list</a>(completion_id, \*\*<a href="src/openai/types/chat/completions/message_list_params.py">params</a>) -> <a href="./src/openai/types/chat/chat_completion_store_message.py">SyncCursorPage[ChatCompletionStoreMessage]</a></code> | |
08b8179aDavid Schnurr2 years ago | 92 | |
| 93 | # Embeddings | |
| 94 | | |
| 95 | Types: | |
| 96 | | |
| 97 | ```python | |
eab2e5a3Stainless Bot1 years ago | 98 | from openai.types import CreateEmbeddingResponse, Embedding, EmbeddingModel |
08b8179aDavid Schnurr2 years ago | 99 | ``` |
| 100 | | |
| 101 | Methods: | |
| 102 | | |
| 103 | - <code title="post /embeddings">client.embeddings.<a href="./src/openai/resources/embeddings.py">create</a>(\*\*<a href="src/openai/types/embedding_create_params.py">params</a>) -> <a href="./src/openai/types/create_embedding_response.py">CreateEmbeddingResponse</a></code> | |
| 104 | | |
| 105 | # Files | |
| 106 | | |
| 107 | Types: | |
| 108 | | |
| 109 | ```python | |
05f0132fstainless-app[bot]1 years ago | 110 | from openai.types import FileContent, FileDeleted, FileObject, FilePurpose |
08b8179aDavid Schnurr2 years ago | 111 | ``` |
| 112 | | |
| 113 | Methods: | |
| 114 | | |
| 115 | - <code title="post /files">client.files.<a href="./src/openai/resources/files.py">create</a>(\*\*<a href="src/openai/types/file_create_params.py">params</a>) -> <a href="./src/openai/types/file_object.py">FileObject</a></code> | |
| 116 | - <code title="get /files/{file_id}">client.files.<a href="./src/openai/resources/files.py">retrieve</a>(file_id) -> <a href="./src/openai/types/file_object.py">FileObject</a></code> | |
dfdcf571Stainless Bot1 years ago | 117 | - <code title="get /files">client.files.<a href="./src/openai/resources/files.py">list</a>(\*\*<a href="src/openai/types/file_list_params.py">params</a>) -> <a href="./src/openai/types/file_object.py">SyncCursorPage[FileObject]</a></code> |
08b8179aDavid Schnurr2 years ago | 118 | - <code title="delete /files/{file_id}">client.files.<a href="./src/openai/resources/files.py">delete</a>(file_id) -> <a href="./src/openai/types/file_deleted.py">FileDeleted</a></code> |
aa681899Stainless Bot2 years ago | 119 | - <code title="get /files/{file_id}/content">client.files.<a href="./src/openai/resources/files.py">content</a>(file_id) -> HttpxBinaryResponseContent</code> |
d779e40bstainless-app[bot]1 years ago | 120 | - <code title="get /files/{file_id}/content">client.files.<a href="./src/openai/resources/files.py">retrieve_content</a>(file_id) -> <a href="./src/openai/types/file_content.py">str</a></code> |
08b8179aDavid Schnurr2 years ago | 121 | - <code>client.files.<a href="./src/openai/resources/files.py">wait_for_processing</a>(\*args) -> FileObject</code> |
| 122 | | |
| 123 | # Images | |
| 124 | | |
| 125 | Types: | |
| 126 | | |
| 127 | ```python | |
ece795f0Stainless Bot1 years ago | 128 | from openai.types import Image, ImageModel, ImagesResponse |
08b8179aDavid Schnurr2 years ago | 129 | ``` |
| 130 | | |
| 131 | Methods: | |
| 132 | | |
| 133 | - <code title="post /images/variations">client.images.<a href="./src/openai/resources/images.py">create_variation</a>(\*\*<a href="src/openai/types/image_create_variation_params.py">params</a>) -> <a href="./src/openai/types/images_response.py">ImagesResponse</a></code> | |
| 134 | - <code title="post /images/edits">client.images.<a href="./src/openai/resources/images.py">edit</a>(\*\*<a href="src/openai/types/image_edit_params.py">params</a>) -> <a href="./src/openai/types/images_response.py">ImagesResponse</a></code> | |
| 135 | - <code title="post /images/generations">client.images.<a href="./src/openai/resources/images.py">generate</a>(\*\*<a href="src/openai/types/image_generate_params.py">params</a>) -> <a href="./src/openai/types/images_response.py">ImagesResponse</a></code> | |
| 136 | | |
| 137 | # Audio | |
| 138 | | |
ece795f0Stainless Bot1 years ago | 139 | Types: |
| 140 | | |
| 141 | ```python | |
102fce4fStainless Bot1 years ago | 142 | from openai.types import AudioModel, AudioResponseFormat |
ece795f0Stainless Bot1 years ago | 143 | ``` |
| 144 | | |
08b8179aDavid Schnurr2 years ago | 145 | ## Transcriptions |
| 146 | | |
| 147 | Types: | |
| 148 | | |
| 149 | ```python | |
adb6da3aRobert Craigie1 years ago | 150 | from openai.types.audio import ( |
| 151 | Transcription, | |
| 152 | TranscriptionSegment, | |
| 153 | TranscriptionVerbose, | |
| 154 | TranscriptionWord, | |
| 155 | TranscriptionCreateResponse, | |
| 156 | ) | |
08b8179aDavid Schnurr2 years ago | 157 | ``` |
| 158 | | |
| 159 | Methods: | |
| 160 | | |
adb6da3aRobert Craigie1 years ago | 161 | - <code title="post /audio/transcriptions">client.audio.transcriptions.<a href="./src/openai/resources/audio/transcriptions.py">create</a>(\*\*<a href="src/openai/types/audio/transcription_create_params.py">params</a>) -> <a href="./src/openai/types/audio/transcription_create_response.py">TranscriptionCreateResponse</a></code> |
08b8179aDavid Schnurr2 years ago | 162 | |
| 163 | ## Translations | |
| 164 | | |
| 165 | Types: | |
| 166 | | |
| 167 | ```python | |
adb6da3aRobert Craigie1 years ago | 168 | from openai.types.audio import Translation, TranslationVerbose, TranslationCreateResponse |
08b8179aDavid Schnurr2 years ago | 169 | ``` |
| 170 | | |
| 171 | Methods: | |
| 172 | | |
adb6da3aRobert Craigie1 years ago | 173 | - <code title="post /audio/translations">client.audio.translations.<a href="./src/openai/resources/audio/translations.py">create</a>(\*\*<a href="src/openai/types/audio/translation_create_params.py">params</a>) -> <a href="./src/openai/types/audio/translation_create_response.py">TranslationCreateResponse</a></code> |
08b8179aDavid Schnurr2 years ago | 174 | |
baa9f07fRobert Craigie2 years ago | 175 | ## Speech |
| 176 | | |
ece795f0Stainless Bot1 years ago | 177 | Types: |
| 178 | | |
| 179 | ```python | |
| 180 | from openai.types.audio import SpeechModel | |
| 181 | ``` | |
| 182 | | |
baa9f07fRobert Craigie2 years ago | 183 | Methods: |
| 184 | | |
| 185 | - <code title="post /audio/speech">client.audio.speech.<a href="./src/openai/resources/audio/speech.py">create</a>(\*\*<a href="src/openai/types/audio/speech_create_params.py">params</a>) -> HttpxBinaryResponseContent</code> | |
| 186 | | |
08b8179aDavid Schnurr2 years ago | 187 | # Moderations |
| 188 | | |
| 189 | Types: | |
| 190 | | |
| 191 | ```python | |
56e64d9astainless-app[bot]1 years ago | 192 | from openai.types import ( |
| 193 | Moderation, | |
| 194 | ModerationImageURLInput, | |
| 195 | ModerationModel, | |
| 196 | ModerationMultiModalInput, | |
| 197 | ModerationTextInput, | |
| 198 | ModerationCreateResponse, | |
| 199 | ) | |
08b8179aDavid Schnurr2 years ago | 200 | ``` |
| 201 | | |
| 202 | Methods: | |
| 203 | | |
| 204 | - <code title="post /moderations">client.moderations.<a href="./src/openai/resources/moderations.py">create</a>(\*\*<a href="src/openai/types/moderation_create_params.py">params</a>) -> <a href="./src/openai/types/moderation_create_response.py">ModerationCreateResponse</a></code> | |
| 205 | | |
| 206 | # Models | |
| 207 | | |
| 208 | Types: | |
| 209 | | |
| 210 | ```python | |
| 211 | from openai.types import Model, ModelDeleted | |
| 212 | ``` | |
| 213 | | |
| 214 | Methods: | |
| 215 | | |
| 216 | - <code title="get /models/{model}">client.models.<a href="./src/openai/resources/models.py">retrieve</a>(model) -> <a href="./src/openai/types/model.py">Model</a></code> | |
| 217 | - <code title="get /models">client.models.<a href="./src/openai/resources/models.py">list</a>() -> <a href="./src/openai/types/model.py">SyncPage[Model]</a></code> | |
| 218 | - <code title="delete /models/{model}">client.models.<a href="./src/openai/resources/models.py">delete</a>(model) -> <a href="./src/openai/types/model_deleted.py">ModelDeleted</a></code> | |
| 219 | | |
| 220 | # FineTuning | |
| 221 | | |
| 222 | ## Jobs | |
| 223 | | |
| 224 | Types: | |
| 225 | | |
| 226 | ```python | |
f5247e30Stainless Bot2 years ago | 227 | from openai.types.fine_tuning import ( |
| 228 | FineTuningJob, | |
| 229 | FineTuningJobEvent, | |
| 230 | FineTuningJobWandbIntegration, | |
| 231 | FineTuningJobWandbIntegrationObject, | |
530f9b80stainless-app[bot]1 years ago | 232 | FineTuningJobIntegration, |
f5247e30Stainless Bot2 years ago | 233 | ) |
| 234 | ``` | |
| 235 | | |
| 236 | Methods: | |
| 237 | | |
| 238 | - <code title="post /fine_tuning/jobs">client.fine_tuning.jobs.<a href="./src/openai/resources/fine_tuning/jobs/jobs.py">create</a>(\*\*<a href="src/openai/types/fine_tuning/job_create_params.py">params</a>) -> <a href="./src/openai/types/fine_tuning/fine_tuning_job.py">FineTuningJob</a></code> | |
| 239 | - <code title="get /fine_tuning/jobs/{fine_tuning_job_id}">client.fine_tuning.jobs.<a href="./src/openai/resources/fine_tuning/jobs/jobs.py">retrieve</a>(fine_tuning_job_id) -> <a href="./src/openai/types/fine_tuning/fine_tuning_job.py">FineTuningJob</a></code> | |
| 240 | - <code title="get /fine_tuning/jobs">client.fine_tuning.jobs.<a href="./src/openai/resources/fine_tuning/jobs/jobs.py">list</a>(\*\*<a href="src/openai/types/fine_tuning/job_list_params.py">params</a>) -> <a href="./src/openai/types/fine_tuning/fine_tuning_job.py">SyncCursorPage[FineTuningJob]</a></code> | |
| 241 | - <code title="post /fine_tuning/jobs/{fine_tuning_job_id}/cancel">client.fine_tuning.jobs.<a href="./src/openai/resources/fine_tuning/jobs/jobs.py">cancel</a>(fine_tuning_job_id) -> <a href="./src/openai/types/fine_tuning/fine_tuning_job.py">FineTuningJob</a></code> | |
| 242 | - <code title="get /fine_tuning/jobs/{fine_tuning_job_id}/events">client.fine_tuning.jobs.<a href="./src/openai/resources/fine_tuning/jobs/jobs.py">list_events</a>(fine_tuning_job_id, \*\*<a href="src/openai/types/fine_tuning/job_list_events_params.py">params</a>) -> <a href="./src/openai/types/fine_tuning/fine_tuning_job_event.py">SyncCursorPage[FineTuningJobEvent]</a></code> | |
| 243 | | |
| 244 | ### Checkpoints | |
| 245 | | |
| 246 | Types: | |
| 247 | | |
| 248 | ```python | |
| 249 | from openai.types.fine_tuning.jobs import FineTuningJobCheckpoint | |
08b8179aDavid Schnurr2 years ago | 250 | ``` |
| 251 | | |
| 252 | Methods: | |
| 253 | | |
f5247e30Stainless Bot2 years ago | 254 | - <code title="get /fine_tuning/jobs/{fine_tuning_job_id}/checkpoints">client.fine_tuning.jobs.checkpoints.<a href="./src/openai/resources/fine_tuning/jobs/checkpoints.py">list</a>(fine_tuning_job_id, \*\*<a href="src/openai/types/fine_tuning/jobs/checkpoint_list_params.py">params</a>) -> <a href="./src/openai/types/fine_tuning/jobs/fine_tuning_job_checkpoint.py">SyncCursorPage[FineTuningJobCheckpoint]</a></code> |
08b8179aDavid Schnurr2 years ago | 255 | |
2954945eRobert Craigie1 years ago | 256 | # VectorStores |
| 257 | | |
| 258 | Types: | |
| 259 | | |
| 260 | ```python | |
| 261 | from openai.types import ( | |
| 262 | AutoFileChunkingStrategyParam, | |
| 263 | FileChunkingStrategy, | |
| 264 | FileChunkingStrategyParam, | |
| 265 | OtherFileChunkingStrategyObject, | |
| 266 | StaticFileChunkingStrategy, | |
| 267 | StaticFileChunkingStrategyObject, | |
| 268 | StaticFileChunkingStrategyObjectParam, | |
| 269 | VectorStore, | |
| 270 | VectorStoreDeleted, | |
| 271 | VectorStoreSearchResponse, | |
| 272 | ) | |
| 273 | ``` | |
| 274 | | |
| 275 | Methods: | |
| 276 | | |
| 277 | - <code title="post /vector_stores">client.vector_stores.<a href="./src/openai/resources/vector_stores/vector_stores.py">create</a>(\*\*<a href="src/openai/types/vector_store_create_params.py">params</a>) -> <a href="./src/openai/types/vector_store.py">VectorStore</a></code> | |
| 278 | - <code title="get /vector_stores/{vector_store_id}">client.vector_stores.<a href="./src/openai/resources/vector_stores/vector_stores.py">retrieve</a>(vector_store_id) -> <a href="./src/openai/types/vector_store.py">VectorStore</a></code> | |
| 279 | - <code title="post /vector_stores/{vector_store_id}">client.vector_stores.<a href="./src/openai/resources/vector_stores/vector_stores.py">update</a>(vector_store_id, \*\*<a href="src/openai/types/vector_store_update_params.py">params</a>) -> <a href="./src/openai/types/vector_store.py">VectorStore</a></code> | |
| 280 | - <code title="get /vector_stores">client.vector_stores.<a href="./src/openai/resources/vector_stores/vector_stores.py">list</a>(\*\*<a href="src/openai/types/vector_store_list_params.py">params</a>) -> <a href="./src/openai/types/vector_store.py">SyncCursorPage[VectorStore]</a></code> | |
| 281 | - <code title="delete /vector_stores/{vector_store_id}">client.vector_stores.<a href="./src/openai/resources/vector_stores/vector_stores.py">delete</a>(vector_store_id) -> <a href="./src/openai/types/vector_store_deleted.py">VectorStoreDeleted</a></code> | |
| 282 | - <code title="post /vector_stores/{vector_store_id}/search">client.vector_stores.<a href="./src/openai/resources/vector_stores/vector_stores.py">search</a>(vector_store_id, \*\*<a href="src/openai/types/vector_store_search_params.py">params</a>) -> <a href="./src/openai/types/vector_store_search_response.py">SyncPage[VectorStoreSearchResponse]</a></code> | |
| 283 | | |
| 284 | ## Files | |
| 285 | | |
| 286 | Types: | |
| 287 | | |
| 288 | ```python | |
| 289 | from openai.types.vector_stores import VectorStoreFile, VectorStoreFileDeleted, FileContentResponse | |
| 290 | ``` | |
| 291 | | |
| 292 | Methods: | |
| 293 | | |
| 294 | - <code title="post /vector_stores/{vector_store_id}/files">client.vector_stores.files.<a href="./src/openai/resources/vector_stores/files.py">create</a>(vector_store_id, \*\*<a href="src/openai/types/vector_stores/file_create_params.py">params</a>) -> <a href="./src/openai/types/vector_stores/vector_store_file.py">VectorStoreFile</a></code> | |
| 295 | - <code title="get /vector_stores/{vector_store_id}/files/{file_id}">client.vector_stores.files.<a href="./src/openai/resources/vector_stores/files.py">retrieve</a>(file_id, \*, vector_store_id) -> <a href="./src/openai/types/vector_stores/vector_store_file.py">VectorStoreFile</a></code> | |
| 296 | - <code title="post /vector_stores/{vector_store_id}/files/{file_id}">client.vector_stores.files.<a href="./src/openai/resources/vector_stores/files.py">update</a>(file_id, \*, vector_store_id, \*\*<a href="src/openai/types/vector_stores/file_update_params.py">params</a>) -> <a href="./src/openai/types/vector_stores/vector_store_file.py">VectorStoreFile</a></code> | |
| 297 | - <code title="get /vector_stores/{vector_store_id}/files">client.vector_stores.files.<a href="./src/openai/resources/vector_stores/files.py">list</a>(vector_store_id, \*\*<a href="src/openai/types/vector_stores/file_list_params.py">params</a>) -> <a href="./src/openai/types/vector_stores/vector_store_file.py">SyncCursorPage[VectorStoreFile]</a></code> | |
| 298 | - <code title="delete /vector_stores/{vector_store_id}/files/{file_id}">client.vector_stores.files.<a href="./src/openai/resources/vector_stores/files.py">delete</a>(file_id, \*, vector_store_id) -> <a href="./src/openai/types/vector_stores/vector_store_file_deleted.py">VectorStoreFileDeleted</a></code> | |
| 299 | - <code title="get /vector_stores/{vector_store_id}/files/{file_id}/content">client.vector_stores.files.<a href="./src/openai/resources/vector_stores/files.py">content</a>(file_id, \*, vector_store_id) -> <a href="./src/openai/types/vector_stores/file_content_response.py">SyncPage[FileContentResponse]</a></code> | |
| 300 | - <code>client.vector_stores.files.<a href="./src/openai/resources/vector_stores/files.py">create_and_poll</a>(\*args) -> VectorStoreFile</code> | |
| 301 | - <code>client.vector_stores.files.<a href="./src/openai/resources/vector_stores/files.py">poll</a>(\*args) -> VectorStoreFile</code> | |
| 302 | - <code>client.vector_stores.files.<a href="./src/openai/resources/vector_stores/files.py">upload</a>(\*args) -> VectorStoreFile</code> | |
| 303 | - <code>client.vector_stores.files.<a href="./src/openai/resources/vector_stores/files.py">upload_and_poll</a>(\*args) -> VectorStoreFile</code> | |
| 304 | | |
| 305 | ## FileBatches | |
| 306 | | |
| 307 | Types: | |
| 308 | | |
| 309 | ```python | |
| 310 | from openai.types.vector_stores import VectorStoreFileBatch | |
| 311 | ``` | |
| 312 | | |
| 313 | Methods: | |
| 314 | | |
| 315 | - <code title="post /vector_stores/{vector_store_id}/file_batches">client.vector_stores.file_batches.<a href="./src/openai/resources/vector_stores/file_batches.py">create</a>(vector_store_id, \*\*<a href="src/openai/types/vector_stores/file_batch_create_params.py">params</a>) -> <a href="./src/openai/types/vector_stores/vector_store_file_batch.py">VectorStoreFileBatch</a></code> | |
| 316 | - <code title="get /vector_stores/{vector_store_id}/file_batches/{batch_id}">client.vector_stores.file_batches.<a href="./src/openai/resources/vector_stores/file_batches.py">retrieve</a>(batch_id, \*, vector_store_id) -> <a href="./src/openai/types/vector_stores/vector_store_file_batch.py">VectorStoreFileBatch</a></code> | |
| 317 | - <code title="post /vector_stores/{vector_store_id}/file_batches/{batch_id}/cancel">client.vector_stores.file_batches.<a href="./src/openai/resources/vector_stores/file_batches.py">cancel</a>(batch_id, \*, vector_store_id) -> <a href="./src/openai/types/vector_stores/vector_store_file_batch.py">VectorStoreFileBatch</a></code> | |
| 318 | - <code title="get /vector_stores/{vector_store_id}/file_batches/{batch_id}/files">client.vector_stores.file_batches.<a href="./src/openai/resources/vector_stores/file_batches.py">list_files</a>(batch_id, \*, vector_store_id, \*\*<a href="src/openai/types/vector_stores/file_batch_list_files_params.py">params</a>) -> <a href="./src/openai/types/vector_stores/vector_store_file.py">SyncCursorPage[VectorStoreFile]</a></code> | |
| 319 | - <code>client.vector_stores.file_batches.<a href="./src/openai/resources/vector_stores/file_batches.py">create_and_poll</a>(\*args) -> VectorStoreFileBatch</code> | |
| 320 | - <code>client.vector_stores.file_batches.<a href="./src/openai/resources/vector_stores/file_batches.py">poll</a>(\*args) -> VectorStoreFileBatch</code> | |
| 321 | - <code>client.vector_stores.file_batches.<a href="./src/openai/resources/vector_stores/file_batches.py">upload_and_poll</a>(\*args) -> VectorStoreFileBatch</code> | |
| 322 | | |
baa9f07fRobert Craigie2 years ago | 323 | # Beta |
| 324 | | |
575ff607stainless-app[bot]1 years ago | 325 | ## Realtime |
| 326 | | |
5fdba486stainless-app[bot]1 years ago | 327 | Types: |
| 328 | | |
| 329 | ```python | |
| 330 | from openai.types.beta.realtime import ( | |
| 331 | ConversationCreatedEvent, | |
| 332 | ConversationItem, | |
| 333 | ConversationItemContent, | |
| 334 | ConversationItemCreateEvent, | |
| 335 | ConversationItemCreatedEvent, | |
| 336 | ConversationItemDeleteEvent, | |
| 337 | ConversationItemDeletedEvent, | |
| 338 | ConversationItemInputAudioTranscriptionCompletedEvent, | |
| 339 | ConversationItemInputAudioTranscriptionFailedEvent, | |
| 340 | ConversationItemTruncateEvent, | |
| 341 | ConversationItemTruncatedEvent, | |
f344db25stainless-app[bot]1 years ago | 342 | ConversationItemWithReference, |
5fdba486stainless-app[bot]1 years ago | 343 | ErrorEvent, |
| 344 | InputAudioBufferAppendEvent, | |
| 345 | InputAudioBufferClearEvent, | |
| 346 | InputAudioBufferClearedEvent, | |
| 347 | InputAudioBufferCommitEvent, | |
| 348 | InputAudioBufferCommittedEvent, | |
| 349 | InputAudioBufferSpeechStartedEvent, | |
| 350 | InputAudioBufferSpeechStoppedEvent, | |
| 351 | RateLimitsUpdatedEvent, | |
| 352 | RealtimeClientEvent, | |
| 353 | RealtimeResponse, | |
| 354 | RealtimeResponseStatus, | |
| 355 | RealtimeResponseUsage, | |
| 356 | RealtimeServerEvent, | |
| 357 | ResponseAudioDeltaEvent, | |
| 358 | ResponseAudioDoneEvent, | |
| 359 | ResponseAudioTranscriptDeltaEvent, | |
| 360 | ResponseAudioTranscriptDoneEvent, | |
| 361 | ResponseCancelEvent, | |
| 362 | ResponseContentPartAddedEvent, | |
| 363 | ResponseContentPartDoneEvent, | |
| 364 | ResponseCreateEvent, | |
| 365 | ResponseCreatedEvent, | |
| 366 | ResponseDoneEvent, | |
| 367 | ResponseFunctionCallArgumentsDeltaEvent, | |
| 368 | ResponseFunctionCallArgumentsDoneEvent, | |
| 369 | ResponseOutputItemAddedEvent, | |
| 370 | ResponseOutputItemDoneEvent, | |
| 371 | ResponseTextDeltaEvent, | |
| 372 | ResponseTextDoneEvent, | |
| 373 | SessionCreatedEvent, | |
| 374 | SessionUpdateEvent, | |
| 375 | SessionUpdatedEvent, | |
| 376 | ) | |
| 377 | ``` | |
| 378 | | |
575ff607stainless-app[bot]1 years ago | 379 | ### Sessions |
| 380 | | |
| 381 | Types: | |
| 382 | | |
| 383 | ```python | |
| 384 | from openai.types.beta.realtime import Session, SessionCreateResponse | |
| 385 | ``` | |
| 386 | | |
| 387 | Methods: | |
| 388 | | |
| 389 | - <code title="post /realtime/sessions">client.beta.realtime.sessions.<a href="./src/openai/resources/beta/realtime/sessions.py">create</a>(\*\*<a href="src/openai/types/beta/realtime/session_create_params.py">params</a>) -> <a href="./src/openai/types/beta/realtime/session_create_response.py">SessionCreateResponse</a></code> | |
| 390 | | |
baa9f07fRobert Craigie2 years ago | 391 | ## Assistants |
| 392 | | |
| 393 | Types: | |
| 394 | | |
| 395 | ```python | |
5429f696Stainless Bot2 years ago | 396 | from openai.types.beta import ( |
| 397 | Assistant, | |
| 398 | AssistantDeleted, | |
| 399 | AssistantStreamEvent, | |
| 400 | AssistantTool, | |
| 401 | CodeInterpreterTool, | |
5b20698dStainless Bot2 years ago | 402 | FileSearchTool, |
5429f696Stainless Bot2 years ago | 403 | FunctionTool, |
| 404 | MessageStreamEvent, | |
| 405 | RunStepStreamEvent, | |
| 406 | RunStreamEvent, | |
| 407 | ThreadStreamEvent, | |
| 408 | ) | |
baa9f07fRobert Craigie2 years ago | 409 | ``` |
| 410 | | |
| 411 | Methods: | |
| 412 | | |
5b20698dStainless Bot2 years ago | 413 | - <code title="post /assistants">client.beta.assistants.<a href="./src/openai/resources/beta/assistants.py">create</a>(\*\*<a href="src/openai/types/beta/assistant_create_params.py">params</a>) -> <a href="./src/openai/types/beta/assistant.py">Assistant</a></code> |
| 414 | - <code title="get /assistants/{assistant_id}">client.beta.assistants.<a href="./src/openai/resources/beta/assistants.py">retrieve</a>(assistant_id) -> <a href="./src/openai/types/beta/assistant.py">Assistant</a></code> | |
| 415 | - <code title="post /assistants/{assistant_id}">client.beta.assistants.<a href="./src/openai/resources/beta/assistants.py">update</a>(assistant_id, \*\*<a href="src/openai/types/beta/assistant_update_params.py">params</a>) -> <a href="./src/openai/types/beta/assistant.py">Assistant</a></code> | |
| 416 | - <code title="get /assistants">client.beta.assistants.<a href="./src/openai/resources/beta/assistants.py">list</a>(\*\*<a href="src/openai/types/beta/assistant_list_params.py">params</a>) -> <a href="./src/openai/types/beta/assistant.py">SyncCursorPage[Assistant]</a></code> | |
| 417 | - <code title="delete /assistants/{assistant_id}">client.beta.assistants.<a href="./src/openai/resources/beta/assistants.py">delete</a>(assistant_id) -> <a href="./src/openai/types/beta/assistant_deleted.py">AssistantDeleted</a></code> | |
baa9f07fRobert Craigie2 years ago | 418 | |
| 419 | ## Threads | |
| 420 | | |
| 421 | Types: | |
| 422 | | |
| 423 | ```python | |
f5247e30Stainless Bot2 years ago | 424 | from openai.types.beta import ( |
| 425 | AssistantResponseFormatOption, | |
| 426 | AssistantToolChoice, | |
| 427 | AssistantToolChoiceFunction, | |
| 428 | AssistantToolChoiceOption, | |
| 429 | Thread, | |
| 430 | ThreadDeleted, | |
| 431 | ) | |
baa9f07fRobert Craigie2 years ago | 432 | ``` |
| 433 | | |
| 434 | Methods: | |
| 435 | | |
| 436 | - <code title="post /threads">client.beta.threads.<a href="./src/openai/resources/beta/threads/threads.py">create</a>(\*\*<a href="src/openai/types/beta/thread_create_params.py">params</a>) -> <a href="./src/openai/types/beta/thread.py">Thread</a></code> | |
| 437 | - <code title="get /threads/{thread_id}">client.beta.threads.<a href="./src/openai/resources/beta/threads/threads.py">retrieve</a>(thread_id) -> <a href="./src/openai/types/beta/thread.py">Thread</a></code> | |
| 438 | - <code title="post /threads/{thread_id}">client.beta.threads.<a href="./src/openai/resources/beta/threads/threads.py">update</a>(thread_id, \*\*<a href="src/openai/types/beta/thread_update_params.py">params</a>) -> <a href="./src/openai/types/beta/thread.py">Thread</a></code> | |
| 439 | - <code title="delete /threads/{thread_id}">client.beta.threads.<a href="./src/openai/resources/beta/threads/threads.py">delete</a>(thread_id) -> <a href="./src/openai/types/beta/thread_deleted.py">ThreadDeleted</a></code> | |
| 440 | - <code title="post /threads/runs">client.beta.threads.<a href="./src/openai/resources/beta/threads/threads.py">create_and_run</a>(\*\*<a href="src/openai/types/beta/thread_create_and_run_params.py">params</a>) -> <a href="./src/openai/types/beta/threads/run.py">Run</a></code> | |
595f3b36Stainless Bot2 years ago | 441 | - <code>client.beta.threads.<a href="./src/openai/resources/beta/threads/threads.py">create_and_run_poll</a>(\*args) -> Run</code> |
5429f696Stainless Bot2 years ago | 442 | - <code>client.beta.threads.<a href="./src/openai/resources/beta/threads/threads.py">create_and_run_stream</a>(\*args) -> AssistantStreamManager[AssistantEventHandler] | AssistantStreamManager[AssistantEventHandlerT]</code> |
baa9f07fRobert Craigie2 years ago | 443 | |
| 444 | ### Runs | |
| 445 | | |
| 446 | Types: | |
| 447 | | |
| 448 | ```python | |
f0b18239Stainless Bot2 years ago | 449 | from openai.types.beta.threads import RequiredActionFunctionToolCall, Run, RunStatus |
baa9f07fRobert Craigie2 years ago | 450 | ``` |
| 451 | | |
| 452 | Methods: | |
| 453 | | |
| 454 | - <code title="post /threads/{thread_id}/runs">client.beta.threads.runs.<a href="./src/openai/resources/beta/threads/runs/runs.py">create</a>(thread_id, \*\*<a href="src/openai/types/beta/threads/run_create_params.py">params</a>) -> <a href="./src/openai/types/beta/threads/run.py">Run</a></code> | |
| 455 | - <code title="get /threads/{thread_id}/runs/{run_id}">client.beta.threads.runs.<a href="./src/openai/resources/beta/threads/runs/runs.py">retrieve</a>(run_id, \*, thread_id) -> <a href="./src/openai/types/beta/threads/run.py">Run</a></code> | |
| 456 | - <code title="post /threads/{thread_id}/runs/{run_id}">client.beta.threads.runs.<a href="./src/openai/resources/beta/threads/runs/runs.py">update</a>(run_id, \*, thread_id, \*\*<a href="src/openai/types/beta/threads/run_update_params.py">params</a>) -> <a href="./src/openai/types/beta/threads/run.py">Run</a></code> | |
| 457 | - <code title="get /threads/{thread_id}/runs">client.beta.threads.runs.<a href="./src/openai/resources/beta/threads/runs/runs.py">list</a>(thread_id, \*\*<a href="src/openai/types/beta/threads/run_list_params.py">params</a>) -> <a href="./src/openai/types/beta/threads/run.py">SyncCursorPage[Run]</a></code> | |
| 458 | - <code title="post /threads/{thread_id}/runs/{run_id}/cancel">client.beta.threads.runs.<a href="./src/openai/resources/beta/threads/runs/runs.py">cancel</a>(run_id, \*, thread_id) -> <a href="./src/openai/types/beta/threads/run.py">Run</a></code> | |
| 459 | - <code title="post /threads/{thread_id}/runs/{run_id}/submit_tool_outputs">client.beta.threads.runs.<a href="./src/openai/resources/beta/threads/runs/runs.py">submit_tool_outputs</a>(run_id, \*, thread_id, \*\*<a href="src/openai/types/beta/threads/run_submit_tool_outputs_params.py">params</a>) -> <a href="./src/openai/types/beta/threads/run.py">Run</a></code> | |
595f3b36Stainless Bot2 years ago | 460 | - <code>client.beta.threads.runs.<a href="./src/openai/resources/beta/threads/runs/runs.py">create_and_poll</a>(\*args) -> Run</code> |
5429f696Stainless Bot2 years ago | 461 | - <code>client.beta.threads.runs.<a href="./src/openai/resources/beta/threads/runs/runs.py">create_and_stream</a>(\*args) -> AssistantStreamManager[AssistantEventHandler] | AssistantStreamManager[AssistantEventHandlerT]</code> |
595f3b36Stainless Bot2 years ago | 462 | - <code>client.beta.threads.runs.<a href="./src/openai/resources/beta/threads/runs/runs.py">poll</a>(\*args) -> Run</code> |
| 463 | - <code>client.beta.threads.runs.<a href="./src/openai/resources/beta/threads/runs/runs.py">stream</a>(\*args) -> AssistantStreamManager[AssistantEventHandler] | AssistantStreamManager[AssistantEventHandlerT]</code> | |
| 464 | - <code>client.beta.threads.runs.<a href="./src/openai/resources/beta/threads/runs/runs.py">submit_tool_outputs_and_poll</a>(\*args) -> Run</code> | |
5429f696Stainless Bot2 years ago | 465 | - <code>client.beta.threads.runs.<a href="./src/openai/resources/beta/threads/runs/runs.py">submit_tool_outputs_stream</a>(\*args) -> AssistantStreamManager[AssistantEventHandler] | AssistantStreamManager[AssistantEventHandlerT]</code> |
baa9f07fRobert Craigie2 years ago | 466 | |
| 467 | #### Steps | |
| 468 | | |
| 469 | Types: | |
| 470 | | |
| 471 | ```python | |
| 472 | from openai.types.beta.threads.runs import ( | |
5429f696Stainless Bot2 years ago | 473 | CodeInterpreterLogs, |
| 474 | CodeInterpreterOutputImage, | |
| 475 | CodeInterpreterToolCall, | |
| 476 | CodeInterpreterToolCallDelta, | |
5b20698dStainless Bot2 years ago | 477 | FileSearchToolCall, |
| 478 | FileSearchToolCallDelta, | |
baa9f07fRobert Craigie2 years ago | 479 | FunctionToolCall, |
5429f696Stainless Bot2 years ago | 480 | FunctionToolCallDelta, |
baa9f07fRobert Craigie2 years ago | 481 | MessageCreationStepDetails, |
| 482 | RunStep, | |
5429f696Stainless Bot2 years ago | 483 | RunStepDelta, |
| 484 | RunStepDeltaEvent, | |
| 485 | RunStepDeltaMessageDelta, | |
5d3111a8Stainless Bot1 years ago | 486 | RunStepInclude, |
5429f696Stainless Bot2 years ago | 487 | ToolCall, |
| 488 | ToolCallDelta, | |
| 489 | ToolCallDeltaObject, | |
baa9f07fRobert Craigie2 years ago | 490 | ToolCallsStepDetails, |
| 491 | ) | |
| 492 | ``` | |
| 493 | | |
| 494 | Methods: | |
| 495 | | |
5d3111a8Stainless Bot1 years ago | 496 | - <code title="get /threads/{thread_id}/runs/{run_id}/steps/{step_id}">client.beta.threads.runs.steps.<a href="./src/openai/resources/beta/threads/runs/steps.py">retrieve</a>(step_id, \*, thread_id, run_id, \*\*<a href="src/openai/types/beta/threads/runs/step_retrieve_params.py">params</a>) -> <a href="./src/openai/types/beta/threads/runs/run_step.py">RunStep</a></code> |
baa9f07fRobert Craigie2 years ago | 497 | - <code title="get /threads/{thread_id}/runs/{run_id}/steps">client.beta.threads.runs.steps.<a href="./src/openai/resources/beta/threads/runs/steps.py">list</a>(run_id, \*, thread_id, \*\*<a href="src/openai/types/beta/threads/runs/step_list_params.py">params</a>) -> <a href="./src/openai/types/beta/threads/runs/run_step.py">SyncCursorPage[RunStep]</a></code> |
| 498 | | |
| 499 | ### Messages | |
| 500 | | |
| 501 | Types: | |
| 502 | | |
| 503 | ```python | |
| 504 | from openai.types.beta.threads import ( | |
5429f696Stainless Bot2 years ago | 505 | Annotation, |
| 506 | AnnotationDelta, | |
| 507 | FileCitationAnnotation, | |
| 508 | FileCitationDeltaAnnotation, | |
| 509 | FilePathAnnotation, | |
| 510 | FilePathDeltaAnnotation, | |
| 511 | ImageFile, | |
| 512 | ImageFileContentBlock, | |
| 513 | ImageFileDelta, | |
| 514 | ImageFileDeltaBlock, | |
79a0b401Stainless Bot2 years ago | 515 | ImageURL, |
| 516 | ImageURLContentBlock, | |
| 517 | ImageURLDelta, | |
| 518 | ImageURLDeltaBlock, | |
5429f696Stainless Bot2 years ago | 519 | Message, |
| 520 | MessageContent, | |
| 521 | MessageContentDelta, | |
79a0b401Stainless Bot2 years ago | 522 | MessageContentPartParam, |
5429f696Stainless Bot2 years ago | 523 | MessageDeleted, |
| 524 | MessageDelta, | |
| 525 | MessageDeltaEvent, | |
bf1ca86cRobert Craigie1 years ago | 526 | RefusalContentBlock, |
| 527 | RefusalDeltaBlock, | |
5429f696Stainless Bot2 years ago | 528 | Text, |
| 529 | TextContentBlock, | |
79a0b401Stainless Bot2 years ago | 530 | TextContentBlockParam, |
5429f696Stainless Bot2 years ago | 531 | TextDelta, |
| 532 | TextDeltaBlock, | |
baa9f07fRobert Craigie2 years ago | 533 | ) |
| 534 | ``` | |
| 535 | | |
| 536 | Methods: | |
| 537 | | |
5b20698dStainless Bot2 years ago | 538 | - <code title="post /threads/{thread_id}/messages">client.beta.threads.messages.<a href="./src/openai/resources/beta/threads/messages.py">create</a>(thread_id, \*\*<a href="src/openai/types/beta/threads/message_create_params.py">params</a>) -> <a href="./src/openai/types/beta/threads/message.py">Message</a></code> |
| 539 | - <code title="get /threads/{thread_id}/messages/{message_id}">client.beta.threads.messages.<a href="./src/openai/resources/beta/threads/messages.py">retrieve</a>(message_id, \*, thread_id) -> <a href="./src/openai/types/beta/threads/message.py">Message</a></code> | |
| 540 | - <code title="post /threads/{thread_id}/messages/{message_id}">client.beta.threads.messages.<a href="./src/openai/resources/beta/threads/messages.py">update</a>(message_id, \*, thread_id, \*\*<a href="src/openai/types/beta/threads/message_update_params.py">params</a>) -> <a href="./src/openai/types/beta/threads/message.py">Message</a></code> | |
| 541 | - <code title="get /threads/{thread_id}/messages">client.beta.threads.messages.<a href="./src/openai/resources/beta/threads/messages.py">list</a>(thread_id, \*\*<a href="src/openai/types/beta/threads/message_list_params.py">params</a>) -> <a href="./src/openai/types/beta/threads/message.py">SyncCursorPage[Message]</a></code> | |
d2738d42Stainless Bot2 years ago | 542 | - <code title="delete /threads/{thread_id}/messages/{message_id}">client.beta.threads.messages.<a href="./src/openai/resources/beta/threads/messages.py">delete</a>(message_id, \*, thread_id) -> <a href="./src/openai/types/beta/threads/message_deleted.py">MessageDeleted</a></code> |
db069cdaStainless Bot2 years ago | 543 | |
| 544 | # Batches | |
| 545 | | |
| 546 | Types: | |
| 547 | | |
| 548 | ```python | |
| 549 | from openai.types import Batch, BatchError, BatchRequestCounts | |
| 550 | ``` | |
| 551 | | |
| 552 | Methods: | |
| 553 | | |
| 554 | - <code title="post /batches">client.batches.<a href="./src/openai/resources/batches.py">create</a>(\*\*<a href="src/openai/types/batch_create_params.py">params</a>) -> <a href="./src/openai/types/batch.py">Batch</a></code> | |
| 555 | - <code title="get /batches/{batch_id}">client.batches.<a href="./src/openai/resources/batches.py">retrieve</a>(batch_id) -> <a href="./src/openai/types/batch.py">Batch</a></code> | |
2edeeb1fStainless Bot2 years ago | 556 | - <code title="get /batches">client.batches.<a href="./src/openai/resources/batches.py">list</a>(\*\*<a href="src/openai/types/batch_list_params.py">params</a>) -> <a href="./src/openai/types/batch.py">SyncCursorPage[Batch]</a></code> |
db069cdaStainless Bot2 years ago | 557 | - <code title="post /batches/{batch_id}/cancel">client.batches.<a href="./src/openai/resources/batches.py">cancel</a>(batch_id) -> <a href="./src/openai/types/batch.py">Batch</a></code> |
24ab406bstainless-app[bot]1 years ago | 558 | |
| 559 | # Uploads | |
| 560 | | |
| 561 | Types: | |
| 562 | | |
| 563 | ```python | |
| 564 | from openai.types import Upload | |
| 565 | ``` | |
| 566 | | |
| 567 | Methods: | |
| 568 | | |
| 569 | - <code title="post /uploads">client.uploads.<a href="./src/openai/resources/uploads/uploads.py">create</a>(\*\*<a href="src/openai/types/upload_create_params.py">params</a>) -> <a href="./src/openai/types/upload.py">Upload</a></code> | |
| 570 | - <code title="post /uploads/{upload_id}/cancel">client.uploads.<a href="./src/openai/resources/uploads/uploads.py">cancel</a>(upload_id) -> <a href="./src/openai/types/upload.py">Upload</a></code> | |
| 571 | - <code title="post /uploads/{upload_id}/complete">client.uploads.<a href="./src/openai/resources/uploads/uploads.py">complete</a>(upload_id, \*\*<a href="src/openai/types/upload_complete_params.py">params</a>) -> <a href="./src/openai/types/upload.py">Upload</a></code> | |
| 572 | | |
| 573 | ## Parts | |
| 574 | | |
| 575 | Types: | |
| 576 | | |
| 577 | ```python | |
| 578 | from openai.types.uploads import UploadPart | |
| 579 | ``` | |
| 580 | | |
| 581 | Methods: | |
| 582 | | |
| 583 | - <code title="post /uploads/{upload_id}/parts">client.uploads.parts.<a href="./src/openai/resources/uploads/parts.py">create</a>(upload_id, \*\*<a href="src/openai/types/uploads/part_create_params.py">params</a>) -> <a href="./src/openai/types/uploads/upload_part.py">UploadPart</a></code> | |
2954945eRobert Craigie1 years ago | 584 | |
| 585 | # Responses | |
| 586 | | |
| 587 | Types: | |
| 588 | | |
| 589 | ```python | |
| 590 | from openai.types.responses import ( | |
| 591 | ComputerTool, | |
| 592 | EasyInputMessage, | |
| 593 | FileSearchTool, | |
| 594 | FunctionTool, | |
| 595 | Response, | |
| 596 | ResponseAudioDeltaEvent, | |
| 597 | ResponseAudioDoneEvent, | |
| 598 | ResponseAudioTranscriptDeltaEvent, | |
| 599 | ResponseAudioTranscriptDoneEvent, | |
| 600 | ResponseCodeInterpreterCallCodeDeltaEvent, | |
| 601 | ResponseCodeInterpreterCallCodeDoneEvent, | |
| 602 | ResponseCodeInterpreterCallCompletedEvent, | |
| 603 | ResponseCodeInterpreterCallInProgressEvent, | |
| 604 | ResponseCodeInterpreterCallInterpretingEvent, | |
| 605 | ResponseCodeInterpreterToolCall, | |
| 606 | ResponseCompletedEvent, | |
| 607 | ResponseComputerToolCall, | |
| 608 | ResponseContent, | |
| 609 | ResponseContentPartAddedEvent, | |
| 610 | ResponseContentPartDoneEvent, | |
| 611 | ResponseCreatedEvent, | |
| 612 | ResponseError, | |
| 613 | ResponseErrorEvent, | |
| 614 | ResponseFailedEvent, | |
| 615 | ResponseFileSearchCallCompletedEvent, | |
| 616 | ResponseFileSearchCallInProgressEvent, | |
| 617 | ResponseFileSearchCallSearchingEvent, | |
| 618 | ResponseFileSearchToolCall, | |
| 619 | ResponseFormatTextConfig, | |
| 620 | ResponseFormatTextJSONSchemaConfig, | |
| 621 | ResponseFunctionCallArgumentsDeltaEvent, | |
| 622 | ResponseFunctionCallArgumentsDoneEvent, | |
| 623 | ResponseFunctionToolCall, | |
| 624 | ResponseFunctionWebSearch, | |
| 625 | ResponseInProgressEvent, | |
| 626 | ResponseIncludable, | |
| 627 | ResponseIncompleteEvent, | |
| 628 | ResponseInput, | |
| 629 | ResponseInputAudio, | |
| 630 | ResponseInputContent, | |
| 631 | ResponseInputFile, | |
| 632 | ResponseInputImage, | |
| 633 | ResponseInputItem, | |
| 634 | ResponseInputMessageContentList, | |
| 635 | ResponseInputText, | |
| 636 | ResponseOutputAudio, | |
| 637 | ResponseOutputItem, | |
| 638 | ResponseOutputItemAddedEvent, | |
| 639 | ResponseOutputItemDoneEvent, | |
| 640 | ResponseOutputMessage, | |
| 641 | ResponseOutputRefusal, | |
| 642 | ResponseOutputText, | |
27ef73fdstainless-app[bot]1 years ago | 643 | ResponseReasoningItem, |
2954945eRobert Craigie1 years ago | 644 | ResponseRefusalDeltaEvent, |
| 645 | ResponseRefusalDoneEvent, | |
| 646 | ResponseStatus, | |
| 647 | ResponseStreamEvent, | |
| 648 | ResponseTextAnnotationDeltaEvent, | |
| 649 | ResponseTextConfig, | |
| 650 | ResponseTextDeltaEvent, | |
| 651 | ResponseTextDoneEvent, | |
| 652 | ResponseUsage, | |
| 653 | ResponseWebSearchCallCompletedEvent, | |
| 654 | ResponseWebSearchCallInProgressEvent, | |
| 655 | ResponseWebSearchCallSearchingEvent, | |
| 656 | Tool, | |
| 657 | ToolChoiceFunction, | |
| 658 | ToolChoiceOptions, | |
| 659 | ToolChoiceTypes, | |
| 660 | WebSearchTool, | |
| 661 | ) | |
| 662 | ``` | |
| 663 | | |
| 664 | Methods: | |
| 665 | | |
| 666 | - <code title="post /responses">client.responses.<a href="./src/openai/resources/responses/responses.py">create</a>(\*\*<a href="src/openai/types/responses/response_create_params.py">params</a>) -> <a href="./src/openai/types/responses/response.py">Response</a></code> | |
| 667 | - <code title="get /responses/{response_id}">client.responses.<a href="./src/openai/resources/responses/responses.py">retrieve</a>(response_id, \*\*<a href="src/openai/types/responses/response_retrieve_params.py">params</a>) -> <a href="./src/openai/types/responses/response.py">Response</a></code> | |
| 668 | - <code title="delete /responses/{response_id}">client.responses.<a href="./src/openai/resources/responses/responses.py">delete</a>(response_id) -> None</code> | |
| 669 | | |
| 670 | ## InputItems | |
| 671 | | |
| 672 | Types: | |
| 673 | | |
| 674 | ```python | |
| 675 | from openai.types.responses import ResponseItemList | |
| 676 | ``` | |
| 677 | | |
| 678 | Methods: | |
| 679 | | |
| 680 | - <code title="get /responses/{response_id}/input_items">client.responses.input_items.<a href="./src/openai/resources/responses/input_items.py">list</a>(response_id, \*\*<a href="src/openai/types/responses/input_item_list_params.py">params</a>) -> SyncCursorPage[Data]</code> |