@@ -19,10 +19,23 @@ Types:
19
19
``` python
20
20
from openai.types.chat import (
21
21
ChatCompletion,
22
+ ChatCompletionAssistantMessageParam,
22
23
ChatCompletionChunk,
24
+ ChatCompletionContentPart,
25
+ ChatCompletionContentPartImage,
26
+ ChatCompletionContentPartText,
27
+ ChatCompletionFunctionCallOption,
28
+ ChatCompletionFunctionMessageParam,
23
29
ChatCompletionMessage,
24
30
ChatCompletionMessageParam,
31
+ ChatCompletionMessageToolCall,
32
+ ChatCompletionNamedToolChoice,
25
33
ChatCompletionRole,
34
+ ChatCompletionSystemMessageParam,
35
+ ChatCompletionTool,
36
+ ChatCompletionToolChoiceOption,
37
+ ChatCompletionToolMessageParam,
38
+ ChatCompletionUserMessageParam,
26
39
)
27
40
```
28
41
@@ -66,7 +79,7 @@ Methods:
66
79
67
80
- <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 >
68
81
- <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 >
69
- - <code title =" get /files " >client.files.<a href =" ./src/openai/resources/files.py " >list</a >() -> <a href =" ./src/openai/types/file_object.py " >SyncPage[ FileObject] </a ></code >
82
+ - <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 " >SyncPage[ FileObject] </a ></code >
70
83
- <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 >
71
84
- <code title =" get /files/{file_id}/content " >client.files.<a href =" ./src/openai/resources/files.py " >retrieve_content</a >(file_id) -> str</code >
72
85
- <code >client.files.<a href =" ./src/openai/resources/files.py " >wait_for_processing</a >(\* args) -> FileObject</code >
@@ -111,6 +124,12 @@ Methods:
111
124
112
125
- <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.py " >Translation</a ></code >
113
126
127
+ ## Speech
128
+
129
+ Methods:
130
+
131
+ - <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 >
132
+
114
133
# Moderations
115
134
116
135
Types:
@@ -170,3 +189,122 @@ Methods:
170
189
- <code title =" get /fine-tunes " >client.fine_tunes.<a href =" ./src/openai/resources/fine_tunes.py " >list</a >() -> <a href =" ./src/openai/types/fine_tune.py " >SyncPage[ FineTune] </a ></code >
171
190
- <code title =" post /fine-tunes/{fine_tune_id}/cancel " >client.fine_tunes.<a href =" ./src/openai/resources/fine_tunes.py " >cancel</a >(fine_tune_id) -> <a href =" ./src/openai/types/fine_tune.py " >FineTune</a ></code >
172
191
- <code title =" get /fine-tunes/{fine_tune_id}/events " >client.fine_tunes.<a href =" ./src/openai/resources/fine_tunes.py " >list_events</a >(fine_tune_id, \*\* <a href =" src/openai/types/fine_tune_list_events_params.py " >params</a >) -> <a href =" ./src/openai/types/fine_tune_events_list_response.py " >FineTuneEventsListResponse</a ></code >
192
+
193
+ # Beta
194
+
195
+ ## Assistants
196
+
197
+ Types:
198
+
199
+ ``` python
200
+ from openai.types.beta import Assistant, AsssitantDeleted
201
+ ```
202
+
203
+ Methods:
204
+
205
+ - <code title =" post /assistants " >client.beta.assistants.<a href =" ./src/openai/resources/beta/assistants/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 >
206
+ - <code title =" get /assistants/{assistant_id} " >client.beta.assistants.<a href =" ./src/openai/resources/beta/assistants/assistants.py " >retrieve</a >(assistant_id) -> <a href =" ./src/openai/types/beta/assistant.py " >Assistant</a ></code >
207
+ - <code title =" post /assistants/{assistant_id} " >client.beta.assistants.<a href =" ./src/openai/resources/beta/assistants/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 >
208
+ - <code title =" get /assistants " >client.beta.assistants.<a href =" ./src/openai/resources/beta/assistants/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 >
209
+ - <code title =" delete /assistants/{assistant_id} " >client.beta.assistants.<a href =" ./src/openai/resources/beta/assistants/assistants.py " >delete</a >(assistant_id) -> <a href =" ./src/openai/types/beta/asssitant_deleted.py " >AsssitantDeleted</a ></code >
210
+
211
+ ### Files
212
+
213
+ Types:
214
+
215
+ ``` python
216
+ from openai.types.beta.assistants import AssistantFile, FileDeleteResponse
217
+ ```
218
+
219
+ Methods:
220
+
221
+ - <code title =" post /assistants/{assistant_id}/files " >client.beta.assistants.files.<a href =" ./src/openai/resources/beta/assistants/files.py " >create</a >(assistant_id, \*\* <a href =" src/openai/types/beta/assistants/file_create_params.py " >params</a >) -> <a href =" ./src/openai/types/beta/assistants/assistant_file.py " >AssistantFile</a ></code >
222
+ - <code title =" get /assistants/{assistant_id}/files/{file_id} " >client.beta.assistants.files.<a href =" ./src/openai/resources/beta/assistants/files.py " >retrieve</a >(file_id, \* , assistant_id) -> <a href =" ./src/openai/types/beta/assistants/assistant_file.py " >AssistantFile</a ></code >
223
+ - <code title =" get /assistants/{assistant_id}/files " >client.beta.assistants.files.<a href =" ./src/openai/resources/beta/assistants/files.py " >list</a >(assistant_id, \*\* <a href =" src/openai/types/beta/assistants/file_list_params.py " >params</a >) -> <a href =" ./src/openai/types/beta/assistants/assistant_file.py " >SyncCursorPage[ AssistantFile] </a ></code >
224
+ - <code title =" delete /assistants/{assistant_id}/files/{file_id} " >client.beta.assistants.files.<a href =" ./src/openai/resources/beta/assistants/files.py " >delete</a >(file_id, \* , assistant_id) -> <a href =" ./src/openai/types/beta/assistants/file_delete_response.py " >FileDeleteResponse</a ></code >
225
+
226
+ ## Threads
227
+
228
+ Types:
229
+
230
+ ``` python
231
+ from openai.types.beta import Thread, ThreadDeleted
232
+ ```
233
+
234
+ Methods:
235
+
236
+ - <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 >
237
+ - <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 >
238
+ - <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 >
239
+ - <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 >
240
+ - <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 >
241
+
242
+ ### Runs
243
+
244
+ Types:
245
+
246
+ ``` python
247
+ from openai.types.beta.threads import RequiredActionFunctionToolCall, Run
248
+ ```
249
+
250
+ Methods:
251
+
252
+ - <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 >
253
+ - <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 >
254
+ - <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 >
255
+ - <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 >
256
+ - <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 >
257
+ - <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 >
258
+
259
+ #### Steps
260
+
261
+ Types:
262
+
263
+ ``` python
264
+ from openai.types.beta.threads.runs import (
265
+ CodeToolCall,
266
+ FunctionToolCall,
267
+ MessageCreationStepDetails,
268
+ RetrievalToolCall,
269
+ RunStep,
270
+ ToolCallsStepDetails,
271
+ )
272
+ ```
273
+
274
+ Methods:
275
+
276
+ - <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/run_step.py " >RunStep</a ></code >
277
+ - <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 >
278
+
279
+ ### Messages
280
+
281
+ Types:
282
+
283
+ ``` python
284
+ from openai.types.beta.threads import (
285
+ MessageContentImageFile,
286
+ MessageContentText,
287
+ ThreadMessage,
288
+ ThreadMessageDeleted,
289
+ )
290
+ ```
291
+
292
+ Methods:
293
+
294
+ - <code title =" post /threads/{thread_id}/messages " >client.beta.threads.messages.<a href =" ./src/openai/resources/beta/threads/messages/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/thread_message.py " >ThreadMessage</a ></code >
295
+ - <code title =" get /threads/{thread_id}/messages/{message_id} " >client.beta.threads.messages.<a href =" ./src/openai/resources/beta/threads/messages/messages.py " >retrieve</a >(message_id, \* , thread_id) -> <a href =" ./src/openai/types/beta/threads/thread_message.py " >ThreadMessage</a ></code >
296
+ - <code title =" post /threads/{thread_id}/messages/{message_id} " >client.beta.threads.messages.<a href =" ./src/openai/resources/beta/threads/messages/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/thread_message.py " >ThreadMessage</a ></code >
297
+ - <code title =" get /threads/{thread_id}/messages " >client.beta.threads.messages.<a href =" ./src/openai/resources/beta/threads/messages/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/thread_message.py " >SyncCursorPage[ ThreadMessage] </a ></code >
298
+
299
+ #### Files
300
+
301
+ Types:
302
+
303
+ ``` python
304
+ from openai.types.beta.threads.messages import MessageFile
305
+ ```
306
+
307
+ Methods:
308
+
309
+ - <code title =" get /threads/{thread_id}/messages/{message_id}/files/{file_id} " >client.beta.threads.messages.files.<a href =" ./src/openai/resources/beta/threads/messages/files.py " >retrieve</a >(file_id, \* , thread_id, message_id) -> <a href =" ./src/openai/types/beta/threads/messages/message_file.py " >MessageFile</a ></code >
310
+ - <code title =" get /threads/{thread_id}/messages/{message_id}/files " >client.beta.threads.messages.files.<a href =" ./src/openai/resources/beta/threads/messages/files.py " >list</a >(message_id, \* , thread_id, \*\* <a href =" src/openai/types/beta/threads/messages/file_list_params.py " >params</a >) -> <a href =" ./src/openai/types/beta/threads/messages/message_file.py " >SyncCursorPage[ MessageFile] </a ></code >
0 commit comments