aimlapi-sdk-python 2.8.1b0__py3-none-any.whl
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.
- aimlapi/__init__.py +243 -0
- aimlapi/__main__.py +3 -0
- aimlapi/_client.py +368 -0
- aimlapi/_utils/__init__.py +3 -0
- aimlapi/_utils/_compat.py +3 -0
- aimlapi/_utils/_datetime_parse.py +3 -0
- aimlapi/_utils/_logs.py +3 -0
- aimlapi/_utils/_proxy.py +3 -0
- aimlapi/_utils/_reflection.py +3 -0
- aimlapi/_utils/_resources_proxy.py +3 -0
- aimlapi/_utils/_streams.py +3 -0
- aimlapi/_utils/_sync.py +3 -0
- aimlapi/_utils/_transform.py +3 -0
- aimlapi/_utils/_typing.py +3 -0
- aimlapi/_utils/_utils.py +3 -0
- aimlapi/_version.py +9 -0
- aimlapi/cli/__init__.py +3 -0
- aimlapi/cli/_api/__init__.py +3 -0
- aimlapi/cli/_api/_main.py +3 -0
- aimlapi/cli/_api/audio.py +3 -0
- aimlapi/cli/_api/chat/__init__.py +3 -0
- aimlapi/cli/_api/chat/completions.py +3 -0
- aimlapi/cli/_api/completions.py +3 -0
- aimlapi/cli/_api/files.py +3 -0
- aimlapi/cli/_api/fine_tuning/__init__.py +3 -0
- aimlapi/cli/_api/fine_tuning/jobs.py +3 -0
- aimlapi/cli/_api/image.py +3 -0
- aimlapi/cli/_api/models.py +3 -0
- aimlapi/cli/_cli.py +3 -0
- aimlapi/cli/_errors.py +3 -0
- aimlapi/cli/_models.py +3 -0
- aimlapi/cli/_progress.py +3 -0
- aimlapi/cli/_tools/__init__.py +3 -0
- aimlapi/cli/_tools/_main.py +3 -0
- aimlapi/cli/_tools/fine_tunes.py +3 -0
- aimlapi/cli/_tools/migrate.py +3 -0
- aimlapi/cli/_utils.py +3 -0
- aimlapi/helpers/__init__.py +3 -0
- aimlapi/helpers/local_audio_player.py +3 -0
- aimlapi/helpers/microphone.py +3 -0
- aimlapi/lib/__init__.py +3 -0
- aimlapi/lib/_old_api.py +3 -0
- aimlapi/lib/_parsing/__init__.py +3 -0
- aimlapi/lib/_parsing/_completions.py +3 -0
- aimlapi/lib/_parsing/_responses.py +3 -0
- aimlapi/lib/_pydantic.py +3 -0
- aimlapi/lib/_realtime.py +3 -0
- aimlapi/lib/_tools.py +3 -0
- aimlapi/lib/_validators.py +3 -0
- aimlapi/lib/azure.py +3 -0
- aimlapi/lib/streaming/__init__.py +3 -0
- aimlapi/lib/streaming/_assistants.py +3 -0
- aimlapi/lib/streaming/_deltas.py +3 -0
- aimlapi/lib/streaming/chat/__init__.py +3 -0
- aimlapi/lib/streaming/chat/_completions.py +3 -0
- aimlapi/lib/streaming/chat/_events.py +3 -0
- aimlapi/lib/streaming/chat/_types.py +3 -0
- aimlapi/lib/streaming/responses/__init__.py +3 -0
- aimlapi/lib/streaming/responses/_events.py +3 -0
- aimlapi/lib/streaming/responses/_responses.py +3 -0
- aimlapi/lib/streaming/responses/_types.py +3 -0
- aimlapi/pagination.py +3 -0
- aimlapi/resources/__init__.py +3 -0
- aimlapi/resources/audio/__init__.py +47 -0
- aimlapi/resources/audio/_polling.py +129 -0
- aimlapi/resources/audio/audio.py +56 -0
- aimlapi/resources/audio/speech.py +428 -0
- aimlapi/resources/audio/transcriptions.py +219 -0
- aimlapi/resources/audio/translations.py +3 -0
- aimlapi/resources/batches.py +3 -0
- aimlapi/resources/beta/__init__.py +3 -0
- aimlapi/resources/beta/assistants.py +3 -0
- aimlapi/resources/beta/beta.py +3 -0
- aimlapi/resources/beta/chatkit/__init__.py +3 -0
- aimlapi/resources/beta/chatkit/chatkit.py +3 -0
- aimlapi/resources/beta/chatkit/sessions.py +3 -0
- aimlapi/resources/beta/chatkit/threads.py +3 -0
- aimlapi/resources/beta/realtime/__init__.py +3 -0
- aimlapi/resources/beta/realtime/realtime.py +3 -0
- aimlapi/resources/beta/realtime/sessions.py +3 -0
- aimlapi/resources/beta/realtime/transcription_sessions.py +3 -0
- aimlapi/resources/beta/threads/__init__.py +3 -0
- aimlapi/resources/beta/threads/messages.py +3 -0
- aimlapi/resources/beta/threads/runs/__init__.py +3 -0
- aimlapi/resources/beta/threads/runs/runs.py +3 -0
- aimlapi/resources/beta/threads/runs/steps.py +3 -0
- aimlapi/resources/beta/threads/threads.py +3 -0
- aimlapi/resources/chat/__init__.py +3 -0
- aimlapi/resources/chat/chat.py +86 -0
- aimlapi/resources/chat/completions/__init__.py +4 -0
- aimlapi/resources/chat/completions/completions.py +452 -0
- aimlapi/resources/chat/completions/messages.py +3 -0
- aimlapi/resources/completions.py +3 -0
- aimlapi/resources/containers/__init__.py +3 -0
- aimlapi/resources/containers/containers.py +3 -0
- aimlapi/resources/containers/files/__init__.py +3 -0
- aimlapi/resources/containers/files/content.py +3 -0
- aimlapi/resources/containers/files/files.py +3 -0
- aimlapi/resources/conversations/__init__.py +3 -0
- aimlapi/resources/conversations/conversations.py +3 -0
- aimlapi/resources/conversations/items.py +3 -0
- aimlapi/resources/embeddings.py +3 -0
- aimlapi/resources/evals/__init__.py +3 -0
- aimlapi/resources/evals/evals.py +3 -0
- aimlapi/resources/evals/runs/__init__.py +3 -0
- aimlapi/resources/evals/runs/output_items.py +3 -0
- aimlapi/resources/evals/runs/runs.py +3 -0
- aimlapi/resources/files.py +3 -0
- aimlapi/resources/fine_tuning/__init__.py +3 -0
- aimlapi/resources/fine_tuning/alpha/__init__.py +3 -0
- aimlapi/resources/fine_tuning/alpha/alpha.py +3 -0
- aimlapi/resources/fine_tuning/alpha/graders.py +3 -0
- aimlapi/resources/fine_tuning/checkpoints/__init__.py +3 -0
- aimlapi/resources/fine_tuning/checkpoints/checkpoints.py +3 -0
- aimlapi/resources/fine_tuning/checkpoints/permissions.py +3 -0
- aimlapi/resources/fine_tuning/fine_tuning.py +3 -0
- aimlapi/resources/fine_tuning/jobs/__init__.py +3 -0
- aimlapi/resources/fine_tuning/jobs/checkpoints.py +3 -0
- aimlapi/resources/fine_tuning/jobs/jobs.py +3 -0
- aimlapi/resources/images.py +184 -0
- aimlapi/resources/models.py +3 -0
- aimlapi/resources/moderations.py +3 -0
- aimlapi/resources/realtime/__init__.py +3 -0
- aimlapi/resources/realtime/calls.py +3 -0
- aimlapi/resources/realtime/client_secrets.py +3 -0
- aimlapi/resources/realtime/realtime.py +3 -0
- aimlapi/resources/responses/__init__.py +4 -0
- aimlapi/resources/responses/input_items.py +3 -0
- aimlapi/resources/responses/input_tokens.py +3 -0
- aimlapi/resources/responses/responses.py +229 -0
- aimlapi/resources/uploads/__init__.py +19 -0
- aimlapi/resources/uploads/parts.py +3 -0
- aimlapi/resources/uploads/uploads.py +99 -0
- aimlapi/resources/vector_stores/__init__.py +3 -0
- aimlapi/resources/vector_stores/file_batches.py +3 -0
- aimlapi/resources/vector_stores/files.py +3 -0
- aimlapi/resources/vector_stores/vector_stores.py +3 -0
- aimlapi/resources/videos.py +267 -0
- aimlapi/resources/webhooks.py +3 -0
- aimlapi/types/__init__.py +3 -0
- aimlapi/types/audio/__init__.py +3 -0
- aimlapi/types/audio/speech_create_params.py +3 -0
- aimlapi/types/audio/speech_model.py +3 -0
- aimlapi/types/audio/transcription.py +3 -0
- aimlapi/types/audio/transcription_create_params.py +3 -0
- aimlapi/types/audio/transcription_create_response.py +3 -0
- aimlapi/types/audio/transcription_diarized.py +3 -0
- aimlapi/types/audio/transcription_diarized_segment.py +3 -0
- aimlapi/types/audio/transcription_include.py +3 -0
- aimlapi/types/audio/transcription_segment.py +3 -0
- aimlapi/types/audio/transcription_stream_event.py +3 -0
- aimlapi/types/audio/transcription_text_delta_event.py +3 -0
- aimlapi/types/audio/transcription_text_done_event.py +3 -0
- aimlapi/types/audio/transcription_text_segment_event.py +3 -0
- aimlapi/types/audio/transcription_verbose.py +3 -0
- aimlapi/types/audio/transcription_word.py +3 -0
- aimlapi/types/audio/translation.py +3 -0
- aimlapi/types/audio/translation_create_params.py +3 -0
- aimlapi/types/audio/translation_create_response.py +3 -0
- aimlapi/types/audio/translation_verbose.py +3 -0
- aimlapi/types/audio_model.py +3 -0
- aimlapi/types/audio_response_format.py +3 -0
- aimlapi/types/auto_file_chunking_strategy_param.py +3 -0
- aimlapi/types/batch.py +3 -0
- aimlapi/types/batch_create_params.py +3 -0
- aimlapi/types/batch_error.py +3 -0
- aimlapi/types/batch_list_params.py +3 -0
- aimlapi/types/batch_request_counts.py +3 -0
- aimlapi/types/batch_usage.py +3 -0
- aimlapi/types/beta/__init__.py +3 -0
- aimlapi/types/beta/assistant.py +3 -0
- aimlapi/types/beta/assistant_create_params.py +3 -0
- aimlapi/types/beta/assistant_deleted.py +3 -0
- aimlapi/types/beta/assistant_list_params.py +3 -0
- aimlapi/types/beta/assistant_response_format_option.py +3 -0
- aimlapi/types/beta/assistant_response_format_option_param.py +3 -0
- aimlapi/types/beta/assistant_stream_event.py +3 -0
- aimlapi/types/beta/assistant_tool.py +3 -0
- aimlapi/types/beta/assistant_tool_choice.py +3 -0
- aimlapi/types/beta/assistant_tool_choice_function.py +3 -0
- aimlapi/types/beta/assistant_tool_choice_function_param.py +3 -0
- aimlapi/types/beta/assistant_tool_choice_option.py +3 -0
- aimlapi/types/beta/assistant_tool_choice_option_param.py +3 -0
- aimlapi/types/beta/assistant_tool_choice_param.py +3 -0
- aimlapi/types/beta/assistant_tool_param.py +3 -0
- aimlapi/types/beta/assistant_update_params.py +3 -0
- aimlapi/types/beta/chat/__init__.py +3 -0
- aimlapi/types/beta/chatkit/__init__.py +3 -0
- aimlapi/types/beta/chatkit/chat_session.py +3 -0
- aimlapi/types/beta/chatkit/chat_session_automatic_thread_titling.py +3 -0
- aimlapi/types/beta/chatkit/chat_session_chatkit_configuration.py +3 -0
- aimlapi/types/beta/chatkit/chat_session_chatkit_configuration_param.py +3 -0
- aimlapi/types/beta/chatkit/chat_session_expires_after_param.py +3 -0
- aimlapi/types/beta/chatkit/chat_session_file_upload.py +3 -0
- aimlapi/types/beta/chatkit/chat_session_history.py +3 -0
- aimlapi/types/beta/chatkit/chat_session_rate_limits.py +3 -0
- aimlapi/types/beta/chatkit/chat_session_rate_limits_param.py +3 -0
- aimlapi/types/beta/chatkit/chat_session_status.py +3 -0
- aimlapi/types/beta/chatkit/chat_session_workflow_param.py +3 -0
- aimlapi/types/beta/chatkit/chatkit_attachment.py +3 -0
- aimlapi/types/beta/chatkit/chatkit_response_output_text.py +3 -0
- aimlapi/types/beta/chatkit/chatkit_thread.py +3 -0
- aimlapi/types/beta/chatkit/chatkit_thread_assistant_message_item.py +3 -0
- aimlapi/types/beta/chatkit/chatkit_thread_item_list.py +3 -0
- aimlapi/types/beta/chatkit/chatkit_thread_user_message_item.py +3 -0
- aimlapi/types/beta/chatkit/chatkit_widget_item.py +3 -0
- aimlapi/types/beta/chatkit/session_create_params.py +3 -0
- aimlapi/types/beta/chatkit/thread_delete_response.py +3 -0
- aimlapi/types/beta/chatkit/thread_list_items_params.py +3 -0
- aimlapi/types/beta/chatkit/thread_list_params.py +3 -0
- aimlapi/types/beta/chatkit_workflow.py +3 -0
- aimlapi/types/beta/code_interpreter_tool.py +3 -0
- aimlapi/types/beta/code_interpreter_tool_param.py +3 -0
- aimlapi/types/beta/file_search_tool.py +3 -0
- aimlapi/types/beta/file_search_tool_param.py +3 -0
- aimlapi/types/beta/function_tool.py +3 -0
- aimlapi/types/beta/function_tool_param.py +3 -0
- aimlapi/types/beta/realtime/__init__.py +3 -0
- aimlapi/types/beta/realtime/conversation_created_event.py +3 -0
- aimlapi/types/beta/realtime/conversation_item.py +3 -0
- aimlapi/types/beta/realtime/conversation_item_content.py +3 -0
- aimlapi/types/beta/realtime/conversation_item_content_param.py +3 -0
- aimlapi/types/beta/realtime/conversation_item_create_event.py +3 -0
- aimlapi/types/beta/realtime/conversation_item_create_event_param.py +3 -0
- aimlapi/types/beta/realtime/conversation_item_created_event.py +3 -0
- aimlapi/types/beta/realtime/conversation_item_delete_event.py +3 -0
- aimlapi/types/beta/realtime/conversation_item_delete_event_param.py +3 -0
- aimlapi/types/beta/realtime/conversation_item_deleted_event.py +3 -0
- aimlapi/types/beta/realtime/conversation_item_input_audio_transcription_completed_event.py +3 -0
- aimlapi/types/beta/realtime/conversation_item_input_audio_transcription_delta_event.py +3 -0
- aimlapi/types/beta/realtime/conversation_item_input_audio_transcription_failed_event.py +3 -0
- aimlapi/types/beta/realtime/conversation_item_param.py +3 -0
- aimlapi/types/beta/realtime/conversation_item_retrieve_event.py +3 -0
- aimlapi/types/beta/realtime/conversation_item_retrieve_event_param.py +3 -0
- aimlapi/types/beta/realtime/conversation_item_truncate_event.py +3 -0
- aimlapi/types/beta/realtime/conversation_item_truncate_event_param.py +3 -0
- aimlapi/types/beta/realtime/conversation_item_truncated_event.py +3 -0
- aimlapi/types/beta/realtime/conversation_item_with_reference.py +3 -0
- aimlapi/types/beta/realtime/conversation_item_with_reference_param.py +3 -0
- aimlapi/types/beta/realtime/error_event.py +3 -0
- aimlapi/types/beta/realtime/input_audio_buffer_append_event.py +3 -0
- aimlapi/types/beta/realtime/input_audio_buffer_append_event_param.py +3 -0
- aimlapi/types/beta/realtime/input_audio_buffer_clear_event.py +3 -0
- aimlapi/types/beta/realtime/input_audio_buffer_clear_event_param.py +3 -0
- aimlapi/types/beta/realtime/input_audio_buffer_cleared_event.py +3 -0
- aimlapi/types/beta/realtime/input_audio_buffer_commit_event.py +3 -0
- aimlapi/types/beta/realtime/input_audio_buffer_commit_event_param.py +3 -0
- aimlapi/types/beta/realtime/input_audio_buffer_committed_event.py +3 -0
- aimlapi/types/beta/realtime/input_audio_buffer_speech_started_event.py +3 -0
- aimlapi/types/beta/realtime/input_audio_buffer_speech_stopped_event.py +3 -0
- aimlapi/types/beta/realtime/rate_limits_updated_event.py +3 -0
- aimlapi/types/beta/realtime/realtime_client_event.py +3 -0
- aimlapi/types/beta/realtime/realtime_client_event_param.py +3 -0
- aimlapi/types/beta/realtime/realtime_connect_params.py +3 -0
- aimlapi/types/beta/realtime/realtime_response.py +3 -0
- aimlapi/types/beta/realtime/realtime_response_status.py +3 -0
- aimlapi/types/beta/realtime/realtime_response_usage.py +3 -0
- aimlapi/types/beta/realtime/realtime_server_event.py +3 -0
- aimlapi/types/beta/realtime/response_audio_delta_event.py +3 -0
- aimlapi/types/beta/realtime/response_audio_done_event.py +3 -0
- aimlapi/types/beta/realtime/response_audio_transcript_delta_event.py +3 -0
- aimlapi/types/beta/realtime/response_audio_transcript_done_event.py +3 -0
- aimlapi/types/beta/realtime/response_cancel_event.py +3 -0
- aimlapi/types/beta/realtime/response_cancel_event_param.py +3 -0
- aimlapi/types/beta/realtime/response_content_part_added_event.py +3 -0
- aimlapi/types/beta/realtime/response_content_part_done_event.py +3 -0
- aimlapi/types/beta/realtime/response_create_event.py +3 -0
- aimlapi/types/beta/realtime/response_create_event_param.py +3 -0
- aimlapi/types/beta/realtime/response_created_event.py +3 -0
- aimlapi/types/beta/realtime/response_done_event.py +3 -0
- aimlapi/types/beta/realtime/response_function_call_arguments_delta_event.py +3 -0
- aimlapi/types/beta/realtime/response_function_call_arguments_done_event.py +3 -0
- aimlapi/types/beta/realtime/response_output_item_added_event.py +3 -0
- aimlapi/types/beta/realtime/response_output_item_done_event.py +3 -0
- aimlapi/types/beta/realtime/response_text_delta_event.py +3 -0
- aimlapi/types/beta/realtime/response_text_done_event.py +3 -0
- aimlapi/types/beta/realtime/session.py +3 -0
- aimlapi/types/beta/realtime/session_create_params.py +3 -0
- aimlapi/types/beta/realtime/session_create_response.py +3 -0
- aimlapi/types/beta/realtime/session_created_event.py +3 -0
- aimlapi/types/beta/realtime/session_update_event.py +3 -0
- aimlapi/types/beta/realtime/session_update_event_param.py +3 -0
- aimlapi/types/beta/realtime/session_updated_event.py +3 -0
- aimlapi/types/beta/realtime/transcription_session.py +3 -0
- aimlapi/types/beta/realtime/transcription_session_create_params.py +3 -0
- aimlapi/types/beta/realtime/transcription_session_update.py +3 -0
- aimlapi/types/beta/realtime/transcription_session_update_param.py +3 -0
- aimlapi/types/beta/realtime/transcription_session_updated_event.py +3 -0
- aimlapi/types/beta/thread.py +3 -0
- aimlapi/types/beta/thread_create_and_run_params.py +3 -0
- aimlapi/types/beta/thread_create_params.py +3 -0
- aimlapi/types/beta/thread_deleted.py +3 -0
- aimlapi/types/beta/thread_update_params.py +3 -0
- aimlapi/types/beta/threads/__init__.py +3 -0
- aimlapi/types/beta/threads/annotation.py +3 -0
- aimlapi/types/beta/threads/annotation_delta.py +3 -0
- aimlapi/types/beta/threads/file_citation_annotation.py +3 -0
- aimlapi/types/beta/threads/file_citation_delta_annotation.py +3 -0
- aimlapi/types/beta/threads/file_path_annotation.py +3 -0
- aimlapi/types/beta/threads/file_path_delta_annotation.py +3 -0
- aimlapi/types/beta/threads/image_file.py +3 -0
- aimlapi/types/beta/threads/image_file_content_block.py +3 -0
- aimlapi/types/beta/threads/image_file_content_block_param.py +3 -0
- aimlapi/types/beta/threads/image_file_delta.py +3 -0
- aimlapi/types/beta/threads/image_file_delta_block.py +3 -0
- aimlapi/types/beta/threads/image_file_param.py +3 -0
- aimlapi/types/beta/threads/image_url.py +3 -0
- aimlapi/types/beta/threads/image_url_content_block.py +3 -0
- aimlapi/types/beta/threads/image_url_content_block_param.py +3 -0
- aimlapi/types/beta/threads/image_url_delta.py +3 -0
- aimlapi/types/beta/threads/image_url_delta_block.py +3 -0
- aimlapi/types/beta/threads/image_url_param.py +3 -0
- aimlapi/types/beta/threads/message.py +3 -0
- aimlapi/types/beta/threads/message_content.py +3 -0
- aimlapi/types/beta/threads/message_content_delta.py +3 -0
- aimlapi/types/beta/threads/message_content_part_param.py +3 -0
- aimlapi/types/beta/threads/message_create_params.py +3 -0
- aimlapi/types/beta/threads/message_deleted.py +3 -0
- aimlapi/types/beta/threads/message_delta.py +3 -0
- aimlapi/types/beta/threads/message_delta_event.py +3 -0
- aimlapi/types/beta/threads/message_list_params.py +3 -0
- aimlapi/types/beta/threads/message_update_params.py +3 -0
- aimlapi/types/beta/threads/refusal_content_block.py +3 -0
- aimlapi/types/beta/threads/refusal_delta_block.py +3 -0
- aimlapi/types/beta/threads/required_action_function_tool_call.py +3 -0
- aimlapi/types/beta/threads/run.py +3 -0
- aimlapi/types/beta/threads/run_create_params.py +3 -0
- aimlapi/types/beta/threads/run_list_params.py +3 -0
- aimlapi/types/beta/threads/run_status.py +3 -0
- aimlapi/types/beta/threads/run_submit_tool_outputs_params.py +3 -0
- aimlapi/types/beta/threads/run_update_params.py +3 -0
- aimlapi/types/beta/threads/runs/__init__.py +3 -0
- aimlapi/types/beta/threads/runs/code_interpreter_logs.py +3 -0
- aimlapi/types/beta/threads/runs/code_interpreter_output_image.py +3 -0
- aimlapi/types/beta/threads/runs/code_interpreter_tool_call.py +3 -0
- aimlapi/types/beta/threads/runs/code_interpreter_tool_call_delta.py +3 -0
- aimlapi/types/beta/threads/runs/file_search_tool_call.py +3 -0
- aimlapi/types/beta/threads/runs/file_search_tool_call_delta.py +3 -0
- aimlapi/types/beta/threads/runs/function_tool_call.py +3 -0
- aimlapi/types/beta/threads/runs/function_tool_call_delta.py +3 -0
- aimlapi/types/beta/threads/runs/message_creation_step_details.py +3 -0
- aimlapi/types/beta/threads/runs/run_step.py +3 -0
- aimlapi/types/beta/threads/runs/run_step_delta.py +3 -0
- aimlapi/types/beta/threads/runs/run_step_delta_event.py +3 -0
- aimlapi/types/beta/threads/runs/run_step_delta_message_delta.py +3 -0
- aimlapi/types/beta/threads/runs/run_step_include.py +3 -0
- aimlapi/types/beta/threads/runs/step_list_params.py +3 -0
- aimlapi/types/beta/threads/runs/step_retrieve_params.py +3 -0
- aimlapi/types/beta/threads/runs/tool_call.py +3 -0
- aimlapi/types/beta/threads/runs/tool_call_delta.py +3 -0
- aimlapi/types/beta/threads/runs/tool_call_delta_object.py +3 -0
- aimlapi/types/beta/threads/runs/tool_calls_step_details.py +3 -0
- aimlapi/types/beta/threads/text.py +3 -0
- aimlapi/types/beta/threads/text_content_block.py +3 -0
- aimlapi/types/beta/threads/text_content_block_param.py +3 -0
- aimlapi/types/beta/threads/text_delta.py +3 -0
- aimlapi/types/beta/threads/text_delta_block.py +3 -0
- aimlapi/types/chat/__init__.py +3 -0
- aimlapi/types/chat/chat_completion.py +3 -0
- aimlapi/types/chat/chat_completion_allowed_tool_choice_param.py +3 -0
- aimlapi/types/chat/chat_completion_allowed_tools_param.py +3 -0
- aimlapi/types/chat/chat_completion_assistant_message_param.py +3 -0
- aimlapi/types/chat/chat_completion_audio.py +3 -0
- aimlapi/types/chat/chat_completion_audio_param.py +3 -0
- aimlapi/types/chat/chat_completion_chunk.py +3 -0
- aimlapi/types/chat/chat_completion_content_part_image.py +3 -0
- aimlapi/types/chat/chat_completion_content_part_image_param.py +3 -0
- aimlapi/types/chat/chat_completion_content_part_input_audio_param.py +3 -0
- aimlapi/types/chat/chat_completion_content_part_param.py +3 -0
- aimlapi/types/chat/chat_completion_content_part_refusal_param.py +3 -0
- aimlapi/types/chat/chat_completion_content_part_text.py +3 -0
- aimlapi/types/chat/chat_completion_content_part_text_param.py +3 -0
- aimlapi/types/chat/chat_completion_custom_tool_param.py +3 -0
- aimlapi/types/chat/chat_completion_deleted.py +3 -0
- aimlapi/types/chat/chat_completion_developer_message_param.py +3 -0
- aimlapi/types/chat/chat_completion_function_call_option_param.py +3 -0
- aimlapi/types/chat/chat_completion_function_message_param.py +3 -0
- aimlapi/types/chat/chat_completion_function_tool.py +3 -0
- aimlapi/types/chat/chat_completion_function_tool_param.py +3 -0
- aimlapi/types/chat/chat_completion_message.py +3 -0
- aimlapi/types/chat/chat_completion_message_custom_tool_call.py +3 -0
- aimlapi/types/chat/chat_completion_message_custom_tool_call_param.py +3 -0
- aimlapi/types/chat/chat_completion_message_function_tool_call.py +3 -0
- aimlapi/types/chat/chat_completion_message_function_tool_call_param.py +3 -0
- aimlapi/types/chat/chat_completion_message_param.py +3 -0
- aimlapi/types/chat/chat_completion_message_tool_call.py +3 -0
- aimlapi/types/chat/chat_completion_message_tool_call_param.py +3 -0
- aimlapi/types/chat/chat_completion_message_tool_call_union_param.py +3 -0
- aimlapi/types/chat/chat_completion_modality.py +3 -0
- aimlapi/types/chat/chat_completion_named_tool_choice_custom_param.py +3 -0
- aimlapi/types/chat/chat_completion_named_tool_choice_param.py +3 -0
- aimlapi/types/chat/chat_completion_prediction_content_param.py +3 -0
- aimlapi/types/chat/chat_completion_reasoning_effort.py +3 -0
- aimlapi/types/chat/chat_completion_role.py +3 -0
- aimlapi/types/chat/chat_completion_store_message.py +3 -0
- aimlapi/types/chat/chat_completion_stream_options_param.py +3 -0
- aimlapi/types/chat/chat_completion_system_message_param.py +3 -0
- aimlapi/types/chat/chat_completion_token_logprob.py +3 -0
- aimlapi/types/chat/chat_completion_tool_choice_option_param.py +3 -0
- aimlapi/types/chat/chat_completion_tool_message_param.py +3 -0
- aimlapi/types/chat/chat_completion_tool_param.py +3 -0
- aimlapi/types/chat/chat_completion_tool_union_param.py +3 -0
- aimlapi/types/chat/chat_completion_user_message_param.py +3 -0
- aimlapi/types/chat/completion_create_params.py +3 -0
- aimlapi/types/chat/completion_list_params.py +3 -0
- aimlapi/types/chat/completion_update_params.py +3 -0
- aimlapi/types/chat/completions/__init__.py +3 -0
- aimlapi/types/chat/completions/message_list_params.py +3 -0
- aimlapi/types/chat/parsed_chat_completion.py +3 -0
- aimlapi/types/chat/parsed_function_tool_call.py +3 -0
- aimlapi/types/chat_model.py +3 -0
- aimlapi/types/completion.py +3 -0
- aimlapi/types/completion_choice.py +3 -0
- aimlapi/types/completion_create_params.py +3 -0
- aimlapi/types/completion_usage.py +3 -0
- aimlapi/types/container_create_params.py +3 -0
- aimlapi/types/container_create_response.py +3 -0
- aimlapi/types/container_list_params.py +3 -0
- aimlapi/types/container_list_response.py +3 -0
- aimlapi/types/container_retrieve_response.py +3 -0
- aimlapi/types/containers/__init__.py +3 -0
- aimlapi/types/containers/file_create_params.py +3 -0
- aimlapi/types/containers/file_create_response.py +3 -0
- aimlapi/types/containers/file_list_params.py +3 -0
- aimlapi/types/containers/file_list_response.py +3 -0
- aimlapi/types/containers/file_retrieve_response.py +3 -0
- aimlapi/types/containers/files/__init__.py +3 -0
- aimlapi/types/conversations/__init__.py +3 -0
- aimlapi/types/conversations/computer_screenshot_content.py +3 -0
- aimlapi/types/conversations/conversation.py +3 -0
- aimlapi/types/conversations/conversation_create_params.py +3 -0
- aimlapi/types/conversations/conversation_deleted_resource.py +3 -0
- aimlapi/types/conversations/conversation_item.py +3 -0
- aimlapi/types/conversations/conversation_item_list.py +3 -0
- aimlapi/types/conversations/conversation_update_params.py +3 -0
- aimlapi/types/conversations/input_file_content.py +3 -0
- aimlapi/types/conversations/input_file_content_param.py +3 -0
- aimlapi/types/conversations/input_image_content.py +3 -0
- aimlapi/types/conversations/input_image_content_param.py +3 -0
- aimlapi/types/conversations/input_text_content.py +3 -0
- aimlapi/types/conversations/input_text_content_param.py +3 -0
- aimlapi/types/conversations/item_create_params.py +3 -0
- aimlapi/types/conversations/item_list_params.py +3 -0
- aimlapi/types/conversations/item_retrieve_params.py +3 -0
- aimlapi/types/conversations/message.py +3 -0
- aimlapi/types/conversations/output_text_content.py +3 -0
- aimlapi/types/conversations/output_text_content_param.py +3 -0
- aimlapi/types/conversations/refusal_content.py +3 -0
- aimlapi/types/conversations/refusal_content_param.py +3 -0
- aimlapi/types/conversations/summary_text_content.py +3 -0
- aimlapi/types/conversations/text_content.py +3 -0
- aimlapi/types/create_embedding_response.py +3 -0
- aimlapi/types/embedding.py +3 -0
- aimlapi/types/embedding_create_params.py +3 -0
- aimlapi/types/embedding_model.py +3 -0
- aimlapi/types/eval_create_params.py +3 -0
- aimlapi/types/eval_create_response.py +3 -0
- aimlapi/types/eval_custom_data_source_config.py +3 -0
- aimlapi/types/eval_delete_response.py +3 -0
- aimlapi/types/eval_list_params.py +3 -0
- aimlapi/types/eval_list_response.py +3 -0
- aimlapi/types/eval_retrieve_response.py +3 -0
- aimlapi/types/eval_stored_completions_data_source_config.py +3 -0
- aimlapi/types/eval_update_params.py +3 -0
- aimlapi/types/eval_update_response.py +3 -0
- aimlapi/types/evals/__init__.py +3 -0
- aimlapi/types/evals/create_eval_completions_run_data_source.py +3 -0
- aimlapi/types/evals/create_eval_completions_run_data_source_param.py +3 -0
- aimlapi/types/evals/create_eval_jsonl_run_data_source.py +3 -0
- aimlapi/types/evals/create_eval_jsonl_run_data_source_param.py +3 -0
- aimlapi/types/evals/eval_api_error.py +3 -0
- aimlapi/types/evals/run_cancel_response.py +3 -0
- aimlapi/types/evals/run_create_params.py +3 -0
- aimlapi/types/evals/run_create_response.py +3 -0
- aimlapi/types/evals/run_delete_response.py +3 -0
- aimlapi/types/evals/run_list_params.py +3 -0
- aimlapi/types/evals/run_list_response.py +3 -0
- aimlapi/types/evals/run_retrieve_response.py +3 -0
- aimlapi/types/evals/runs/__init__.py +3 -0
- aimlapi/types/evals/runs/output_item_list_params.py +3 -0
- aimlapi/types/evals/runs/output_item_list_response.py +3 -0
- aimlapi/types/evals/runs/output_item_retrieve_response.py +3 -0
- aimlapi/types/file_chunking_strategy.py +3 -0
- aimlapi/types/file_chunking_strategy_param.py +3 -0
- aimlapi/types/file_content.py +3 -0
- aimlapi/types/file_create_params.py +3 -0
- aimlapi/types/file_deleted.py +3 -0
- aimlapi/types/file_list_params.py +3 -0
- aimlapi/types/file_object.py +3 -0
- aimlapi/types/file_purpose.py +3 -0
- aimlapi/types/fine_tuning/__init__.py +3 -0
- aimlapi/types/fine_tuning/alpha/__init__.py +3 -0
- aimlapi/types/fine_tuning/alpha/grader_run_params.py +3 -0
- aimlapi/types/fine_tuning/alpha/grader_run_response.py +3 -0
- aimlapi/types/fine_tuning/alpha/grader_validate_params.py +3 -0
- aimlapi/types/fine_tuning/alpha/grader_validate_response.py +3 -0
- aimlapi/types/fine_tuning/checkpoints/__init__.py +3 -0
- aimlapi/types/fine_tuning/checkpoints/permission_create_params.py +3 -0
- aimlapi/types/fine_tuning/checkpoints/permission_create_response.py +3 -0
- aimlapi/types/fine_tuning/checkpoints/permission_delete_response.py +3 -0
- aimlapi/types/fine_tuning/checkpoints/permission_retrieve_params.py +3 -0
- aimlapi/types/fine_tuning/checkpoints/permission_retrieve_response.py +3 -0
- aimlapi/types/fine_tuning/dpo_hyperparameters.py +3 -0
- aimlapi/types/fine_tuning/dpo_hyperparameters_param.py +3 -0
- aimlapi/types/fine_tuning/dpo_method.py +3 -0
- aimlapi/types/fine_tuning/dpo_method_param.py +3 -0
- aimlapi/types/fine_tuning/fine_tuning_job.py +3 -0
- aimlapi/types/fine_tuning/fine_tuning_job_event.py +3 -0
- aimlapi/types/fine_tuning/fine_tuning_job_integration.py +3 -0
- aimlapi/types/fine_tuning/fine_tuning_job_wandb_integration.py +3 -0
- aimlapi/types/fine_tuning/fine_tuning_job_wandb_integration_object.py +3 -0
- aimlapi/types/fine_tuning/job_create_params.py +3 -0
- aimlapi/types/fine_tuning/job_list_events_params.py +3 -0
- aimlapi/types/fine_tuning/job_list_params.py +3 -0
- aimlapi/types/fine_tuning/jobs/__init__.py +3 -0
- aimlapi/types/fine_tuning/jobs/checkpoint_list_params.py +3 -0
- aimlapi/types/fine_tuning/jobs/fine_tuning_job_checkpoint.py +3 -0
- aimlapi/types/fine_tuning/reinforcement_hyperparameters.py +3 -0
- aimlapi/types/fine_tuning/reinforcement_hyperparameters_param.py +3 -0
- aimlapi/types/fine_tuning/reinforcement_method.py +3 -0
- aimlapi/types/fine_tuning/reinforcement_method_param.py +3 -0
- aimlapi/types/fine_tuning/supervised_hyperparameters.py +3 -0
- aimlapi/types/fine_tuning/supervised_hyperparameters_param.py +3 -0
- aimlapi/types/fine_tuning/supervised_method.py +3 -0
- aimlapi/types/fine_tuning/supervised_method_param.py +3 -0
- aimlapi/types/graders/__init__.py +3 -0
- aimlapi/types/graders/label_model_grader.py +3 -0
- aimlapi/types/graders/label_model_grader_param.py +3 -0
- aimlapi/types/graders/multi_grader.py +3 -0
- aimlapi/types/graders/multi_grader_param.py +3 -0
- aimlapi/types/graders/python_grader.py +3 -0
- aimlapi/types/graders/python_grader_param.py +3 -0
- aimlapi/types/graders/score_model_grader.py +3 -0
- aimlapi/types/graders/score_model_grader_param.py +3 -0
- aimlapi/types/graders/string_check_grader.py +3 -0
- aimlapi/types/graders/string_check_grader_param.py +3 -0
- aimlapi/types/graders/text_similarity_grader.py +3 -0
- aimlapi/types/graders/text_similarity_grader_param.py +3 -0
- aimlapi/types/image.py +3 -0
- aimlapi/types/image_create_variation_params.py +3 -0
- aimlapi/types/image_edit_completed_event.py +3 -0
- aimlapi/types/image_edit_params.py +3 -0
- aimlapi/types/image_edit_partial_image_event.py +3 -0
- aimlapi/types/image_edit_stream_event.py +3 -0
- aimlapi/types/image_gen_completed_event.py +3 -0
- aimlapi/types/image_gen_partial_image_event.py +3 -0
- aimlapi/types/image_gen_stream_event.py +3 -0
- aimlapi/types/image_generate_params.py +3 -0
- aimlapi/types/image_model.py +3 -0
- aimlapi/types/images_response.py +3 -0
- aimlapi/types/model.py +3 -0
- aimlapi/types/model_deleted.py +3 -0
- aimlapi/types/moderation.py +3 -0
- aimlapi/types/moderation_create_params.py +3 -0
- aimlapi/types/moderation_create_response.py +3 -0
- aimlapi/types/moderation_image_url_input_param.py +3 -0
- aimlapi/types/moderation_model.py +3 -0
- aimlapi/types/moderation_multi_modal_input_param.py +3 -0
- aimlapi/types/moderation_text_input_param.py +3 -0
- aimlapi/types/other_file_chunking_strategy_object.py +3 -0
- aimlapi/types/realtime/__init__.py +3 -0
- aimlapi/types/realtime/audio_transcription.py +3 -0
- aimlapi/types/realtime/audio_transcription_param.py +3 -0
- aimlapi/types/realtime/call_accept_params.py +3 -0
- aimlapi/types/realtime/call_create_params.py +3 -0
- aimlapi/types/realtime/call_refer_params.py +3 -0
- aimlapi/types/realtime/call_reject_params.py +3 -0
- aimlapi/types/realtime/client_secret_create_params.py +3 -0
- aimlapi/types/realtime/client_secret_create_response.py +3 -0
- aimlapi/types/realtime/conversation_created_event.py +3 -0
- aimlapi/types/realtime/conversation_item.py +3 -0
- aimlapi/types/realtime/conversation_item_added.py +3 -0
- aimlapi/types/realtime/conversation_item_create_event.py +3 -0
- aimlapi/types/realtime/conversation_item_create_event_param.py +3 -0
- aimlapi/types/realtime/conversation_item_created_event.py +3 -0
- aimlapi/types/realtime/conversation_item_delete_event.py +3 -0
- aimlapi/types/realtime/conversation_item_delete_event_param.py +3 -0
- aimlapi/types/realtime/conversation_item_deleted_event.py +3 -0
- aimlapi/types/realtime/conversation_item_done.py +3 -0
- aimlapi/types/realtime/conversation_item_input_audio_transcription_completed_event.py +3 -0
- aimlapi/types/realtime/conversation_item_input_audio_transcription_delta_event.py +3 -0
- aimlapi/types/realtime/conversation_item_input_audio_transcription_failed_event.py +3 -0
- aimlapi/types/realtime/conversation_item_input_audio_transcription_segment.py +3 -0
- aimlapi/types/realtime/conversation_item_param.py +3 -0
- aimlapi/types/realtime/conversation_item_retrieve_event.py +3 -0
- aimlapi/types/realtime/conversation_item_retrieve_event_param.py +3 -0
- aimlapi/types/realtime/conversation_item_truncate_event.py +3 -0
- aimlapi/types/realtime/conversation_item_truncate_event_param.py +3 -0
- aimlapi/types/realtime/conversation_item_truncated_event.py +3 -0
- aimlapi/types/realtime/input_audio_buffer_append_event.py +3 -0
- aimlapi/types/realtime/input_audio_buffer_append_event_param.py +3 -0
- aimlapi/types/realtime/input_audio_buffer_clear_event.py +3 -0
- aimlapi/types/realtime/input_audio_buffer_clear_event_param.py +3 -0
- aimlapi/types/realtime/input_audio_buffer_cleared_event.py +3 -0
- aimlapi/types/realtime/input_audio_buffer_commit_event.py +3 -0
- aimlapi/types/realtime/input_audio_buffer_commit_event_param.py +3 -0
- aimlapi/types/realtime/input_audio_buffer_committed_event.py +3 -0
- aimlapi/types/realtime/input_audio_buffer_speech_started_event.py +3 -0
- aimlapi/types/realtime/input_audio_buffer_speech_stopped_event.py +3 -0
- aimlapi/types/realtime/input_audio_buffer_timeout_triggered.py +3 -0
- aimlapi/types/realtime/log_prob_properties.py +3 -0
- aimlapi/types/realtime/mcp_list_tools_completed.py +3 -0
- aimlapi/types/realtime/mcp_list_tools_failed.py +3 -0
- aimlapi/types/realtime/mcp_list_tools_in_progress.py +3 -0
- aimlapi/types/realtime/noise_reduction_type.py +3 -0
- aimlapi/types/realtime/output_audio_buffer_clear_event.py +3 -0
- aimlapi/types/realtime/output_audio_buffer_clear_event_param.py +3 -0
- aimlapi/types/realtime/rate_limits_updated_event.py +3 -0
- aimlapi/types/realtime/realtime_audio_config.py +3 -0
- aimlapi/types/realtime/realtime_audio_config_input.py +3 -0
- aimlapi/types/realtime/realtime_audio_config_input_param.py +3 -0
- aimlapi/types/realtime/realtime_audio_config_output.py +3 -0
- aimlapi/types/realtime/realtime_audio_config_output_param.py +3 -0
- aimlapi/types/realtime/realtime_audio_config_param.py +3 -0
- aimlapi/types/realtime/realtime_audio_formats.py +3 -0
- aimlapi/types/realtime/realtime_audio_formats_param.py +3 -0
- aimlapi/types/realtime/realtime_audio_input_turn_detection.py +3 -0
- aimlapi/types/realtime/realtime_audio_input_turn_detection_param.py +3 -0
- aimlapi/types/realtime/realtime_client_event.py +3 -0
- aimlapi/types/realtime/realtime_client_event_param.py +3 -0
- aimlapi/types/realtime/realtime_connect_params.py +3 -0
- aimlapi/types/realtime/realtime_conversation_item_assistant_message.py +3 -0
- aimlapi/types/realtime/realtime_conversation_item_assistant_message_param.py +3 -0
- aimlapi/types/realtime/realtime_conversation_item_function_call.py +3 -0
- aimlapi/types/realtime/realtime_conversation_item_function_call_output.py +3 -0
- aimlapi/types/realtime/realtime_conversation_item_function_call_output_param.py +3 -0
- aimlapi/types/realtime/realtime_conversation_item_function_call_param.py +3 -0
- aimlapi/types/realtime/realtime_conversation_item_system_message.py +3 -0
- aimlapi/types/realtime/realtime_conversation_item_system_message_param.py +3 -0
- aimlapi/types/realtime/realtime_conversation_item_user_message.py +3 -0
- aimlapi/types/realtime/realtime_conversation_item_user_message_param.py +3 -0
- aimlapi/types/realtime/realtime_error.py +3 -0
- aimlapi/types/realtime/realtime_error_event.py +3 -0
- aimlapi/types/realtime/realtime_function_tool.py +3 -0
- aimlapi/types/realtime/realtime_function_tool_param.py +3 -0
- aimlapi/types/realtime/realtime_mcp_approval_request.py +3 -0
- aimlapi/types/realtime/realtime_mcp_approval_request_param.py +3 -0
- aimlapi/types/realtime/realtime_mcp_approval_response.py +3 -0
- aimlapi/types/realtime/realtime_mcp_approval_response_param.py +3 -0
- aimlapi/types/realtime/realtime_mcp_list_tools.py +3 -0
- aimlapi/types/realtime/realtime_mcp_list_tools_param.py +3 -0
- aimlapi/types/realtime/realtime_mcp_protocol_error.py +3 -0
- aimlapi/types/realtime/realtime_mcp_protocol_error_param.py +3 -0
- aimlapi/types/realtime/realtime_mcp_tool_call.py +3 -0
- aimlapi/types/realtime/realtime_mcp_tool_call_param.py +3 -0
- aimlapi/types/realtime/realtime_mcp_tool_execution_error.py +3 -0
- aimlapi/types/realtime/realtime_mcp_tool_execution_error_param.py +3 -0
- aimlapi/types/realtime/realtime_mcphttp_error.py +3 -0
- aimlapi/types/realtime/realtime_mcphttp_error_param.py +3 -0
- aimlapi/types/realtime/realtime_response.py +3 -0
- aimlapi/types/realtime/realtime_response_create_audio_output.py +3 -0
- aimlapi/types/realtime/realtime_response_create_audio_output_param.py +3 -0
- aimlapi/types/realtime/realtime_response_create_mcp_tool.py +3 -0
- aimlapi/types/realtime/realtime_response_create_mcp_tool_param.py +3 -0
- aimlapi/types/realtime/realtime_response_create_params.py +3 -0
- aimlapi/types/realtime/realtime_response_create_params_param.py +3 -0
- aimlapi/types/realtime/realtime_response_status.py +3 -0
- aimlapi/types/realtime/realtime_response_usage.py +3 -0
- aimlapi/types/realtime/realtime_response_usage_input_token_details.py +3 -0
- aimlapi/types/realtime/realtime_response_usage_output_token_details.py +3 -0
- aimlapi/types/realtime/realtime_server_event.py +3 -0
- aimlapi/types/realtime/realtime_session_client_secret.py +3 -0
- aimlapi/types/realtime/realtime_session_create_request.py +3 -0
- aimlapi/types/realtime/realtime_session_create_request_param.py +3 -0
- aimlapi/types/realtime/realtime_session_create_response.py +3 -0
- aimlapi/types/realtime/realtime_tool_choice_config.py +3 -0
- aimlapi/types/realtime/realtime_tool_choice_config_param.py +3 -0
- aimlapi/types/realtime/realtime_tools_config.py +3 -0
- aimlapi/types/realtime/realtime_tools_config_param.py +3 -0
- aimlapi/types/realtime/realtime_tools_config_union.py +3 -0
- aimlapi/types/realtime/realtime_tools_config_union_param.py +3 -0
- aimlapi/types/realtime/realtime_tracing_config.py +3 -0
- aimlapi/types/realtime/realtime_tracing_config_param.py +3 -0
- aimlapi/types/realtime/realtime_transcription_session_audio.py +3 -0
- aimlapi/types/realtime/realtime_transcription_session_audio_input.py +3 -0
- aimlapi/types/realtime/realtime_transcription_session_audio_input_param.py +3 -0
- aimlapi/types/realtime/realtime_transcription_session_audio_input_turn_detection.py +3 -0
- aimlapi/types/realtime/realtime_transcription_session_audio_input_turn_detection_param.py +3 -0
- aimlapi/types/realtime/realtime_transcription_session_audio_param.py +3 -0
- aimlapi/types/realtime/realtime_transcription_session_create_request.py +3 -0
- aimlapi/types/realtime/realtime_transcription_session_create_request_param.py +3 -0
- aimlapi/types/realtime/realtime_transcription_session_create_response.py +3 -0
- aimlapi/types/realtime/realtime_transcription_session_turn_detection.py +3 -0
- aimlapi/types/realtime/realtime_truncation.py +3 -0
- aimlapi/types/realtime/realtime_truncation_param.py +3 -0
- aimlapi/types/realtime/realtime_truncation_retention_ratio.py +3 -0
- aimlapi/types/realtime/realtime_truncation_retention_ratio_param.py +3 -0
- aimlapi/types/realtime/response_audio_delta_event.py +3 -0
- aimlapi/types/realtime/response_audio_done_event.py +3 -0
- aimlapi/types/realtime/response_audio_transcript_delta_event.py +3 -0
- aimlapi/types/realtime/response_audio_transcript_done_event.py +3 -0
- aimlapi/types/realtime/response_cancel_event.py +3 -0
- aimlapi/types/realtime/response_cancel_event_param.py +3 -0
- aimlapi/types/realtime/response_content_part_added_event.py +3 -0
- aimlapi/types/realtime/response_content_part_done_event.py +3 -0
- aimlapi/types/realtime/response_create_event.py +3 -0
- aimlapi/types/realtime/response_create_event_param.py +3 -0
- aimlapi/types/realtime/response_created_event.py +3 -0
- aimlapi/types/realtime/response_done_event.py +3 -0
- aimlapi/types/realtime/response_function_call_arguments_delta_event.py +3 -0
- aimlapi/types/realtime/response_function_call_arguments_done_event.py +3 -0
- aimlapi/types/realtime/response_mcp_call_arguments_delta.py +3 -0
- aimlapi/types/realtime/response_mcp_call_arguments_done.py +3 -0
- aimlapi/types/realtime/response_mcp_call_completed.py +3 -0
- aimlapi/types/realtime/response_mcp_call_failed.py +3 -0
- aimlapi/types/realtime/response_mcp_call_in_progress.py +3 -0
- aimlapi/types/realtime/response_output_item_added_event.py +3 -0
- aimlapi/types/realtime/response_output_item_done_event.py +3 -0
- aimlapi/types/realtime/response_text_delta_event.py +3 -0
- aimlapi/types/realtime/response_text_done_event.py +3 -0
- aimlapi/types/realtime/session_created_event.py +3 -0
- aimlapi/types/realtime/session_update_event.py +3 -0
- aimlapi/types/realtime/session_update_event_param.py +3 -0
- aimlapi/types/realtime/session_updated_event.py +3 -0
- aimlapi/types/responses/__init__.py +3 -0
- aimlapi/types/responses/computer_tool.py +3 -0
- aimlapi/types/responses/computer_tool_param.py +3 -0
- aimlapi/types/responses/custom_tool.py +3 -0
- aimlapi/types/responses/custom_tool_param.py +3 -0
- aimlapi/types/responses/easy_input_message.py +3 -0
- aimlapi/types/responses/easy_input_message_param.py +3 -0
- aimlapi/types/responses/file_search_tool.py +3 -0
- aimlapi/types/responses/file_search_tool_param.py +3 -0
- aimlapi/types/responses/function_tool.py +3 -0
- aimlapi/types/responses/function_tool_param.py +3 -0
- aimlapi/types/responses/input_item_list_params.py +3 -0
- aimlapi/types/responses/input_token_count_params.py +3 -0
- aimlapi/types/responses/input_token_count_response.py +3 -0
- aimlapi/types/responses/parsed_response.py +3 -0
- aimlapi/types/responses/response.py +3 -0
- aimlapi/types/responses/response_audio_delta_event.py +3 -0
- aimlapi/types/responses/response_audio_done_event.py +3 -0
- aimlapi/types/responses/response_audio_transcript_delta_event.py +3 -0
- aimlapi/types/responses/response_audio_transcript_done_event.py +3 -0
- aimlapi/types/responses/response_code_interpreter_call_code_delta_event.py +3 -0
- aimlapi/types/responses/response_code_interpreter_call_code_done_event.py +3 -0
- aimlapi/types/responses/response_code_interpreter_call_completed_event.py +3 -0
- aimlapi/types/responses/response_code_interpreter_call_in_progress_event.py +3 -0
- aimlapi/types/responses/response_code_interpreter_call_interpreting_event.py +3 -0
- aimlapi/types/responses/response_code_interpreter_tool_call.py +3 -0
- aimlapi/types/responses/response_code_interpreter_tool_call_param.py +3 -0
- aimlapi/types/responses/response_completed_event.py +3 -0
- aimlapi/types/responses/response_computer_tool_call.py +3 -0
- aimlapi/types/responses/response_computer_tool_call_output_item.py +3 -0
- aimlapi/types/responses/response_computer_tool_call_output_screenshot.py +3 -0
- aimlapi/types/responses/response_computer_tool_call_output_screenshot_param.py +3 -0
- aimlapi/types/responses/response_computer_tool_call_param.py +3 -0
- aimlapi/types/responses/response_content_part_added_event.py +3 -0
- aimlapi/types/responses/response_content_part_done_event.py +3 -0
- aimlapi/types/responses/response_conversation_param.py +3 -0
- aimlapi/types/responses/response_create_params.py +3 -0
- aimlapi/types/responses/response_created_event.py +3 -0
- aimlapi/types/responses/response_custom_tool_call.py +3 -0
- aimlapi/types/responses/response_custom_tool_call_input_delta_event.py +3 -0
- aimlapi/types/responses/response_custom_tool_call_input_done_event.py +3 -0
- aimlapi/types/responses/response_custom_tool_call_output.py +3 -0
- aimlapi/types/responses/response_custom_tool_call_output_param.py +3 -0
- aimlapi/types/responses/response_custom_tool_call_param.py +3 -0
- aimlapi/types/responses/response_error.py +3 -0
- aimlapi/types/responses/response_error_event.py +3 -0
- aimlapi/types/responses/response_failed_event.py +3 -0
- aimlapi/types/responses/response_file_search_call_completed_event.py +3 -0
- aimlapi/types/responses/response_file_search_call_in_progress_event.py +3 -0
- aimlapi/types/responses/response_file_search_call_searching_event.py +3 -0
- aimlapi/types/responses/response_file_search_tool_call.py +3 -0
- aimlapi/types/responses/response_file_search_tool_call_param.py +3 -0
- aimlapi/types/responses/response_format_text_config.py +3 -0
- aimlapi/types/responses/response_format_text_config_param.py +3 -0
- aimlapi/types/responses/response_format_text_json_schema_config.py +3 -0
- aimlapi/types/responses/response_format_text_json_schema_config_param.py +3 -0
- aimlapi/types/responses/response_function_call_arguments_delta_event.py +3 -0
- aimlapi/types/responses/response_function_call_arguments_done_event.py +3 -0
- aimlapi/types/responses/response_function_call_output_item.py +3 -0
- aimlapi/types/responses/response_function_call_output_item_list.py +3 -0
- aimlapi/types/responses/response_function_call_output_item_list_param.py +3 -0
- aimlapi/types/responses/response_function_call_output_item_param.py +3 -0
- aimlapi/types/responses/response_function_tool_call.py +3 -0
- aimlapi/types/responses/response_function_tool_call_item.py +3 -0
- aimlapi/types/responses/response_function_tool_call_output_item.py +3 -0
- aimlapi/types/responses/response_function_tool_call_param.py +3 -0
- aimlapi/types/responses/response_function_web_search.py +3 -0
- aimlapi/types/responses/response_function_web_search_param.py +3 -0
- aimlapi/types/responses/response_image_gen_call_completed_event.py +3 -0
- aimlapi/types/responses/response_image_gen_call_generating_event.py +3 -0
- aimlapi/types/responses/response_image_gen_call_in_progress_event.py +3 -0
- aimlapi/types/responses/response_image_gen_call_partial_image_event.py +3 -0
- aimlapi/types/responses/response_in_progress_event.py +3 -0
- aimlapi/types/responses/response_includable.py +3 -0
- aimlapi/types/responses/response_incomplete_event.py +3 -0
- aimlapi/types/responses/response_input_audio.py +3 -0
- aimlapi/types/responses/response_input_audio_param.py +3 -0
- aimlapi/types/responses/response_input_content.py +3 -0
- aimlapi/types/responses/response_input_content_param.py +3 -0
- aimlapi/types/responses/response_input_file.py +3 -0
- aimlapi/types/responses/response_input_file_content.py +3 -0
- aimlapi/types/responses/response_input_file_content_param.py +3 -0
- aimlapi/types/responses/response_input_file_param.py +3 -0
- aimlapi/types/responses/response_input_image.py +3 -0
- aimlapi/types/responses/response_input_image_content.py +3 -0
- aimlapi/types/responses/response_input_image_content_param.py +3 -0
- aimlapi/types/responses/response_input_image_param.py +3 -0
- aimlapi/types/responses/response_input_item.py +3 -0
- aimlapi/types/responses/response_input_item_param.py +3 -0
- aimlapi/types/responses/response_input_message_content_list.py +3 -0
- aimlapi/types/responses/response_input_message_content_list_param.py +3 -0
- aimlapi/types/responses/response_input_message_item.py +3 -0
- aimlapi/types/responses/response_input_param.py +3 -0
- aimlapi/types/responses/response_input_text.py +3 -0
- aimlapi/types/responses/response_input_text_content.py +3 -0
- aimlapi/types/responses/response_input_text_content_param.py +3 -0
- aimlapi/types/responses/response_input_text_param.py +3 -0
- aimlapi/types/responses/response_item.py +3 -0
- aimlapi/types/responses/response_item_list.py +3 -0
- aimlapi/types/responses/response_mcp_call_arguments_delta_event.py +3 -0
- aimlapi/types/responses/response_mcp_call_arguments_done_event.py +3 -0
- aimlapi/types/responses/response_mcp_call_completed_event.py +3 -0
- aimlapi/types/responses/response_mcp_call_failed_event.py +3 -0
- aimlapi/types/responses/response_mcp_call_in_progress_event.py +3 -0
- aimlapi/types/responses/response_mcp_list_tools_completed_event.py +3 -0
- aimlapi/types/responses/response_mcp_list_tools_failed_event.py +3 -0
- aimlapi/types/responses/response_mcp_list_tools_in_progress_event.py +3 -0
- aimlapi/types/responses/response_output_item.py +3 -0
- aimlapi/types/responses/response_output_item_added_event.py +3 -0
- aimlapi/types/responses/response_output_item_done_event.py +3 -0
- aimlapi/types/responses/response_output_message.py +3 -0
- aimlapi/types/responses/response_output_message_param.py +3 -0
- aimlapi/types/responses/response_output_refusal.py +3 -0
- aimlapi/types/responses/response_output_refusal_param.py +3 -0
- aimlapi/types/responses/response_output_text.py +3 -0
- aimlapi/types/responses/response_output_text_annotation_added_event.py +3 -0
- aimlapi/types/responses/response_output_text_param.py +3 -0
- aimlapi/types/responses/response_prompt.py +3 -0
- aimlapi/types/responses/response_prompt_param.py +3 -0
- aimlapi/types/responses/response_queued_event.py +3 -0
- aimlapi/types/responses/response_reasoning_item.py +3 -0
- aimlapi/types/responses/response_reasoning_item_param.py +3 -0
- aimlapi/types/responses/response_reasoning_summary_part_added_event.py +3 -0
- aimlapi/types/responses/response_reasoning_summary_part_done_event.py +3 -0
- aimlapi/types/responses/response_reasoning_summary_text_delta_event.py +3 -0
- aimlapi/types/responses/response_reasoning_summary_text_done_event.py +3 -0
- aimlapi/types/responses/response_reasoning_text_delta_event.py +3 -0
- aimlapi/types/responses/response_reasoning_text_done_event.py +3 -0
- aimlapi/types/responses/response_refusal_delta_event.py +3 -0
- aimlapi/types/responses/response_refusal_done_event.py +3 -0
- aimlapi/types/responses/response_retrieve_params.py +3 -0
- aimlapi/types/responses/response_status.py +3 -0
- aimlapi/types/responses/response_stream_event.py +3 -0
- aimlapi/types/responses/response_text_config.py +3 -0
- aimlapi/types/responses/response_text_config_param.py +3 -0
- aimlapi/types/responses/response_text_delta_event.py +3 -0
- aimlapi/types/responses/response_text_done_event.py +3 -0
- aimlapi/types/responses/response_usage.py +3 -0
- aimlapi/types/responses/response_web_search_call_completed_event.py +3 -0
- aimlapi/types/responses/response_web_search_call_in_progress_event.py +3 -0
- aimlapi/types/responses/response_web_search_call_searching_event.py +3 -0
- aimlapi/types/responses/tool.py +3 -0
- aimlapi/types/responses/tool_choice_allowed.py +3 -0
- aimlapi/types/responses/tool_choice_allowed_param.py +3 -0
- aimlapi/types/responses/tool_choice_custom.py +3 -0
- aimlapi/types/responses/tool_choice_custom_param.py +3 -0
- aimlapi/types/responses/tool_choice_function.py +3 -0
- aimlapi/types/responses/tool_choice_function_param.py +3 -0
- aimlapi/types/responses/tool_choice_mcp.py +3 -0
- aimlapi/types/responses/tool_choice_mcp_param.py +3 -0
- aimlapi/types/responses/tool_choice_options.py +3 -0
- aimlapi/types/responses/tool_choice_types.py +3 -0
- aimlapi/types/responses/tool_choice_types_param.py +3 -0
- aimlapi/types/responses/tool_param.py +3 -0
- aimlapi/types/responses/web_search_preview_tool.py +3 -0
- aimlapi/types/responses/web_search_preview_tool_param.py +3 -0
- aimlapi/types/responses/web_search_tool.py +3 -0
- aimlapi/types/responses/web_search_tool_param.py +3 -0
- aimlapi/types/shared/__init__.py +3 -0
- aimlapi/types/shared/all_models.py +3 -0
- aimlapi/types/shared/chat_model.py +3 -0
- aimlapi/types/shared/comparison_filter.py +3 -0
- aimlapi/types/shared/compound_filter.py +3 -0
- aimlapi/types/shared/custom_tool_input_format.py +3 -0
- aimlapi/types/shared/error_object.py +3 -0
- aimlapi/types/shared/function_definition.py +3 -0
- aimlapi/types/shared/function_parameters.py +3 -0
- aimlapi/types/shared/metadata.py +3 -0
- aimlapi/types/shared/reasoning.py +3 -0
- aimlapi/types/shared/reasoning_effort.py +3 -0
- aimlapi/types/shared/response_format_json_object.py +3 -0
- aimlapi/types/shared/response_format_json_schema.py +3 -0
- aimlapi/types/shared/response_format_text.py +3 -0
- aimlapi/types/shared/response_format_text_grammar.py +3 -0
- aimlapi/types/shared/response_format_text_python.py +3 -0
- aimlapi/types/shared/responses_model.py +3 -0
- aimlapi/types/shared_params/__init__.py +3 -0
- aimlapi/types/shared_params/chat_model.py +3 -0
- aimlapi/types/shared_params/comparison_filter.py +3 -0
- aimlapi/types/shared_params/compound_filter.py +3 -0
- aimlapi/types/shared_params/custom_tool_input_format.py +3 -0
- aimlapi/types/shared_params/function_definition.py +3 -0
- aimlapi/types/shared_params/function_parameters.py +3 -0
- aimlapi/types/shared_params/metadata.py +3 -0
- aimlapi/types/shared_params/reasoning.py +3 -0
- aimlapi/types/shared_params/reasoning_effort.py +3 -0
- aimlapi/types/shared_params/response_format_json_object.py +3 -0
- aimlapi/types/shared_params/response_format_json_schema.py +3 -0
- aimlapi/types/shared_params/response_format_text.py +3 -0
- aimlapi/types/shared_params/responses_model.py +3 -0
- aimlapi/types/static_file_chunking_strategy.py +3 -0
- aimlapi/types/static_file_chunking_strategy_object.py +3 -0
- aimlapi/types/static_file_chunking_strategy_object_param.py +3 -0
- aimlapi/types/static_file_chunking_strategy_param.py +3 -0
- aimlapi/types/upload.py +3 -0
- aimlapi/types/upload_complete_params.py +3 -0
- aimlapi/types/upload_create_params.py +3 -0
- aimlapi/types/uploads/__init__.py +3 -0
- aimlapi/types/uploads/part_create_params.py +3 -0
- aimlapi/types/uploads/upload_part.py +3 -0
- aimlapi/types/vector_store.py +3 -0
- aimlapi/types/vector_store_create_params.py +3 -0
- aimlapi/types/vector_store_deleted.py +3 -0
- aimlapi/types/vector_store_list_params.py +3 -0
- aimlapi/types/vector_store_search_params.py +3 -0
- aimlapi/types/vector_store_search_response.py +3 -0
- aimlapi/types/vector_store_update_params.py +3 -0
- aimlapi/types/vector_stores/__init__.py +3 -0
- aimlapi/types/vector_stores/file_batch_create_params.py +3 -0
- aimlapi/types/vector_stores/file_batch_list_files_params.py +3 -0
- aimlapi/types/vector_stores/file_content_response.py +3 -0
- aimlapi/types/vector_stores/file_create_params.py +3 -0
- aimlapi/types/vector_stores/file_list_params.py +3 -0
- aimlapi/types/vector_stores/file_update_params.py +3 -0
- aimlapi/types/vector_stores/vector_store_file.py +3 -0
- aimlapi/types/vector_stores/vector_store_file_batch.py +3 -0
- aimlapi/types/vector_stores/vector_store_file_deleted.py +3 -0
- aimlapi/types/video.py +3 -0
- aimlapi/types/video_create_error.py +3 -0
- aimlapi/types/video_create_params.py +3 -0
- aimlapi/types/video_delete_response.py +3 -0
- aimlapi/types/video_download_content_params.py +3 -0
- aimlapi/types/video_list_params.py +3 -0
- aimlapi/types/video_model.py +3 -0
- aimlapi/types/video_remix_params.py +3 -0
- aimlapi/types/video_seconds.py +3 -0
- aimlapi/types/video_size.py +3 -0
- aimlapi/types/webhooks/__init__.py +3 -0
- aimlapi/types/webhooks/batch_cancelled_webhook_event.py +3 -0
- aimlapi/types/webhooks/batch_completed_webhook_event.py +3 -0
- aimlapi/types/webhooks/batch_expired_webhook_event.py +3 -0
- aimlapi/types/webhooks/batch_failed_webhook_event.py +3 -0
- aimlapi/types/webhooks/eval_run_canceled_webhook_event.py +3 -0
- aimlapi/types/webhooks/eval_run_failed_webhook_event.py +3 -0
- aimlapi/types/webhooks/eval_run_succeeded_webhook_event.py +3 -0
- aimlapi/types/webhooks/fine_tuning_job_cancelled_webhook_event.py +3 -0
- aimlapi/types/webhooks/fine_tuning_job_failed_webhook_event.py +3 -0
- aimlapi/types/webhooks/fine_tuning_job_succeeded_webhook_event.py +3 -0
- aimlapi/types/webhooks/realtime_call_incoming_webhook_event.py +3 -0
- aimlapi/types/webhooks/response_cancelled_webhook_event.py +3 -0
- aimlapi/types/webhooks/response_completed_webhook_event.py +3 -0
- aimlapi/types/webhooks/response_failed_webhook_event.py +3 -0
- aimlapi/types/webhooks/response_incomplete_webhook_event.py +3 -0
- aimlapi/types/webhooks/unwrap_webhook_event.py +3 -0
- aimlapi/types/websocket_connection_options.py +3 -0
- aimlapi/version.py +3 -0
- aimlapi_sdk_python-2.8.1b0.dist-info/METADATA +886 -0
- aimlapi_sdk_python-2.8.1b0.dist-info/RECORD +1958 -0
- aimlapi_sdk_python-2.8.1b0.dist-info/WHEEL +4 -0
- aimlapi_sdk_python-2.8.1b0.dist-info/entry_points.txt +2 -0
- aimlapi_sdk_python-2.8.1b0.dist-info/licenses/LICENSE +201 -0
- openai/__init__.py +395 -0
- openai/__main__.py +3 -0
- openai/_base_client.py +2027 -0
- openai/_client.py +1272 -0
- openai/_compat.py +231 -0
- openai/_constants.py +14 -0
- openai/_exceptions.py +161 -0
- openai/_extras/__init__.py +3 -0
- openai/_extras/_common.py +21 -0
- openai/_extras/numpy_proxy.py +37 -0
- openai/_extras/pandas_proxy.py +28 -0
- openai/_extras/sounddevice_proxy.py +28 -0
- openai/_files.py +123 -0
- openai/_legacy_response.py +488 -0
- openai/_models.py +897 -0
- openai/_module_client.py +173 -0
- openai/_qs.py +150 -0
- openai/_resource.py +43 -0
- openai/_response.py +848 -0
- openai/_streaming.py +408 -0
- openai/_types.py +264 -0
- openai/_utils/__init__.py +67 -0
- openai/_utils/_compat.py +45 -0
- openai/_utils/_datetime_parse.py +136 -0
- openai/_utils/_logs.py +42 -0
- openai/_utils/_proxy.py +65 -0
- openai/_utils/_reflection.py +45 -0
- openai/_utils/_resources_proxy.py +24 -0
- openai/_utils/_streams.py +12 -0
- openai/_utils/_sync.py +58 -0
- openai/_utils/_transform.py +457 -0
- openai/_utils/_typing.py +156 -0
- openai/_utils/_utils.py +437 -0
- openai/_version.py +4 -0
- openai/cli/__init__.py +1 -0
- openai/cli/_api/__init__.py +1 -0
- openai/cli/_api/_main.py +17 -0
- openai/cli/_api/audio.py +108 -0
- openai/cli/_api/chat/__init__.py +13 -0
- openai/cli/_api/chat/completions.py +160 -0
- openai/cli/_api/completions.py +173 -0
- openai/cli/_api/files.py +80 -0
- openai/cli/_api/fine_tuning/__init__.py +13 -0
- openai/cli/_api/fine_tuning/jobs.py +170 -0
- openai/cli/_api/image.py +139 -0
- openai/cli/_api/models.py +45 -0
- openai/cli/_cli.py +233 -0
- openai/cli/_errors.py +21 -0
- openai/cli/_models.py +17 -0
- openai/cli/_progress.py +59 -0
- openai/cli/_tools/__init__.py +1 -0
- openai/cli/_tools/_main.py +17 -0
- openai/cli/_tools/fine_tunes.py +63 -0
- openai/cli/_tools/migrate.py +164 -0
- openai/cli/_utils.py +45 -0
- openai/helpers/__init__.py +4 -0
- openai/helpers/local_audio_player.py +165 -0
- openai/helpers/microphone.py +100 -0
- openai/lib/.keep +4 -0
- openai/lib/__init__.py +2 -0
- openai/lib/_old_api.py +72 -0
- openai/lib/_parsing/__init__.py +12 -0
- openai/lib/_parsing/_completions.py +305 -0
- openai/lib/_parsing/_responses.py +180 -0
- openai/lib/_pydantic.py +155 -0
- openai/lib/_realtime.py +92 -0
- openai/lib/_tools.py +66 -0
- openai/lib/_validators.py +809 -0
- openai/lib/azure.py +647 -0
- openai/lib/streaming/__init__.py +8 -0
- openai/lib/streaming/_assistants.py +1038 -0
- openai/lib/streaming/_deltas.py +64 -0
- openai/lib/streaming/chat/__init__.py +27 -0
- openai/lib/streaming/chat/_completions.py +770 -0
- openai/lib/streaming/chat/_events.py +123 -0
- openai/lib/streaming/chat/_types.py +20 -0
- openai/lib/streaming/responses/__init__.py +13 -0
- openai/lib/streaming/responses/_events.py +148 -0
- openai/lib/streaming/responses/_responses.py +372 -0
- openai/lib/streaming/responses/_types.py +10 -0
- openai/pagination.py +190 -0
- openai/py.typed +0 -0
- openai/resources/__init__.py +229 -0
- openai/resources/audio/__init__.py +61 -0
- openai/resources/audio/audio.py +166 -0
- openai/resources/audio/speech.py +255 -0
- openai/resources/audio/transcriptions.py +980 -0
- openai/resources/audio/translations.py +367 -0
- openai/resources/batches.py +530 -0
- openai/resources/beta/__init__.py +61 -0
- openai/resources/beta/assistants.py +1049 -0
- openai/resources/beta/beta.py +187 -0
- openai/resources/beta/chatkit/__init__.py +47 -0
- openai/resources/beta/chatkit/chatkit.py +134 -0
- openai/resources/beta/chatkit/sessions.py +301 -0
- openai/resources/beta/chatkit/threads.py +521 -0
- openai/resources/beta/realtime/__init__.py +47 -0
- openai/resources/beta/realtime/realtime.py +1094 -0
- openai/resources/beta/realtime/sessions.py +424 -0
- openai/resources/beta/realtime/transcription_sessions.py +282 -0
- openai/resources/beta/threads/__init__.py +47 -0
- openai/resources/beta/threads/messages.py +718 -0
- openai/resources/beta/threads/runs/__init__.py +33 -0
- openai/resources/beta/threads/runs/runs.py +3122 -0
- openai/resources/beta/threads/runs/steps.py +399 -0
- openai/resources/beta/threads/threads.py +1935 -0
- openai/resources/chat/__init__.py +33 -0
- openai/resources/chat/chat.py +102 -0
- openai/resources/chat/completions/__init__.py +33 -0
- openai/resources/chat/completions/completions.py +3143 -0
- openai/resources/chat/completions/messages.py +212 -0
- openai/resources/completions.py +1160 -0
- openai/resources/containers/__init__.py +33 -0
- openai/resources/containers/containers.py +510 -0
- openai/resources/containers/files/__init__.py +33 -0
- openai/resources/containers/files/content.py +173 -0
- openai/resources/containers/files/files.py +545 -0
- openai/resources/conversations/__init__.py +33 -0
- openai/resources/conversations/conversations.py +486 -0
- openai/resources/conversations/items.py +557 -0
- openai/resources/embeddings.py +298 -0
- openai/resources/evals/__init__.py +33 -0
- openai/resources/evals/evals.py +662 -0
- openai/resources/evals/runs/__init__.py +33 -0
- openai/resources/evals/runs/output_items.py +315 -0
- openai/resources/evals/runs/runs.py +634 -0
- openai/resources/files.py +770 -0
- openai/resources/fine_tuning/__init__.py +61 -0
- openai/resources/fine_tuning/alpha/__init__.py +33 -0
- openai/resources/fine_tuning/alpha/alpha.py +102 -0
- openai/resources/fine_tuning/alpha/graders.py +282 -0
- openai/resources/fine_tuning/checkpoints/__init__.py +33 -0
- openai/resources/fine_tuning/checkpoints/checkpoints.py +102 -0
- openai/resources/fine_tuning/checkpoints/permissions.py +418 -0
- openai/resources/fine_tuning/fine_tuning.py +166 -0
- openai/resources/fine_tuning/jobs/__init__.py +33 -0
- openai/resources/fine_tuning/jobs/checkpoints.py +199 -0
- openai/resources/fine_tuning/jobs/jobs.py +918 -0
- openai/resources/images.py +1858 -0
- openai/resources/models.py +306 -0
- openai/resources/moderations.py +197 -0
- openai/resources/realtime/__init__.py +47 -0
- openai/resources/realtime/calls.py +764 -0
- openai/resources/realtime/client_secrets.py +189 -0
- openai/resources/realtime/realtime.py +1079 -0
- openai/resources/responses/__init__.py +47 -0
- openai/resources/responses/input_items.py +226 -0
- openai/resources/responses/input_tokens.py +309 -0
- openai/resources/responses/responses.py +3130 -0
- openai/resources/uploads/__init__.py +33 -0
- openai/resources/uploads/parts.py +205 -0
- openai/resources/uploads/uploads.py +719 -0
- openai/resources/vector_stores/__init__.py +47 -0
- openai/resources/vector_stores/file_batches.py +813 -0
- openai/resources/vector_stores/files.py +939 -0
- openai/resources/vector_stores/vector_stores.py +875 -0
- openai/resources/videos.py +847 -0
- openai/resources/webhooks.py +210 -0
- openai/types/__init__.py +115 -0
- openai/types/audio/__init__.py +23 -0
- openai/types/audio/speech_create_params.py +57 -0
- openai/types/audio/speech_model.py +7 -0
- openai/types/audio/transcription.py +71 -0
- openai/types/audio/transcription_create_params.py +172 -0
- openai/types/audio/transcription_create_response.py +12 -0
- openai/types/audio/transcription_diarized.py +63 -0
- openai/types/audio/transcription_diarized_segment.py +32 -0
- openai/types/audio/transcription_include.py +7 -0
- openai/types/audio/transcription_segment.py +49 -0
- openai/types/audio/transcription_stream_event.py +16 -0
- openai/types/audio/transcription_text_delta_event.py +41 -0
- openai/types/audio/transcription_text_done_event.py +63 -0
- openai/types/audio/transcription_text_segment_event.py +27 -0
- openai/types/audio/transcription_verbose.py +38 -0
- openai/types/audio/transcription_word.py +16 -0
- openai/types/audio/translation.py +9 -0
- openai/types/audio/translation_create_params.py +49 -0
- openai/types/audio/translation_create_response.py +11 -0
- openai/types/audio/translation_verbose.py +22 -0
- openai/types/audio_model.py +7 -0
- openai/types/audio_response_format.py +7 -0
- openai/types/auto_file_chunking_strategy_param.py +12 -0
- openai/types/batch.py +104 -0
- openai/types/batch_create_params.py +72 -0
- openai/types/batch_error.py +21 -0
- openai/types/batch_list_params.py +24 -0
- openai/types/batch_request_counts.py +16 -0
- openai/types/batch_usage.py +35 -0
- openai/types/beta/__init__.py +34 -0
- openai/types/beta/assistant.py +134 -0
- openai/types/beta/assistant_create_params.py +220 -0
- openai/types/beta/assistant_deleted.py +15 -0
- openai/types/beta/assistant_list_params.py +39 -0
- openai/types/beta/assistant_response_format_option.py +14 -0
- openai/types/beta/assistant_response_format_option_param.py +16 -0
- openai/types/beta/assistant_stream_event.py +294 -0
- openai/types/beta/assistant_tool.py +15 -0
- openai/types/beta/assistant_tool_choice.py +16 -0
- openai/types/beta/assistant_tool_choice_function.py +10 -0
- openai/types/beta/assistant_tool_choice_function_param.py +12 -0
- openai/types/beta/assistant_tool_choice_option.py +10 -0
- openai/types/beta/assistant_tool_choice_option_param.py +12 -0
- openai/types/beta/assistant_tool_choice_param.py +16 -0
- openai/types/beta/assistant_tool_param.py +14 -0
- openai/types/beta/assistant_update_params.py +191 -0
- openai/types/beta/chat/__init__.py +3 -0
- openai/types/beta/chatkit/__init__.py +32 -0
- openai/types/beta/chatkit/chat_session.py +43 -0
- openai/types/beta/chatkit/chat_session_automatic_thread_titling.py +10 -0
- openai/types/beta/chatkit/chat_session_chatkit_configuration.py +19 -0
- openai/types/beta/chatkit/chat_session_chatkit_configuration_param.py +59 -0
- openai/types/beta/chatkit/chat_session_expires_after_param.py +15 -0
- openai/types/beta/chatkit/chat_session_file_upload.py +18 -0
- openai/types/beta/chatkit/chat_session_history.py +18 -0
- openai/types/beta/chatkit/chat_session_rate_limits.py +10 -0
- openai/types/beta/chatkit/chat_session_rate_limits_param.py +12 -0
- openai/types/beta/chatkit/chat_session_status.py +7 -0
- openai/types/beta/chatkit/chat_session_workflow_param.py +34 -0
- openai/types/beta/chatkit/chatkit_attachment.py +25 -0
- openai/types/beta/chatkit/chatkit_response_output_text.py +62 -0
- openai/types/beta/chatkit/chatkit_thread.py +56 -0
- openai/types/beta/chatkit/chatkit_thread_assistant_message_item.py +29 -0
- openai/types/beta/chatkit/chatkit_thread_item_list.py +144 -0
- openai/types/beta/chatkit/chatkit_thread_user_message_item.py +77 -0
- openai/types/beta/chatkit/chatkit_widget_item.py +27 -0
- openai/types/beta/chatkit/session_create_params.py +35 -0
- openai/types/beta/chatkit/thread_delete_response.py +18 -0
- openai/types/beta/chatkit/thread_list_items_params.py +27 -0
- openai/types/beta/chatkit/thread_list_params.py +33 -0
- openai/types/beta/chatkit_workflow.py +32 -0
- openai/types/beta/code_interpreter_tool.py +12 -0
- openai/types/beta/code_interpreter_tool_param.py +12 -0
- openai/types/beta/file_search_tool.py +55 -0
- openai/types/beta/file_search_tool_param.py +54 -0
- openai/types/beta/function_tool.py +15 -0
- openai/types/beta/function_tool_param.py +16 -0
- openai/types/beta/realtime/__init__.py +96 -0
- openai/types/beta/realtime/conversation_created_event.py +27 -0
- openai/types/beta/realtime/conversation_item.py +61 -0
- openai/types/beta/realtime/conversation_item_content.py +32 -0
- openai/types/beta/realtime/conversation_item_content_param.py +31 -0
- openai/types/beta/realtime/conversation_item_create_event.py +29 -0
- openai/types/beta/realtime/conversation_item_create_event_param.py +29 -0
- openai/types/beta/realtime/conversation_item_created_event.py +27 -0
- openai/types/beta/realtime/conversation_item_delete_event.py +19 -0
- openai/types/beta/realtime/conversation_item_delete_event_param.py +18 -0
- openai/types/beta/realtime/conversation_item_deleted_event.py +18 -0
- openai/types/beta/realtime/conversation_item_input_audio_transcription_completed_event.py +87 -0
- openai/types/beta/realtime/conversation_item_input_audio_transcription_delta_event.py +39 -0
- openai/types/beta/realtime/conversation_item_input_audio_transcription_failed_event.py +39 -0
- openai/types/beta/realtime/conversation_item_param.py +62 -0
- openai/types/beta/realtime/conversation_item_retrieve_event.py +19 -0
- openai/types/beta/realtime/conversation_item_retrieve_event_param.py +18 -0
- openai/types/beta/realtime/conversation_item_truncate_event.py +32 -0
- openai/types/beta/realtime/conversation_item_truncate_event_param.py +31 -0
- openai/types/beta/realtime/conversation_item_truncated_event.py +24 -0
- openai/types/beta/realtime/conversation_item_with_reference.py +87 -0
- openai/types/beta/realtime/conversation_item_with_reference_param.py +87 -0
- openai/types/beta/realtime/error_event.py +36 -0
- openai/types/beta/realtime/input_audio_buffer_append_event.py +23 -0
- openai/types/beta/realtime/input_audio_buffer_append_event_param.py +22 -0
- openai/types/beta/realtime/input_audio_buffer_clear_event.py +16 -0
- openai/types/beta/realtime/input_audio_buffer_clear_event_param.py +15 -0
- openai/types/beta/realtime/input_audio_buffer_cleared_event.py +15 -0
- openai/types/beta/realtime/input_audio_buffer_commit_event.py +16 -0
- openai/types/beta/realtime/input_audio_buffer_commit_event_param.py +15 -0
- openai/types/beta/realtime/input_audio_buffer_committed_event.py +25 -0
- openai/types/beta/realtime/input_audio_buffer_speech_started_event.py +26 -0
- openai/types/beta/realtime/input_audio_buffer_speech_stopped_event.py +25 -0
- openai/types/beta/realtime/rate_limits_updated_event.py +33 -0
- openai/types/beta/realtime/realtime_client_event.py +47 -0
- openai/types/beta/realtime/realtime_client_event_param.py +44 -0
- openai/types/beta/realtime/realtime_connect_params.py +11 -0
- openai/types/beta/realtime/realtime_response.py +87 -0
- openai/types/beta/realtime/realtime_response_status.py +39 -0
- openai/types/beta/realtime/realtime_response_usage.py +52 -0
- openai/types/beta/realtime/realtime_server_event.py +133 -0
- openai/types/beta/realtime/response_audio_delta_event.py +30 -0
- openai/types/beta/realtime/response_audio_done_event.py +27 -0
- openai/types/beta/realtime/response_audio_transcript_delta_event.py +30 -0
- openai/types/beta/realtime/response_audio_transcript_done_event.py +30 -0
- openai/types/beta/realtime/response_cancel_event.py +22 -0
- openai/types/beta/realtime/response_cancel_event_param.py +21 -0
- openai/types/beta/realtime/response_content_part_added_event.py +45 -0
- openai/types/beta/realtime/response_content_part_done_event.py +45 -0
- openai/types/beta/realtime/response_create_event.py +121 -0
- openai/types/beta/realtime/response_create_event_param.py +122 -0
- openai/types/beta/realtime/response_created_event.py +19 -0
- openai/types/beta/realtime/response_done_event.py +19 -0
- openai/types/beta/realtime/response_function_call_arguments_delta_event.py +30 -0
- openai/types/beta/realtime/response_function_call_arguments_done_event.py +30 -0
- openai/types/beta/realtime/response_output_item_added_event.py +25 -0
- openai/types/beta/realtime/response_output_item_done_event.py +25 -0
- openai/types/beta/realtime/response_text_delta_event.py +30 -0
- openai/types/beta/realtime/response_text_done_event.py +30 -0
- openai/types/beta/realtime/session.py +279 -0
- openai/types/beta/realtime/session_create_params.py +298 -0
- openai/types/beta/realtime/session_create_response.py +196 -0
- openai/types/beta/realtime/session_created_event.py +19 -0
- openai/types/beta/realtime/session_update_event.py +312 -0
- openai/types/beta/realtime/session_update_event_param.py +310 -0
- openai/types/beta/realtime/session_updated_event.py +19 -0
- openai/types/beta/realtime/transcription_session.py +100 -0
- openai/types/beta/realtime/transcription_session_create_params.py +173 -0
- openai/types/beta/realtime/transcription_session_update.py +185 -0
- openai/types/beta/realtime/transcription_session_update_param.py +185 -0
- openai/types/beta/realtime/transcription_session_updated_event.py +24 -0
- openai/types/beta/thread.py +63 -0
- openai/types/beta/thread_create_and_run_params.py +397 -0
- openai/types/beta/thread_create_params.py +186 -0
- openai/types/beta/thread_deleted.py +15 -0
- openai/types/beta/thread_update_params.py +56 -0
- openai/types/beta/threads/__init__.py +46 -0
- openai/types/beta/threads/annotation.py +12 -0
- openai/types/beta/threads/annotation_delta.py +14 -0
- openai/types/beta/threads/file_citation_annotation.py +26 -0
- openai/types/beta/threads/file_citation_delta_annotation.py +33 -0
- openai/types/beta/threads/file_path_annotation.py +26 -0
- openai/types/beta/threads/file_path_delta_annotation.py +30 -0
- openai/types/beta/threads/image_file.py +23 -0
- openai/types/beta/threads/image_file_content_block.py +15 -0
- openai/types/beta/threads/image_file_content_block_param.py +16 -0
- openai/types/beta/threads/image_file_delta.py +23 -0
- openai/types/beta/threads/image_file_delta_block.py +19 -0
- openai/types/beta/threads/image_file_param.py +22 -0
- openai/types/beta/threads/image_url.py +23 -0
- openai/types/beta/threads/image_url_content_block.py +15 -0
- openai/types/beta/threads/image_url_content_block_param.py +16 -0
- openai/types/beta/threads/image_url_delta.py +22 -0
- openai/types/beta/threads/image_url_delta_block.py +19 -0
- openai/types/beta/threads/image_url_param.py +22 -0
- openai/types/beta/threads/message.py +103 -0
- openai/types/beta/threads/message_content.py +18 -0
- openai/types/beta/threads/message_content_delta.py +17 -0
- openai/types/beta/threads/message_content_part_param.py +14 -0
- openai/types/beta/threads/message_create_params.py +55 -0
- openai/types/beta/threads/message_deleted.py +15 -0
- openai/types/beta/threads/message_delta.py +17 -0
- openai/types/beta/threads/message_delta_event.py +19 -0
- openai/types/beta/threads/message_list_params.py +42 -0
- openai/types/beta/threads/message_update_params.py +24 -0
- openai/types/beta/threads/refusal_content_block.py +14 -0
- openai/types/beta/threads/refusal_delta_block.py +18 -0
- openai/types/beta/threads/required_action_function_tool_call.py +34 -0
- openai/types/beta/threads/run.py +245 -0
- openai/types/beta/threads/run_create_params.py +268 -0
- openai/types/beta/threads/run_list_params.py +39 -0
- openai/types/beta/threads/run_status.py +17 -0
- openai/types/beta/threads/run_submit_tool_outputs_params.py +52 -0
- openai/types/beta/threads/run_update_params.py +24 -0
- openai/types/beta/threads/runs/__init__.py +24 -0
- openai/types/beta/threads/runs/code_interpreter_logs.py +19 -0
- openai/types/beta/threads/runs/code_interpreter_output_image.py +26 -0
- openai/types/beta/threads/runs/code_interpreter_tool_call.py +70 -0
- openai/types/beta/threads/runs/code_interpreter_tool_call_delta.py +44 -0
- openai/types/beta/threads/runs/file_search_tool_call.py +78 -0
- openai/types/beta/threads/runs/file_search_tool_call_delta.py +25 -0
- openai/types/beta/threads/runs/function_tool_call.py +38 -0
- openai/types/beta/threads/runs/function_tool_call_delta.py +41 -0
- openai/types/beta/threads/runs/message_creation_step_details.py +19 -0
- openai/types/beta/threads/runs/run_step.py +115 -0
- openai/types/beta/threads/runs/run_step_delta.py +20 -0
- openai/types/beta/threads/runs/run_step_delta_event.py +19 -0
- openai/types/beta/threads/runs/run_step_delta_message_delta.py +20 -0
- openai/types/beta/threads/runs/run_step_include.py +7 -0
- openai/types/beta/threads/runs/step_list_params.py +56 -0
- openai/types/beta/threads/runs/step_retrieve_params.py +28 -0
- openai/types/beta/threads/runs/tool_call.py +15 -0
- openai/types/beta/threads/runs/tool_call_delta.py +16 -0
- openai/types/beta/threads/runs/tool_call_delta_object.py +21 -0
- openai/types/beta/threads/runs/tool_calls_step_details.py +21 -0
- openai/types/beta/threads/text.py +15 -0
- openai/types/beta/threads/text_content_block.py +15 -0
- openai/types/beta/threads/text_content_block_param.py +15 -0
- openai/types/beta/threads/text_delta.py +15 -0
- openai/types/beta/threads/text_delta_block.py +19 -0
- openai/types/chat/__init__.py +102 -0
- openai/types/chat/chat_completion.py +89 -0
- openai/types/chat/chat_completion_allowed_tool_choice_param.py +17 -0
- openai/types/chat/chat_completion_allowed_tools_param.py +32 -0
- openai/types/chat/chat_completion_assistant_message_param.py +70 -0
- openai/types/chat/chat_completion_audio.py +25 -0
- openai/types/chat/chat_completion_audio_param.py +25 -0
- openai/types/chat/chat_completion_chunk.py +166 -0
- openai/types/chat/chat_completion_content_part_image.py +27 -0
- openai/types/chat/chat_completion_content_part_image_param.py +26 -0
- openai/types/chat/chat_completion_content_part_input_audio_param.py +22 -0
- openai/types/chat/chat_completion_content_part_param.py +41 -0
- openai/types/chat/chat_completion_content_part_refusal_param.py +15 -0
- openai/types/chat/chat_completion_content_part_text.py +15 -0
- openai/types/chat/chat_completion_content_part_text_param.py +15 -0
- openai/types/chat/chat_completion_custom_tool_param.py +58 -0
- openai/types/chat/chat_completion_deleted.py +18 -0
- openai/types/chat/chat_completion_developer_message_param.py +25 -0
- openai/types/chat/chat_completion_function_call_option_param.py +12 -0
- openai/types/chat/chat_completion_function_message_param.py +19 -0
- openai/types/chat/chat_completion_function_tool.py +15 -0
- openai/types/chat/chat_completion_function_tool_param.py +16 -0
- openai/types/chat/chat_completion_message.py +79 -0
- openai/types/chat/chat_completion_message_custom_tool_call.py +26 -0
- openai/types/chat/chat_completion_message_custom_tool_call_param.py +26 -0
- openai/types/chat/chat_completion_message_function_tool_call.py +31 -0
- openai/types/chat/chat_completion_message_function_tool_call_param.py +31 -0
- openai/types/chat/chat_completion_message_param.py +24 -0
- openai/types/chat/chat_completion_message_tool_call.py +17 -0
- openai/types/chat/chat_completion_message_tool_call_param.py +14 -0
- openai/types/chat/chat_completion_message_tool_call_union_param.py +15 -0
- openai/types/chat/chat_completion_modality.py +7 -0
- openai/types/chat/chat_completion_named_tool_choice_custom_param.py +19 -0
- openai/types/chat/chat_completion_named_tool_choice_param.py +19 -0
- openai/types/chat/chat_completion_prediction_content_param.py +25 -0
- openai/types/chat/chat_completion_reasoning_effort.py +7 -0
- openai/types/chat/chat_completion_role.py +7 -0
- openai/types/chat/chat_completion_store_message.py +23 -0
- openai/types/chat/chat_completion_stream_options_param.py +31 -0
- openai/types/chat/chat_completion_system_message_param.py +25 -0
- openai/types/chat/chat_completion_token_logprob.py +57 -0
- openai/types/chat/chat_completion_tool_choice_option_param.py +19 -0
- openai/types/chat/chat_completion_tool_message_param.py +21 -0
- openai/types/chat/chat_completion_tool_param.py +14 -0
- openai/types/chat/chat_completion_tool_union_param.py +13 -0
- openai/types/chat/chat_completion_user_message_param.py +25 -0
- openai/types/chat/completion_create_params.py +450 -0
- openai/types/chat/completion_list_params.py +37 -0
- openai/types/chat/completion_update_params.py +22 -0
- openai/types/chat/completions/__init__.py +5 -0
- openai/types/chat/completions/message_list_params.py +21 -0
- openai/types/chat/parsed_chat_completion.py +40 -0
- openai/types/chat/parsed_function_tool_call.py +29 -0
- openai/types/chat_model.py +7 -0
- openai/types/completion.py +37 -0
- openai/types/completion_choice.py +35 -0
- openai/types/completion_create_params.py +189 -0
- openai/types/completion_usage.py +54 -0
- openai/types/container_create_params.py +30 -0
- openai/types/container_create_response.py +40 -0
- openai/types/container_list_params.py +30 -0
- openai/types/container_list_response.py +40 -0
- openai/types/container_retrieve_response.py +40 -0
- openai/types/containers/__init__.py +9 -0
- openai/types/containers/file_create_params.py +17 -0
- openai/types/containers/file_create_response.py +30 -0
- openai/types/containers/file_list_params.py +30 -0
- openai/types/containers/file_list_response.py +30 -0
- openai/types/containers/file_retrieve_response.py +30 -0
- openai/types/containers/files/__init__.py +3 -0
- openai/types/conversations/__init__.py +27 -0
- openai/types/conversations/computer_screenshot_content.py +22 -0
- openai/types/conversations/conversation.py +30 -0
- openai/types/conversations/conversation_create_params.py +29 -0
- openai/types/conversations/conversation_deleted_resource.py +15 -0
- openai/types/conversations/conversation_item.py +230 -0
- openai/types/conversations/conversation_item_list.py +26 -0
- openai/types/conversations/conversation_update_params.py +22 -0
- openai/types/conversations/input_file_content.py +7 -0
- openai/types/conversations/input_file_content_param.py +7 -0
- openai/types/conversations/input_image_content.py +7 -0
- openai/types/conversations/input_image_content_param.py +7 -0
- openai/types/conversations/input_text_content.py +7 -0
- openai/types/conversations/input_text_content_param.py +7 -0
- openai/types/conversations/item_create_params.py +24 -0
- openai/types/conversations/item_list_params.py +50 -0
- openai/types/conversations/item_retrieve_params.py +22 -0
- openai/types/conversations/message.py +66 -0
- openai/types/conversations/output_text_content.py +7 -0
- openai/types/conversations/output_text_content_param.py +7 -0
- openai/types/conversations/refusal_content.py +7 -0
- openai/types/conversations/refusal_content_param.py +7 -0
- openai/types/conversations/summary_text_content.py +15 -0
- openai/types/conversations/text_content.py +13 -0
- openai/types/create_embedding_response.py +31 -0
- openai/types/embedding.py +23 -0
- openai/types/embedding_create_params.py +55 -0
- openai/types/embedding_model.py +7 -0
- openai/types/eval_create_params.py +202 -0
- openai/types/eval_create_response.py +111 -0
- openai/types/eval_custom_data_source_config.py +21 -0
- openai/types/eval_delete_response.py +13 -0
- openai/types/eval_list_params.py +27 -0
- openai/types/eval_list_response.py +111 -0
- openai/types/eval_retrieve_response.py +111 -0
- openai/types/eval_stored_completions_data_source_config.py +32 -0
- openai/types/eval_update_params.py +25 -0
- openai/types/eval_update_response.py +111 -0
- openai/types/evals/__init__.py +22 -0
- openai/types/evals/create_eval_completions_run_data_source.py +236 -0
- openai/types/evals/create_eval_completions_run_data_source_param.py +232 -0
- openai/types/evals/create_eval_jsonl_run_data_source.py +42 -0
- openai/types/evals/create_eval_jsonl_run_data_source_param.py +47 -0
- openai/types/evals/eval_api_error.py +13 -0
- openai/types/evals/run_cancel_response.py +417 -0
- openai/types/evals/run_create_params.py +340 -0
- openai/types/evals/run_create_response.py +417 -0
- openai/types/evals/run_delete_response.py +15 -0
- openai/types/evals/run_list_params.py +27 -0
- openai/types/evals/run_list_response.py +417 -0
- openai/types/evals/run_retrieve_response.py +417 -0
- openai/types/evals/runs/__init__.py +7 -0
- openai/types/evals/runs/output_item_list_params.py +30 -0
- openai/types/evals/runs/output_item_list_response.py +134 -0
- openai/types/evals/runs/output_item_retrieve_response.py +134 -0
- openai/types/file_chunking_strategy.py +14 -0
- openai/types/file_chunking_strategy_param.py +13 -0
- openai/types/file_content.py +7 -0
- openai/types/file_create_params.py +45 -0
- openai/types/file_deleted.py +15 -0
- openai/types/file_list_params.py +33 -0
- openai/types/file_object.py +58 -0
- openai/types/file_purpose.py +7 -0
- openai/types/fine_tuning/__init__.py +26 -0
- openai/types/fine_tuning/alpha/__init__.py +8 -0
- openai/types/fine_tuning/alpha/grader_run_params.py +40 -0
- openai/types/fine_tuning/alpha/grader_run_response.py +67 -0
- openai/types/fine_tuning/alpha/grader_validate_params.py +24 -0
- openai/types/fine_tuning/alpha/grader_validate_response.py +20 -0
- openai/types/fine_tuning/checkpoints/__init__.py +9 -0
- openai/types/fine_tuning/checkpoints/permission_create_params.py +14 -0
- openai/types/fine_tuning/checkpoints/permission_create_response.py +21 -0
- openai/types/fine_tuning/checkpoints/permission_delete_response.py +18 -0
- openai/types/fine_tuning/checkpoints/permission_retrieve_params.py +21 -0
- openai/types/fine_tuning/checkpoints/permission_retrieve_response.py +34 -0
- openai/types/fine_tuning/dpo_hyperparameters.py +36 -0
- openai/types/fine_tuning/dpo_hyperparameters_param.py +36 -0
- openai/types/fine_tuning/dpo_method.py +13 -0
- openai/types/fine_tuning/dpo_method_param.py +14 -0
- openai/types/fine_tuning/fine_tuning_job.py +161 -0
- openai/types/fine_tuning/fine_tuning_job_event.py +32 -0
- openai/types/fine_tuning/fine_tuning_job_integration.py +5 -0
- openai/types/fine_tuning/fine_tuning_job_wandb_integration.py +33 -0
- openai/types/fine_tuning/fine_tuning_job_wandb_integration_object.py +21 -0
- openai/types/fine_tuning/job_create_params.py +176 -0
- openai/types/fine_tuning/job_list_events_params.py +15 -0
- openai/types/fine_tuning/job_list_params.py +23 -0
- openai/types/fine_tuning/jobs/__init__.py +6 -0
- openai/types/fine_tuning/jobs/checkpoint_list_params.py +15 -0
- openai/types/fine_tuning/jobs/fine_tuning_job_checkpoint.py +47 -0
- openai/types/fine_tuning/reinforcement_hyperparameters.py +43 -0
- openai/types/fine_tuning/reinforcement_hyperparameters_param.py +43 -0
- openai/types/fine_tuning/reinforcement_method.py +24 -0
- openai/types/fine_tuning/reinforcement_method_param.py +27 -0
- openai/types/fine_tuning/supervised_hyperparameters.py +29 -0
- openai/types/fine_tuning/supervised_hyperparameters_param.py +29 -0
- openai/types/fine_tuning/supervised_method.py +13 -0
- openai/types/fine_tuning/supervised_method_param.py +14 -0
- openai/types/graders/__init__.py +16 -0
- openai/types/graders/label_model_grader.py +70 -0
- openai/types/graders/label_model_grader_param.py +77 -0
- openai/types/graders/multi_grader.py +32 -0
- openai/types/graders/multi_grader_param.py +35 -0
- openai/types/graders/python_grader.py +22 -0
- openai/types/graders/python_grader_param.py +21 -0
- openai/types/graders/score_model_grader.py +109 -0
- openai/types/graders/score_model_grader_param.py +115 -0
- openai/types/graders/string_check_grader.py +24 -0
- openai/types/graders/string_check_grader_param.py +24 -0
- openai/types/graders/text_similarity_grader.py +40 -0
- openai/types/graders/text_similarity_grader_param.py +42 -0
- openai/types/image.py +26 -0
- openai/types/image_create_variation_params.py +48 -0
- openai/types/image_edit_completed_event.py +55 -0
- openai/types/image_edit_params.py +145 -0
- openai/types/image_edit_partial_image_event.py +33 -0
- openai/types/image_edit_stream_event.py +14 -0
- openai/types/image_gen_completed_event.py +55 -0
- openai/types/image_gen_partial_image_event.py +33 -0
- openai/types/image_gen_stream_event.py +14 -0
- openai/types/image_generate_params.py +143 -0
- openai/types/image_model.py +7 -0
- openai/types/images_response.py +60 -0
- openai/types/model.py +21 -0
- openai/types/model_deleted.py +13 -0
- openai/types/moderation.py +186 -0
- openai/types/moderation_create_params.py +30 -0
- openai/types/moderation_create_response.py +19 -0
- openai/types/moderation_image_url_input_param.py +20 -0
- openai/types/moderation_model.py +9 -0
- openai/types/moderation_multi_modal_input_param.py +13 -0
- openai/types/moderation_text_input_param.py +15 -0
- openai/types/other_file_chunking_strategy_object.py +12 -0
- openai/types/realtime/__init__.py +237 -0
- openai/types/realtime/audio_transcription.py +37 -0
- openai/types/realtime/audio_transcription_param.py +34 -0
- openai/types/realtime/call_accept_params.py +122 -0
- openai/types/realtime/call_create_params.py +17 -0
- openai/types/realtime/call_refer_params.py +15 -0
- openai/types/realtime/call_reject_params.py +15 -0
- openai/types/realtime/client_secret_create_params.py +46 -0
- openai/types/realtime/client_secret_create_response.py +26 -0
- openai/types/realtime/conversation_created_event.py +27 -0
- openai/types/realtime/conversation_item.py +32 -0
- openai/types/realtime/conversation_item_added.py +26 -0
- openai/types/realtime/conversation_item_create_event.py +29 -0
- openai/types/realtime/conversation_item_create_event_param.py +29 -0
- openai/types/realtime/conversation_item_created_event.py +27 -0
- openai/types/realtime/conversation_item_delete_event.py +19 -0
- openai/types/realtime/conversation_item_delete_event_param.py +18 -0
- openai/types/realtime/conversation_item_deleted_event.py +18 -0
- openai/types/realtime/conversation_item_done.py +26 -0
- openai/types/realtime/conversation_item_input_audio_transcription_completed_event.py +79 -0
- openai/types/realtime/conversation_item_input_audio_transcription_delta_event.py +36 -0
- openai/types/realtime/conversation_item_input_audio_transcription_failed_event.py +39 -0
- openai/types/realtime/conversation_item_input_audio_transcription_segment.py +36 -0
- openai/types/realtime/conversation_item_param.py +30 -0
- openai/types/realtime/conversation_item_retrieve_event.py +19 -0
- openai/types/realtime/conversation_item_retrieve_event_param.py +18 -0
- openai/types/realtime/conversation_item_truncate_event.py +32 -0
- openai/types/realtime/conversation_item_truncate_event_param.py +31 -0
- openai/types/realtime/conversation_item_truncated_event.py +24 -0
- openai/types/realtime/input_audio_buffer_append_event.py +23 -0
- openai/types/realtime/input_audio_buffer_append_event_param.py +22 -0
- openai/types/realtime/input_audio_buffer_clear_event.py +16 -0
- openai/types/realtime/input_audio_buffer_clear_event_param.py +15 -0
- openai/types/realtime/input_audio_buffer_cleared_event.py +15 -0
- openai/types/realtime/input_audio_buffer_commit_event.py +16 -0
- openai/types/realtime/input_audio_buffer_commit_event_param.py +15 -0
- openai/types/realtime/input_audio_buffer_committed_event.py +25 -0
- openai/types/realtime/input_audio_buffer_speech_started_event.py +26 -0
- openai/types/realtime/input_audio_buffer_speech_stopped_event.py +25 -0
- openai/types/realtime/input_audio_buffer_timeout_triggered.py +30 -0
- openai/types/realtime/log_prob_properties.py +18 -0
- openai/types/realtime/mcp_list_tools_completed.py +18 -0
- openai/types/realtime/mcp_list_tools_failed.py +18 -0
- openai/types/realtime/mcp_list_tools_in_progress.py +18 -0
- openai/types/realtime/noise_reduction_type.py +7 -0
- openai/types/realtime/output_audio_buffer_clear_event.py +16 -0
- openai/types/realtime/output_audio_buffer_clear_event_param.py +15 -0
- openai/types/realtime/rate_limits_updated_event.py +33 -0
- openai/types/realtime/realtime_audio_config.py +15 -0
- openai/types/realtime/realtime_audio_config_input.py +63 -0
- openai/types/realtime/realtime_audio_config_input_param.py +65 -0
- openai/types/realtime/realtime_audio_config_output.py +36 -0
- openai/types/realtime/realtime_audio_config_output_param.py +35 -0
- openai/types/realtime/realtime_audio_config_param.py +16 -0
- openai/types/realtime/realtime_audio_formats.py +30 -0
- openai/types/realtime/realtime_audio_formats_param.py +29 -0
- openai/types/realtime/realtime_audio_input_turn_detection.py +98 -0
- openai/types/realtime/realtime_audio_input_turn_detection_param.py +95 -0
- openai/types/realtime/realtime_client_event.py +36 -0
- openai/types/realtime/realtime_client_event_param.py +34 -0
- openai/types/realtime/realtime_connect_params.py +13 -0
- openai/types/realtime/realtime_conversation_item_assistant_message.py +58 -0
- openai/types/realtime/realtime_conversation_item_assistant_message_param.py +58 -0
- openai/types/realtime/realtime_conversation_item_function_call.py +41 -0
- openai/types/realtime/realtime_conversation_item_function_call_output.py +37 -0
- openai/types/realtime/realtime_conversation_item_function_call_output_param.py +36 -0
- openai/types/realtime/realtime_conversation_item_function_call_param.py +40 -0
- openai/types/realtime/realtime_conversation_item_system_message.py +42 -0
- openai/types/realtime/realtime_conversation_item_system_message_param.py +42 -0
- openai/types/realtime/realtime_conversation_item_user_message.py +69 -0
- openai/types/realtime/realtime_conversation_item_user_message_param.py +69 -0
- openai/types/realtime/realtime_error.py +24 -0
- openai/types/realtime/realtime_error_event.py +19 -0
- openai/types/realtime/realtime_function_tool.py +25 -0
- openai/types/realtime/realtime_function_tool_param.py +24 -0
- openai/types/realtime/realtime_mcp_approval_request.py +24 -0
- openai/types/realtime/realtime_mcp_approval_request_param.py +24 -0
- openai/types/realtime/realtime_mcp_approval_response.py +25 -0
- openai/types/realtime/realtime_mcp_approval_response_param.py +25 -0
- openai/types/realtime/realtime_mcp_list_tools.py +36 -0
- openai/types/realtime/realtime_mcp_list_tools_param.py +36 -0
- openai/types/realtime/realtime_mcp_protocol_error.py +15 -0
- openai/types/realtime/realtime_mcp_protocol_error_param.py +15 -0
- openai/types/realtime/realtime_mcp_tool_call.py +43 -0
- openai/types/realtime/realtime_mcp_tool_call_param.py +40 -0
- openai/types/realtime/realtime_mcp_tool_execution_error.py +13 -0
- openai/types/realtime/realtime_mcp_tool_execution_error_param.py +13 -0
- openai/types/realtime/realtime_mcphttp_error.py +15 -0
- openai/types/realtime/realtime_mcphttp_error_param.py +15 -0
- openai/types/realtime/realtime_response.py +98 -0
- openai/types/realtime/realtime_response_create_audio_output.py +29 -0
- openai/types/realtime/realtime_response_create_audio_output_param.py +28 -0
- openai/types/realtime/realtime_response_create_mcp_tool.py +135 -0
- openai/types/realtime/realtime_response_create_mcp_tool_param.py +135 -0
- openai/types/realtime/realtime_response_create_params.py +98 -0
- openai/types/realtime/realtime_response_create_params_param.py +99 -0
- openai/types/realtime/realtime_response_status.py +39 -0
- openai/types/realtime/realtime_response_usage.py +41 -0
- openai/types/realtime/realtime_response_usage_input_token_details.py +35 -0
- openai/types/realtime/realtime_response_usage_output_token_details.py +15 -0
- openai/types/realtime/realtime_server_event.py +155 -0
- openai/types/realtime/realtime_session_client_secret.py +20 -0
- openai/types/realtime/realtime_session_create_request.py +122 -0
- openai/types/realtime/realtime_session_create_request_param.py +122 -0
- openai/types/realtime/realtime_session_create_response.py +475 -0
- openai/types/realtime/realtime_tool_choice_config.py +12 -0
- openai/types/realtime/realtime_tool_choice_config_param.py +14 -0
- openai/types/realtime/realtime_tools_config.py +10 -0
- openai/types/realtime/realtime_tools_config_param.py +143 -0
- openai/types/realtime/realtime_tools_config_union.py +141 -0
- openai/types/realtime/realtime_tools_config_union_param.py +140 -0
- openai/types/realtime/realtime_tracing_config.py +31 -0
- openai/types/realtime/realtime_tracing_config_param.py +31 -0
- openai/types/realtime/realtime_transcription_session_audio.py +12 -0
- openai/types/realtime/realtime_transcription_session_audio_input.py +65 -0
- openai/types/realtime/realtime_transcription_session_audio_input_param.py +67 -0
- openai/types/realtime/realtime_transcription_session_audio_input_turn_detection.py +98 -0
- openai/types/realtime/realtime_transcription_session_audio_input_turn_detection_param.py +95 -0
- openai/types/realtime/realtime_transcription_session_audio_param.py +13 -0
- openai/types/realtime/realtime_transcription_session_create_request.py +27 -0
- openai/types/realtime/realtime_transcription_session_create_request_param.py +28 -0
- openai/types/realtime/realtime_transcription_session_create_response.py +68 -0
- openai/types/realtime/realtime_transcription_session_turn_detection.py +32 -0
- openai/types/realtime/realtime_truncation.py +10 -0
- openai/types/realtime/realtime_truncation_param.py +12 -0
- openai/types/realtime/realtime_truncation_retention_ratio.py +38 -0
- openai/types/realtime/realtime_truncation_retention_ratio_param.py +37 -0
- openai/types/realtime/response_audio_delta_event.py +30 -0
- openai/types/realtime/response_audio_done_event.py +27 -0
- openai/types/realtime/response_audio_transcript_delta_event.py +30 -0
- openai/types/realtime/response_audio_transcript_done_event.py +30 -0
- openai/types/realtime/response_cancel_event.py +22 -0
- openai/types/realtime/response_cancel_event_param.py +21 -0
- openai/types/realtime/response_content_part_added_event.py +45 -0
- openai/types/realtime/response_content_part_done_event.py +45 -0
- openai/types/realtime/response_create_event.py +20 -0
- openai/types/realtime/response_create_event_param.py +20 -0
- openai/types/realtime/response_created_event.py +19 -0
- openai/types/realtime/response_done_event.py +19 -0
- openai/types/realtime/response_function_call_arguments_delta_event.py +30 -0
- openai/types/realtime/response_function_call_arguments_done_event.py +30 -0
- openai/types/realtime/response_mcp_call_arguments_delta.py +31 -0
- openai/types/realtime/response_mcp_call_arguments_done.py +27 -0
- openai/types/realtime/response_mcp_call_completed.py +21 -0
- openai/types/realtime/response_mcp_call_failed.py +21 -0
- openai/types/realtime/response_mcp_call_in_progress.py +21 -0
- openai/types/realtime/response_output_item_added_event.py +25 -0
- openai/types/realtime/response_output_item_done_event.py +25 -0
- openai/types/realtime/response_text_delta_event.py +30 -0
- openai/types/realtime/response_text_done_event.py +30 -0
- openai/types/realtime/session_created_event.py +23 -0
- openai/types/realtime/session_update_event.py +31 -0
- openai/types/realtime/session_update_event_param.py +32 -0
- openai/types/realtime/session_updated_event.py +23 -0
- openai/types/responses/__init__.py +270 -0
- openai/types/responses/apply_patch_tool.py +12 -0
- openai/types/responses/apply_patch_tool_param.py +12 -0
- openai/types/responses/computer_tool.py +21 -0
- openai/types/responses/computer_tool_param.py +21 -0
- openai/types/responses/custom_tool.py +23 -0
- openai/types/responses/custom_tool_param.py +23 -0
- openai/types/responses/easy_input_message.py +26 -0
- openai/types/responses/easy_input_message_param.py +27 -0
- openai/types/responses/file_search_tool.py +58 -0
- openai/types/responses/file_search_tool_param.py +60 -0
- openai/types/responses/function_shell_tool.py +12 -0
- openai/types/responses/function_shell_tool_param.py +12 -0
- openai/types/responses/function_tool.py +28 -0
- openai/types/responses/function_tool_param.py +28 -0
- openai/types/responses/input_item_list_params.py +34 -0
- openai/types/responses/input_token_count_params.py +142 -0
- openai/types/responses/input_token_count_response.py +13 -0
- openai/types/responses/parsed_response.py +105 -0
- openai/types/responses/response.py +307 -0
- openai/types/responses/response_apply_patch_tool_call.py +76 -0
- openai/types/responses/response_apply_patch_tool_call_output.py +31 -0
- openai/types/responses/response_audio_delta_event.py +18 -0
- openai/types/responses/response_audio_done_event.py +15 -0
- openai/types/responses/response_audio_transcript_delta_event.py +18 -0
- openai/types/responses/response_audio_transcript_done_event.py +15 -0
- openai/types/responses/response_code_interpreter_call_code_delta_event.py +27 -0
- openai/types/responses/response_code_interpreter_call_code_done_event.py +24 -0
- openai/types/responses/response_code_interpreter_call_completed_event.py +24 -0
- openai/types/responses/response_code_interpreter_call_in_progress_event.py +24 -0
- openai/types/responses/response_code_interpreter_call_interpreting_event.py +24 -0
- openai/types/responses/response_code_interpreter_tool_call.py +55 -0
- openai/types/responses/response_code_interpreter_tool_call_param.py +54 -0
- openai/types/responses/response_completed_event.py +19 -0
- openai/types/responses/response_computer_tool_call.py +209 -0
- openai/types/responses/response_computer_tool_call_output_item.py +47 -0
- openai/types/responses/response_computer_tool_call_output_screenshot.py +22 -0
- openai/types/responses/response_computer_tool_call_output_screenshot_param.py +21 -0
- openai/types/responses/response_computer_tool_call_param.py +207 -0
- openai/types/responses/response_content_part_added_event.py +44 -0
- openai/types/responses/response_content_part_done_event.py +44 -0
- openai/types/responses/response_conversation_param.py +12 -0
- openai/types/responses/response_create_params.py +334 -0
- openai/types/responses/response_created_event.py +19 -0
- openai/types/responses/response_custom_tool_call.py +25 -0
- openai/types/responses/response_custom_tool_call_input_delta_event.py +24 -0
- openai/types/responses/response_custom_tool_call_input_done_event.py +24 -0
- openai/types/responses/response_custom_tool_call_output.py +33 -0
- openai/types/responses/response_custom_tool_call_output_param.py +31 -0
- openai/types/responses/response_custom_tool_call_param.py +24 -0
- openai/types/responses/response_error.py +34 -0
- openai/types/responses/response_error_event.py +25 -0
- openai/types/responses/response_failed_event.py +19 -0
- openai/types/responses/response_file_search_call_completed_event.py +21 -0
- openai/types/responses/response_file_search_call_in_progress_event.py +21 -0
- openai/types/responses/response_file_search_call_searching_event.py +21 -0
- openai/types/responses/response_file_search_tool_call.py +51 -0
- openai/types/responses/response_file_search_tool_call_param.py +53 -0
- openai/types/responses/response_format_text_config.py +16 -0
- openai/types/responses/response_format_text_config_param.py +16 -0
- openai/types/responses/response_format_text_json_schema_config.py +43 -0
- openai/types/responses/response_format_text_json_schema_config_param.py +41 -0
- openai/types/responses/response_function_call_arguments_delta_event.py +26 -0
- openai/types/responses/response_function_call_arguments_done_event.py +26 -0
- openai/types/responses/response_function_call_output_item.py +16 -0
- openai/types/responses/response_function_call_output_item_list.py +10 -0
- openai/types/responses/response_function_call_output_item_list_param.py +18 -0
- openai/types/responses/response_function_call_output_item_param.py +16 -0
- openai/types/responses/response_function_shell_call_output_content.py +36 -0
- openai/types/responses/response_function_shell_call_output_content_param.py +35 -0
- openai/types/responses/response_function_shell_tool_call.py +44 -0
- openai/types/responses/response_function_shell_tool_call_output.py +70 -0
- openai/types/responses/response_function_tool_call.py +32 -0
- openai/types/responses/response_function_tool_call_item.py +10 -0
- openai/types/responses/response_function_tool_call_output_item.py +40 -0
- openai/types/responses/response_function_tool_call_param.py +31 -0
- openai/types/responses/response_function_web_search.py +67 -0
- openai/types/responses/response_function_web_search_param.py +73 -0
- openai/types/responses/response_image_gen_call_completed_event.py +21 -0
- openai/types/responses/response_image_gen_call_generating_event.py +21 -0
- openai/types/responses/response_image_gen_call_in_progress_event.py +21 -0
- openai/types/responses/response_image_gen_call_partial_image_event.py +30 -0
- openai/types/responses/response_in_progress_event.py +19 -0
- openai/types/responses/response_includable.py +16 -0
- openai/types/responses/response_incomplete_event.py +19 -0
- openai/types/responses/response_input_audio.py +22 -0
- openai/types/responses/response_input_audio_param.py +22 -0
- openai/types/responses/response_input_content.py +15 -0
- openai/types/responses/response_input_content_param.py +14 -0
- openai/types/responses/response_input_file.py +25 -0
- openai/types/responses/response_input_file_content.py +25 -0
- openai/types/responses/response_input_file_content_param.py +25 -0
- openai/types/responses/response_input_file_param.py +25 -0
- openai/types/responses/response_input_image.py +28 -0
- openai/types/responses/response_input_image_content.py +28 -0
- openai/types/responses/response_input_image_content_param.py +28 -0
- openai/types/responses/response_input_image_param.py +28 -0
- openai/types/responses/response_input_item.py +482 -0
- openai/types/responses/response_input_item_param.py +479 -0
- openai/types/responses/response_input_message_content_list.py +10 -0
- openai/types/responses/response_input_message_content_list_param.py +16 -0
- openai/types/responses/response_input_message_item.py +33 -0
- openai/types/responses/response_input_param.py +482 -0
- openai/types/responses/response_input_text.py +15 -0
- openai/types/responses/response_input_text_content.py +15 -0
- openai/types/responses/response_input_text_content_param.py +15 -0
- openai/types/responses/response_input_text_param.py +15 -0
- openai/types/responses/response_item.py +226 -0
- openai/types/responses/response_item_list.py +26 -0
- openai/types/responses/response_mcp_call_arguments_delta_event.py +27 -0
- openai/types/responses/response_mcp_call_arguments_done_event.py +24 -0
- openai/types/responses/response_mcp_call_completed_event.py +21 -0
- openai/types/responses/response_mcp_call_failed_event.py +21 -0
- openai/types/responses/response_mcp_call_in_progress_event.py +21 -0
- openai/types/responses/response_mcp_list_tools_completed_event.py +21 -0
- openai/types/responses/response_mcp_list_tools_failed_event.py +21 -0
- openai/types/responses/response_mcp_list_tools_in_progress_event.py +21 -0
- openai/types/responses/response_output_item.py +189 -0
- openai/types/responses/response_output_item_added_event.py +22 -0
- openai/types/responses/response_output_item_done_event.py +22 -0
- openai/types/responses/response_output_message.py +34 -0
- openai/types/responses/response_output_message_param.py +34 -0
- openai/types/responses/response_output_refusal.py +15 -0
- openai/types/responses/response_output_refusal_param.py +15 -0
- openai/types/responses/response_output_text.py +117 -0
- openai/types/responses/response_output_text_annotation_added_event.py +30 -0
- openai/types/responses/response_output_text_param.py +115 -0
- openai/types/responses/response_prompt.py +28 -0
- openai/types/responses/response_prompt_param.py +29 -0
- openai/types/responses/response_queued_event.py +19 -0
- openai/types/responses/response_reasoning_item.py +51 -0
- openai/types/responses/response_reasoning_item_param.py +51 -0
- openai/types/responses/response_reasoning_summary_part_added_event.py +35 -0
- openai/types/responses/response_reasoning_summary_part_done_event.py +35 -0
- openai/types/responses/response_reasoning_summary_text_delta_event.py +27 -0
- openai/types/responses/response_reasoning_summary_text_done_event.py +27 -0
- openai/types/responses/response_reasoning_text_delta_event.py +27 -0
- openai/types/responses/response_reasoning_text_done_event.py +27 -0
- openai/types/responses/response_refusal_delta_event.py +27 -0
- openai/types/responses/response_refusal_done_event.py +27 -0
- openai/types/responses/response_retrieve_params.py +59 -0
- openai/types/responses/response_status.py +7 -0
- openai/types/responses/response_stream_event.py +120 -0
- openai/types/responses/response_text_config.py +35 -0
- openai/types/responses/response_text_config_param.py +36 -0
- openai/types/responses/response_text_delta_event.py +50 -0
- openai/types/responses/response_text_done_event.py +50 -0
- openai/types/responses/response_usage.py +35 -0
- openai/types/responses/response_web_search_call_completed_event.py +21 -0
- openai/types/responses/response_web_search_call_in_progress_event.py +21 -0
- openai/types/responses/response_web_search_call_searching_event.py +21 -0
- openai/types/responses/tool.py +271 -0
- openai/types/responses/tool_choice_allowed.py +36 -0
- openai/types/responses/tool_choice_allowed_param.py +36 -0
- openai/types/responses/tool_choice_apply_patch.py +12 -0
- openai/types/responses/tool_choice_apply_patch_param.py +12 -0
- openai/types/responses/tool_choice_custom.py +15 -0
- openai/types/responses/tool_choice_custom_param.py +15 -0
- openai/types/responses/tool_choice_function.py +15 -0
- openai/types/responses/tool_choice_function_param.py +15 -0
- openai/types/responses/tool_choice_mcp.py +19 -0
- openai/types/responses/tool_choice_mcp_param.py +19 -0
- openai/types/responses/tool_choice_options.py +7 -0
- openai/types/responses/tool_choice_shell.py +12 -0
- openai/types/responses/tool_choice_shell_param.py +12 -0
- openai/types/responses/tool_choice_types.py +31 -0
- openai/types/responses/tool_choice_types_param.py +33 -0
- openai/types/responses/tool_param.py +271 -0
- openai/types/responses/web_search_preview_tool.py +49 -0
- openai/types/responses/web_search_preview_tool_param.py +49 -0
- openai/types/responses/web_search_tool.py +63 -0
- openai/types/responses/web_search_tool_param.py +65 -0
- openai/types/shared/__init__.py +19 -0
- openai/types/shared/all_models.py +28 -0
- openai/types/shared/chat_model.py +75 -0
- openai/types/shared/comparison_filter.py +34 -0
- openai/types/shared/compound_filter.py +22 -0
- openai/types/shared/custom_tool_input_format.py +28 -0
- openai/types/shared/error_object.py +17 -0
- openai/types/shared/function_definition.py +43 -0
- openai/types/shared/function_parameters.py +8 -0
- openai/types/shared/metadata.py +8 -0
- openai/types/shared/reasoning.py +44 -0
- openai/types/shared/reasoning_effort.py +8 -0
- openai/types/shared/response_format_json_object.py +12 -0
- openai/types/shared/response_format_json_schema.py +48 -0
- openai/types/shared/response_format_text.py +12 -0
- openai/types/shared/response_format_text_grammar.py +15 -0
- openai/types/shared/response_format_text_python.py +12 -0
- openai/types/shared/responses_model.py +28 -0
- openai/types/shared_params/__init__.py +15 -0
- openai/types/shared_params/chat_model.py +77 -0
- openai/types/shared_params/comparison_filter.py +36 -0
- openai/types/shared_params/compound_filter.py +23 -0
- openai/types/shared_params/custom_tool_input_format.py +27 -0
- openai/types/shared_params/function_definition.py +45 -0
- openai/types/shared_params/function_parameters.py +10 -0
- openai/types/shared_params/metadata.py +10 -0
- openai/types/shared_params/reasoning.py +45 -0
- openai/types/shared_params/reasoning_effort.py +10 -0
- openai/types/shared_params/response_format_json_object.py +12 -0
- openai/types/shared_params/response_format_json_schema.py +46 -0
- openai/types/shared_params/response_format_text.py +12 -0
- openai/types/shared_params/responses_model.py +30 -0
- openai/types/static_file_chunking_strategy.py +20 -0
- openai/types/static_file_chunking_strategy_object.py +15 -0
- openai/types/static_file_chunking_strategy_object_param.py +16 -0
- openai/types/static_file_chunking_strategy_param.py +22 -0
- openai/types/upload.py +42 -0
- openai/types/upload_complete_params.py +20 -0
- openai/types/upload_create_params.py +52 -0
- openai/types/uploads/__init__.py +6 -0
- openai/types/uploads/part_create_params.py +14 -0
- openai/types/uploads/upload_part.py +21 -0
- openai/types/vector_store.py +82 -0
- openai/types/vector_store_create_params.py +61 -0
- openai/types/vector_store_deleted.py +15 -0
- openai/types/vector_store_list_params.py +39 -0
- openai/types/vector_store_search_params.py +42 -0
- openai/types/vector_store_search_response.py +39 -0
- openai/types/vector_store_update_params.py +39 -0
- openai/types/vector_stores/__init__.py +13 -0
- openai/types/vector_stores/file_batch_create_params.py +70 -0
- openai/types/vector_stores/file_batch_list_files_params.py +47 -0
- openai/types/vector_stores/file_content_response.py +15 -0
- openai/types/vector_stores/file_create_params.py +35 -0
- openai/types/vector_stores/file_list_params.py +45 -0
- openai/types/vector_stores/file_update_params.py +21 -0
- openai/types/vector_stores/vector_store_file.py +67 -0
- openai/types/vector_stores/vector_store_file_batch.py +54 -0
- openai/types/vector_stores/vector_store_file_deleted.py +15 -0
- openai/types/video.py +53 -0
- openai/types/video_create_error.py +11 -0
- openai/types/video_create_params.py +29 -0
- openai/types/video_delete_response.py +18 -0
- openai/types/video_download_content_params.py +12 -0
- openai/types/video_list_params.py +21 -0
- openai/types/video_model.py +7 -0
- openai/types/video_remix_params.py +12 -0
- openai/types/video_seconds.py +7 -0
- openai/types/video_size.py +7 -0
- openai/types/webhooks/__init__.py +24 -0
- openai/types/webhooks/batch_cancelled_webhook_event.py +30 -0
- openai/types/webhooks/batch_completed_webhook_event.py +30 -0
- openai/types/webhooks/batch_expired_webhook_event.py +30 -0
- openai/types/webhooks/batch_failed_webhook_event.py +30 -0
- openai/types/webhooks/eval_run_canceled_webhook_event.py +30 -0
- openai/types/webhooks/eval_run_failed_webhook_event.py +30 -0
- openai/types/webhooks/eval_run_succeeded_webhook_event.py +30 -0
- openai/types/webhooks/fine_tuning_job_cancelled_webhook_event.py +30 -0
- openai/types/webhooks/fine_tuning_job_failed_webhook_event.py +30 -0
- openai/types/webhooks/fine_tuning_job_succeeded_webhook_event.py +30 -0
- openai/types/webhooks/realtime_call_incoming_webhook_event.py +41 -0
- openai/types/webhooks/response_cancelled_webhook_event.py +30 -0
- openai/types/webhooks/response_completed_webhook_event.py +30 -0
- openai/types/webhooks/response_failed_webhook_event.py +30 -0
- openai/types/webhooks/response_incomplete_webhook_event.py +30 -0
- openai/types/webhooks/unwrap_webhook_event.py +44 -0
- openai/types/websocket_connection_options.py +36 -0
- openai/version.py +3 -0
openai/_client.py
ADDED
|
@@ -0,0 +1,1272 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import os
|
|
6
|
+
from typing import TYPE_CHECKING, Any, Mapping, Callable, Awaitable
|
|
7
|
+
from typing_extensions import Self, override
|
|
8
|
+
|
|
9
|
+
import httpx
|
|
10
|
+
|
|
11
|
+
from . import _exceptions
|
|
12
|
+
from ._qs import Querystring
|
|
13
|
+
from ._types import (
|
|
14
|
+
Omit,
|
|
15
|
+
Timeout,
|
|
16
|
+
NotGiven,
|
|
17
|
+
Transport,
|
|
18
|
+
ProxiesTypes,
|
|
19
|
+
RequestOptions,
|
|
20
|
+
not_given,
|
|
21
|
+
)
|
|
22
|
+
from ._utils import (
|
|
23
|
+
is_given,
|
|
24
|
+
is_mapping,
|
|
25
|
+
get_async_library,
|
|
26
|
+
)
|
|
27
|
+
from ._compat import cached_property
|
|
28
|
+
from ._models import FinalRequestOptions
|
|
29
|
+
from ._version import __version__
|
|
30
|
+
from ._streaming import Stream as Stream, AsyncStream as AsyncStream
|
|
31
|
+
from ._exceptions import OpenAIError, APIStatusError
|
|
32
|
+
from ._base_client import (
|
|
33
|
+
DEFAULT_MAX_RETRIES,
|
|
34
|
+
SyncAPIClient,
|
|
35
|
+
AsyncAPIClient,
|
|
36
|
+
)
|
|
37
|
+
|
|
38
|
+
if TYPE_CHECKING:
|
|
39
|
+
from .resources import (
|
|
40
|
+
beta,
|
|
41
|
+
chat,
|
|
42
|
+
audio,
|
|
43
|
+
evals,
|
|
44
|
+
files,
|
|
45
|
+
images,
|
|
46
|
+
models,
|
|
47
|
+
videos,
|
|
48
|
+
batches,
|
|
49
|
+
uploads,
|
|
50
|
+
realtime,
|
|
51
|
+
responses,
|
|
52
|
+
containers,
|
|
53
|
+
embeddings,
|
|
54
|
+
completions,
|
|
55
|
+
fine_tuning,
|
|
56
|
+
moderations,
|
|
57
|
+
conversations,
|
|
58
|
+
vector_stores,
|
|
59
|
+
)
|
|
60
|
+
from .resources.files import Files, AsyncFiles
|
|
61
|
+
from .resources.images import Images, AsyncImages
|
|
62
|
+
from .resources.models import Models, AsyncModels
|
|
63
|
+
from .resources.videos import Videos, AsyncVideos
|
|
64
|
+
from .resources.batches import Batches, AsyncBatches
|
|
65
|
+
from .resources.webhooks import Webhooks, AsyncWebhooks
|
|
66
|
+
from .resources.beta.beta import Beta, AsyncBeta
|
|
67
|
+
from .resources.chat.chat import Chat, AsyncChat
|
|
68
|
+
from .resources.embeddings import Embeddings, AsyncEmbeddings
|
|
69
|
+
from .resources.audio.audio import Audio, AsyncAudio
|
|
70
|
+
from .resources.completions import Completions, AsyncCompletions
|
|
71
|
+
from .resources.evals.evals import Evals, AsyncEvals
|
|
72
|
+
from .resources.moderations import Moderations, AsyncModerations
|
|
73
|
+
from .resources.uploads.uploads import Uploads, AsyncUploads
|
|
74
|
+
from .resources.realtime.realtime import Realtime, AsyncRealtime
|
|
75
|
+
from .resources.responses.responses import Responses, AsyncResponses
|
|
76
|
+
from .resources.containers.containers import Containers, AsyncContainers
|
|
77
|
+
from .resources.fine_tuning.fine_tuning import FineTuning, AsyncFineTuning
|
|
78
|
+
from .resources.conversations.conversations import Conversations, AsyncConversations
|
|
79
|
+
from .resources.vector_stores.vector_stores import VectorStores, AsyncVectorStores
|
|
80
|
+
|
|
81
|
+
__all__ = ["Timeout", "Transport", "ProxiesTypes", "RequestOptions", "OpenAI", "AsyncOpenAI", "Client", "AsyncClient"]
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
class OpenAI(SyncAPIClient):
|
|
85
|
+
# client options
|
|
86
|
+
api_key: str
|
|
87
|
+
organization: str | None
|
|
88
|
+
project: str | None
|
|
89
|
+
webhook_secret: str | None
|
|
90
|
+
|
|
91
|
+
websocket_base_url: str | httpx.URL | None
|
|
92
|
+
"""Base URL for WebSocket connections.
|
|
93
|
+
|
|
94
|
+
If not specified, the default base URL will be used, with 'wss://' replacing the
|
|
95
|
+
'http://' or 'https://' scheme. For example: 'http://example.com' becomes
|
|
96
|
+
'wss://example.com'
|
|
97
|
+
"""
|
|
98
|
+
|
|
99
|
+
def __init__(
|
|
100
|
+
self,
|
|
101
|
+
*,
|
|
102
|
+
api_key: str | None | Callable[[], str] = None,
|
|
103
|
+
organization: str | None = None,
|
|
104
|
+
project: str | None = None,
|
|
105
|
+
webhook_secret: str | None = None,
|
|
106
|
+
base_url: str | httpx.URL | None = None,
|
|
107
|
+
websocket_base_url: str | httpx.URL | None = None,
|
|
108
|
+
timeout: float | Timeout | None | NotGiven = not_given,
|
|
109
|
+
max_retries: int = DEFAULT_MAX_RETRIES,
|
|
110
|
+
default_headers: Mapping[str, str] | None = None,
|
|
111
|
+
default_query: Mapping[str, object] | None = None,
|
|
112
|
+
# Configure a custom httpx client.
|
|
113
|
+
# We provide a `DefaultHttpxClient` class that you can pass to retain the default values we use for `limits`, `timeout` & `follow_redirects`.
|
|
114
|
+
# See the [httpx documentation](https://www.python-httpx.org/api/#client) for more details.
|
|
115
|
+
http_client: httpx.Client | None = None,
|
|
116
|
+
# Enable or disable schema validation for data returned by the API.
|
|
117
|
+
# When enabled an error APIResponseValidationError is raised
|
|
118
|
+
# if the API responds with invalid data for the expected schema.
|
|
119
|
+
#
|
|
120
|
+
# This parameter may be removed or changed in the future.
|
|
121
|
+
# If you rely on this feature, please open a GitHub issue
|
|
122
|
+
# outlining your use-case to help us decide if it should be
|
|
123
|
+
# part of our public interface in the future.
|
|
124
|
+
_strict_response_validation: bool = False,
|
|
125
|
+
) -> None:
|
|
126
|
+
"""Construct a new synchronous OpenAI client instance.
|
|
127
|
+
|
|
128
|
+
This automatically infers the following arguments from their corresponding environment variables if they are not provided:
|
|
129
|
+
- `api_key` from `OPENAI_API_KEY`
|
|
130
|
+
- `organization` from `OPENAI_ORG_ID`
|
|
131
|
+
- `project` from `OPENAI_PROJECT_ID`
|
|
132
|
+
- `webhook_secret` from `OPENAI_WEBHOOK_SECRET`
|
|
133
|
+
"""
|
|
134
|
+
if api_key is None:
|
|
135
|
+
api_key = os.environ.get("OPENAI_API_KEY")
|
|
136
|
+
if api_key is None:
|
|
137
|
+
raise OpenAIError(
|
|
138
|
+
"The api_key client option must be set either by passing api_key to the client or by setting the OPENAI_API_KEY environment variable"
|
|
139
|
+
)
|
|
140
|
+
if callable(api_key):
|
|
141
|
+
self.api_key = ""
|
|
142
|
+
self._api_key_provider: Callable[[], str] | None = api_key
|
|
143
|
+
else:
|
|
144
|
+
self.api_key = api_key
|
|
145
|
+
self._api_key_provider = None
|
|
146
|
+
|
|
147
|
+
if organization is None:
|
|
148
|
+
organization = os.environ.get("OPENAI_ORG_ID")
|
|
149
|
+
self.organization = organization
|
|
150
|
+
|
|
151
|
+
if project is None:
|
|
152
|
+
project = os.environ.get("OPENAI_PROJECT_ID")
|
|
153
|
+
self.project = project
|
|
154
|
+
|
|
155
|
+
if webhook_secret is None:
|
|
156
|
+
webhook_secret = os.environ.get("OPENAI_WEBHOOK_SECRET")
|
|
157
|
+
self.webhook_secret = webhook_secret
|
|
158
|
+
|
|
159
|
+
self.websocket_base_url = websocket_base_url
|
|
160
|
+
|
|
161
|
+
if base_url is None:
|
|
162
|
+
base_url = os.environ.get("OPENAI_BASE_URL")
|
|
163
|
+
if base_url is None:
|
|
164
|
+
base_url = f"https://api.openai.com/v1"
|
|
165
|
+
|
|
166
|
+
super().__init__(
|
|
167
|
+
version=__version__,
|
|
168
|
+
base_url=base_url,
|
|
169
|
+
max_retries=max_retries,
|
|
170
|
+
timeout=timeout,
|
|
171
|
+
http_client=http_client,
|
|
172
|
+
custom_headers=default_headers,
|
|
173
|
+
custom_query=default_query,
|
|
174
|
+
_strict_response_validation=_strict_response_validation,
|
|
175
|
+
)
|
|
176
|
+
|
|
177
|
+
self._default_stream_cls = Stream
|
|
178
|
+
|
|
179
|
+
@cached_property
|
|
180
|
+
def completions(self) -> Completions:
|
|
181
|
+
from .resources.completions import Completions
|
|
182
|
+
|
|
183
|
+
return Completions(self)
|
|
184
|
+
|
|
185
|
+
@cached_property
|
|
186
|
+
def chat(self) -> Chat:
|
|
187
|
+
from .resources.chat import Chat
|
|
188
|
+
|
|
189
|
+
return Chat(self)
|
|
190
|
+
|
|
191
|
+
@cached_property
|
|
192
|
+
def embeddings(self) -> Embeddings:
|
|
193
|
+
from .resources.embeddings import Embeddings
|
|
194
|
+
|
|
195
|
+
return Embeddings(self)
|
|
196
|
+
|
|
197
|
+
@cached_property
|
|
198
|
+
def files(self) -> Files:
|
|
199
|
+
from .resources.files import Files
|
|
200
|
+
|
|
201
|
+
return Files(self)
|
|
202
|
+
|
|
203
|
+
@cached_property
|
|
204
|
+
def images(self) -> Images:
|
|
205
|
+
from .resources.images import Images
|
|
206
|
+
|
|
207
|
+
return Images(self)
|
|
208
|
+
|
|
209
|
+
@cached_property
|
|
210
|
+
def audio(self) -> Audio:
|
|
211
|
+
from .resources.audio import Audio
|
|
212
|
+
|
|
213
|
+
return Audio(self)
|
|
214
|
+
|
|
215
|
+
@cached_property
|
|
216
|
+
def moderations(self) -> Moderations:
|
|
217
|
+
from .resources.moderations import Moderations
|
|
218
|
+
|
|
219
|
+
return Moderations(self)
|
|
220
|
+
|
|
221
|
+
@cached_property
|
|
222
|
+
def models(self) -> Models:
|
|
223
|
+
from .resources.models import Models
|
|
224
|
+
|
|
225
|
+
return Models(self)
|
|
226
|
+
|
|
227
|
+
@cached_property
|
|
228
|
+
def fine_tuning(self) -> FineTuning:
|
|
229
|
+
from .resources.fine_tuning import FineTuning
|
|
230
|
+
|
|
231
|
+
return FineTuning(self)
|
|
232
|
+
|
|
233
|
+
@cached_property
|
|
234
|
+
def vector_stores(self) -> VectorStores:
|
|
235
|
+
from .resources.vector_stores import VectorStores
|
|
236
|
+
|
|
237
|
+
return VectorStores(self)
|
|
238
|
+
|
|
239
|
+
@cached_property
|
|
240
|
+
def webhooks(self) -> Webhooks:
|
|
241
|
+
from .resources.webhooks import Webhooks
|
|
242
|
+
|
|
243
|
+
return Webhooks(self)
|
|
244
|
+
|
|
245
|
+
@cached_property
|
|
246
|
+
def beta(self) -> Beta:
|
|
247
|
+
from .resources.beta import Beta
|
|
248
|
+
|
|
249
|
+
return Beta(self)
|
|
250
|
+
|
|
251
|
+
@cached_property
|
|
252
|
+
def batches(self) -> Batches:
|
|
253
|
+
from .resources.batches import Batches
|
|
254
|
+
|
|
255
|
+
return Batches(self)
|
|
256
|
+
|
|
257
|
+
@cached_property
|
|
258
|
+
def uploads(self) -> Uploads:
|
|
259
|
+
from .resources.uploads import Uploads
|
|
260
|
+
|
|
261
|
+
return Uploads(self)
|
|
262
|
+
|
|
263
|
+
@cached_property
|
|
264
|
+
def responses(self) -> Responses:
|
|
265
|
+
from .resources.responses import Responses
|
|
266
|
+
|
|
267
|
+
return Responses(self)
|
|
268
|
+
|
|
269
|
+
@cached_property
|
|
270
|
+
def realtime(self) -> Realtime:
|
|
271
|
+
from .resources.realtime import Realtime
|
|
272
|
+
|
|
273
|
+
return Realtime(self)
|
|
274
|
+
|
|
275
|
+
@cached_property
|
|
276
|
+
def conversations(self) -> Conversations:
|
|
277
|
+
from .resources.conversations import Conversations
|
|
278
|
+
|
|
279
|
+
return Conversations(self)
|
|
280
|
+
|
|
281
|
+
@cached_property
|
|
282
|
+
def evals(self) -> Evals:
|
|
283
|
+
from .resources.evals import Evals
|
|
284
|
+
|
|
285
|
+
return Evals(self)
|
|
286
|
+
|
|
287
|
+
@cached_property
|
|
288
|
+
def containers(self) -> Containers:
|
|
289
|
+
from .resources.containers import Containers
|
|
290
|
+
|
|
291
|
+
return Containers(self)
|
|
292
|
+
|
|
293
|
+
@cached_property
|
|
294
|
+
def videos(self) -> Videos:
|
|
295
|
+
from .resources.videos import Videos
|
|
296
|
+
|
|
297
|
+
return Videos(self)
|
|
298
|
+
|
|
299
|
+
@cached_property
|
|
300
|
+
def with_raw_response(self) -> OpenAIWithRawResponse:
|
|
301
|
+
return OpenAIWithRawResponse(self)
|
|
302
|
+
|
|
303
|
+
@cached_property
|
|
304
|
+
def with_streaming_response(self) -> OpenAIWithStreamedResponse:
|
|
305
|
+
return OpenAIWithStreamedResponse(self)
|
|
306
|
+
|
|
307
|
+
@property
|
|
308
|
+
@override
|
|
309
|
+
def qs(self) -> Querystring:
|
|
310
|
+
return Querystring(array_format="brackets")
|
|
311
|
+
|
|
312
|
+
def _refresh_api_key(self) -> None:
|
|
313
|
+
if self._api_key_provider:
|
|
314
|
+
self.api_key = self._api_key_provider()
|
|
315
|
+
|
|
316
|
+
@override
|
|
317
|
+
def _prepare_options(self, options: FinalRequestOptions) -> FinalRequestOptions:
|
|
318
|
+
self._refresh_api_key()
|
|
319
|
+
return super()._prepare_options(options)
|
|
320
|
+
|
|
321
|
+
@property
|
|
322
|
+
@override
|
|
323
|
+
def auth_headers(self) -> dict[str, str]:
|
|
324
|
+
api_key = self.api_key
|
|
325
|
+
if not api_key:
|
|
326
|
+
# if the api key is an empty string, encoding the header will fail
|
|
327
|
+
return {}
|
|
328
|
+
return {"Authorization": f"Bearer {api_key}"}
|
|
329
|
+
|
|
330
|
+
@property
|
|
331
|
+
@override
|
|
332
|
+
def default_headers(self) -> dict[str, str | Omit]:
|
|
333
|
+
return {
|
|
334
|
+
**super().default_headers,
|
|
335
|
+
"X-Stainless-Async": "false",
|
|
336
|
+
"OpenAI-Organization": self.organization if self.organization is not None else Omit(),
|
|
337
|
+
"OpenAI-Project": self.project if self.project is not None else Omit(),
|
|
338
|
+
**self._custom_headers,
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
def copy(
|
|
342
|
+
self,
|
|
343
|
+
*,
|
|
344
|
+
api_key: str | Callable[[], str] | None = None,
|
|
345
|
+
organization: str | None = None,
|
|
346
|
+
project: str | None = None,
|
|
347
|
+
webhook_secret: str | None = None,
|
|
348
|
+
websocket_base_url: str | httpx.URL | None = None,
|
|
349
|
+
base_url: str | httpx.URL | None = None,
|
|
350
|
+
timeout: float | Timeout | None | NotGiven = not_given,
|
|
351
|
+
http_client: httpx.Client | None = None,
|
|
352
|
+
max_retries: int | NotGiven = not_given,
|
|
353
|
+
default_headers: Mapping[str, str] | None = None,
|
|
354
|
+
set_default_headers: Mapping[str, str] | None = None,
|
|
355
|
+
default_query: Mapping[str, object] | None = None,
|
|
356
|
+
set_default_query: Mapping[str, object] | None = None,
|
|
357
|
+
_extra_kwargs: Mapping[str, Any] = {},
|
|
358
|
+
) -> Self:
|
|
359
|
+
"""
|
|
360
|
+
Create a new client instance re-using the same options given to the current client with optional overriding.
|
|
361
|
+
"""
|
|
362
|
+
if default_headers is not None and set_default_headers is not None:
|
|
363
|
+
raise ValueError("The `default_headers` and `set_default_headers` arguments are mutually exclusive")
|
|
364
|
+
|
|
365
|
+
if default_query is not None and set_default_query is not None:
|
|
366
|
+
raise ValueError("The `default_query` and `set_default_query` arguments are mutually exclusive")
|
|
367
|
+
|
|
368
|
+
headers = self._custom_headers
|
|
369
|
+
if default_headers is not None:
|
|
370
|
+
headers = {**headers, **default_headers}
|
|
371
|
+
elif set_default_headers is not None:
|
|
372
|
+
headers = set_default_headers
|
|
373
|
+
|
|
374
|
+
params = self._custom_query
|
|
375
|
+
if default_query is not None:
|
|
376
|
+
params = {**params, **default_query}
|
|
377
|
+
elif set_default_query is not None:
|
|
378
|
+
params = set_default_query
|
|
379
|
+
|
|
380
|
+
http_client = http_client or self._client
|
|
381
|
+
return self.__class__(
|
|
382
|
+
api_key=api_key or self._api_key_provider or self.api_key,
|
|
383
|
+
organization=organization or self.organization,
|
|
384
|
+
project=project or self.project,
|
|
385
|
+
webhook_secret=webhook_secret or self.webhook_secret,
|
|
386
|
+
websocket_base_url=websocket_base_url or self.websocket_base_url,
|
|
387
|
+
base_url=base_url or self.base_url,
|
|
388
|
+
timeout=self.timeout if isinstance(timeout, NotGiven) else timeout,
|
|
389
|
+
http_client=http_client,
|
|
390
|
+
max_retries=max_retries if is_given(max_retries) else self.max_retries,
|
|
391
|
+
default_headers=headers,
|
|
392
|
+
default_query=params,
|
|
393
|
+
**_extra_kwargs,
|
|
394
|
+
)
|
|
395
|
+
|
|
396
|
+
# Alias for `copy` for nicer inline usage, e.g.
|
|
397
|
+
# client.with_options(timeout=10).foo.create(...)
|
|
398
|
+
with_options = copy
|
|
399
|
+
|
|
400
|
+
@override
|
|
401
|
+
def _make_status_error(
|
|
402
|
+
self,
|
|
403
|
+
err_msg: str,
|
|
404
|
+
*,
|
|
405
|
+
body: object,
|
|
406
|
+
response: httpx.Response,
|
|
407
|
+
) -> APIStatusError:
|
|
408
|
+
data = body.get("error", body) if is_mapping(body) else body
|
|
409
|
+
if response.status_code == 400:
|
|
410
|
+
return _exceptions.BadRequestError(err_msg, response=response, body=data)
|
|
411
|
+
|
|
412
|
+
if response.status_code == 401:
|
|
413
|
+
return _exceptions.AuthenticationError(err_msg, response=response, body=data)
|
|
414
|
+
|
|
415
|
+
if response.status_code == 403:
|
|
416
|
+
return _exceptions.PermissionDeniedError(err_msg, response=response, body=data)
|
|
417
|
+
|
|
418
|
+
if response.status_code == 404:
|
|
419
|
+
return _exceptions.NotFoundError(err_msg, response=response, body=data)
|
|
420
|
+
|
|
421
|
+
if response.status_code == 409:
|
|
422
|
+
return _exceptions.ConflictError(err_msg, response=response, body=data)
|
|
423
|
+
|
|
424
|
+
if response.status_code == 422:
|
|
425
|
+
return _exceptions.UnprocessableEntityError(err_msg, response=response, body=data)
|
|
426
|
+
|
|
427
|
+
if response.status_code == 429:
|
|
428
|
+
return _exceptions.RateLimitError(err_msg, response=response, body=data)
|
|
429
|
+
|
|
430
|
+
if response.status_code >= 500:
|
|
431
|
+
return _exceptions.InternalServerError(err_msg, response=response, body=data)
|
|
432
|
+
return APIStatusError(err_msg, response=response, body=data)
|
|
433
|
+
|
|
434
|
+
|
|
435
|
+
class AsyncOpenAI(AsyncAPIClient):
|
|
436
|
+
# client options
|
|
437
|
+
api_key: str
|
|
438
|
+
organization: str | None
|
|
439
|
+
project: str | None
|
|
440
|
+
webhook_secret: str | None
|
|
441
|
+
|
|
442
|
+
websocket_base_url: str | httpx.URL | None
|
|
443
|
+
"""Base URL for WebSocket connections.
|
|
444
|
+
|
|
445
|
+
If not specified, the default base URL will be used, with 'wss://' replacing the
|
|
446
|
+
'http://' or 'https://' scheme. For example: 'http://example.com' becomes
|
|
447
|
+
'wss://example.com'
|
|
448
|
+
"""
|
|
449
|
+
|
|
450
|
+
def __init__(
|
|
451
|
+
self,
|
|
452
|
+
*,
|
|
453
|
+
api_key: str | Callable[[], Awaitable[str]] | None = None,
|
|
454
|
+
organization: str | None = None,
|
|
455
|
+
project: str | None = None,
|
|
456
|
+
webhook_secret: str | None = None,
|
|
457
|
+
base_url: str | httpx.URL | None = None,
|
|
458
|
+
websocket_base_url: str | httpx.URL | None = None,
|
|
459
|
+
timeout: float | Timeout | None | NotGiven = not_given,
|
|
460
|
+
max_retries: int = DEFAULT_MAX_RETRIES,
|
|
461
|
+
default_headers: Mapping[str, str] | None = None,
|
|
462
|
+
default_query: Mapping[str, object] | None = None,
|
|
463
|
+
# Configure a custom httpx client.
|
|
464
|
+
# We provide a `DefaultAsyncHttpxClient` class that you can pass to retain the default values we use for `limits`, `timeout` & `follow_redirects`.
|
|
465
|
+
# See the [httpx documentation](https://www.python-httpx.org/api/#asyncclient) for more details.
|
|
466
|
+
http_client: httpx.AsyncClient | None = None,
|
|
467
|
+
# Enable or disable schema validation for data returned by the API.
|
|
468
|
+
# When enabled an error APIResponseValidationError is raised
|
|
469
|
+
# if the API responds with invalid data for the expected schema.
|
|
470
|
+
#
|
|
471
|
+
# This parameter may be removed or changed in the future.
|
|
472
|
+
# If you rely on this feature, please open a GitHub issue
|
|
473
|
+
# outlining your use-case to help us decide if it should be
|
|
474
|
+
# part of our public interface in the future.
|
|
475
|
+
_strict_response_validation: bool = False,
|
|
476
|
+
) -> None:
|
|
477
|
+
"""Construct a new async AsyncOpenAI client instance.
|
|
478
|
+
|
|
479
|
+
This automatically infers the following arguments from their corresponding environment variables if they are not provided:
|
|
480
|
+
- `api_key` from `OPENAI_API_KEY`
|
|
481
|
+
- `organization` from `OPENAI_ORG_ID`
|
|
482
|
+
- `project` from `OPENAI_PROJECT_ID`
|
|
483
|
+
- `webhook_secret` from `OPENAI_WEBHOOK_SECRET`
|
|
484
|
+
"""
|
|
485
|
+
if api_key is None:
|
|
486
|
+
api_key = os.environ.get("OPENAI_API_KEY")
|
|
487
|
+
if api_key is None:
|
|
488
|
+
raise OpenAIError(
|
|
489
|
+
"The api_key client option must be set either by passing api_key to the client or by setting the OPENAI_API_KEY environment variable"
|
|
490
|
+
)
|
|
491
|
+
if callable(api_key):
|
|
492
|
+
self.api_key = ""
|
|
493
|
+
self._api_key_provider: Callable[[], Awaitable[str]] | None = api_key
|
|
494
|
+
else:
|
|
495
|
+
self.api_key = api_key
|
|
496
|
+
self._api_key_provider = None
|
|
497
|
+
|
|
498
|
+
if organization is None:
|
|
499
|
+
organization = os.environ.get("OPENAI_ORG_ID")
|
|
500
|
+
self.organization = organization
|
|
501
|
+
|
|
502
|
+
if project is None:
|
|
503
|
+
project = os.environ.get("OPENAI_PROJECT_ID")
|
|
504
|
+
self.project = project
|
|
505
|
+
|
|
506
|
+
if webhook_secret is None:
|
|
507
|
+
webhook_secret = os.environ.get("OPENAI_WEBHOOK_SECRET")
|
|
508
|
+
self.webhook_secret = webhook_secret
|
|
509
|
+
|
|
510
|
+
self.websocket_base_url = websocket_base_url
|
|
511
|
+
|
|
512
|
+
if base_url is None:
|
|
513
|
+
base_url = os.environ.get("OPENAI_BASE_URL")
|
|
514
|
+
if base_url is None:
|
|
515
|
+
base_url = f"https://api.openai.com/v1"
|
|
516
|
+
|
|
517
|
+
super().__init__(
|
|
518
|
+
version=__version__,
|
|
519
|
+
base_url=base_url,
|
|
520
|
+
max_retries=max_retries,
|
|
521
|
+
timeout=timeout,
|
|
522
|
+
http_client=http_client,
|
|
523
|
+
custom_headers=default_headers,
|
|
524
|
+
custom_query=default_query,
|
|
525
|
+
_strict_response_validation=_strict_response_validation,
|
|
526
|
+
)
|
|
527
|
+
|
|
528
|
+
self._default_stream_cls = AsyncStream
|
|
529
|
+
|
|
530
|
+
@cached_property
|
|
531
|
+
def completions(self) -> AsyncCompletions:
|
|
532
|
+
from .resources.completions import AsyncCompletions
|
|
533
|
+
|
|
534
|
+
return AsyncCompletions(self)
|
|
535
|
+
|
|
536
|
+
@cached_property
|
|
537
|
+
def chat(self) -> AsyncChat:
|
|
538
|
+
from .resources.chat import AsyncChat
|
|
539
|
+
|
|
540
|
+
return AsyncChat(self)
|
|
541
|
+
|
|
542
|
+
@cached_property
|
|
543
|
+
def embeddings(self) -> AsyncEmbeddings:
|
|
544
|
+
from .resources.embeddings import AsyncEmbeddings
|
|
545
|
+
|
|
546
|
+
return AsyncEmbeddings(self)
|
|
547
|
+
|
|
548
|
+
@cached_property
|
|
549
|
+
def files(self) -> AsyncFiles:
|
|
550
|
+
from .resources.files import AsyncFiles
|
|
551
|
+
|
|
552
|
+
return AsyncFiles(self)
|
|
553
|
+
|
|
554
|
+
@cached_property
|
|
555
|
+
def images(self) -> AsyncImages:
|
|
556
|
+
from .resources.images import AsyncImages
|
|
557
|
+
|
|
558
|
+
return AsyncImages(self)
|
|
559
|
+
|
|
560
|
+
@cached_property
|
|
561
|
+
def audio(self) -> AsyncAudio:
|
|
562
|
+
from .resources.audio import AsyncAudio
|
|
563
|
+
|
|
564
|
+
return AsyncAudio(self)
|
|
565
|
+
|
|
566
|
+
@cached_property
|
|
567
|
+
def moderations(self) -> AsyncModerations:
|
|
568
|
+
from .resources.moderations import AsyncModerations
|
|
569
|
+
|
|
570
|
+
return AsyncModerations(self)
|
|
571
|
+
|
|
572
|
+
@cached_property
|
|
573
|
+
def models(self) -> AsyncModels:
|
|
574
|
+
from .resources.models import AsyncModels
|
|
575
|
+
|
|
576
|
+
return AsyncModels(self)
|
|
577
|
+
|
|
578
|
+
@cached_property
|
|
579
|
+
def fine_tuning(self) -> AsyncFineTuning:
|
|
580
|
+
from .resources.fine_tuning import AsyncFineTuning
|
|
581
|
+
|
|
582
|
+
return AsyncFineTuning(self)
|
|
583
|
+
|
|
584
|
+
@cached_property
|
|
585
|
+
def vector_stores(self) -> AsyncVectorStores:
|
|
586
|
+
from .resources.vector_stores import AsyncVectorStores
|
|
587
|
+
|
|
588
|
+
return AsyncVectorStores(self)
|
|
589
|
+
|
|
590
|
+
@cached_property
|
|
591
|
+
def webhooks(self) -> AsyncWebhooks:
|
|
592
|
+
from .resources.webhooks import AsyncWebhooks
|
|
593
|
+
|
|
594
|
+
return AsyncWebhooks(self)
|
|
595
|
+
|
|
596
|
+
@cached_property
|
|
597
|
+
def beta(self) -> AsyncBeta:
|
|
598
|
+
from .resources.beta import AsyncBeta
|
|
599
|
+
|
|
600
|
+
return AsyncBeta(self)
|
|
601
|
+
|
|
602
|
+
@cached_property
|
|
603
|
+
def batches(self) -> AsyncBatches:
|
|
604
|
+
from .resources.batches import AsyncBatches
|
|
605
|
+
|
|
606
|
+
return AsyncBatches(self)
|
|
607
|
+
|
|
608
|
+
@cached_property
|
|
609
|
+
def uploads(self) -> AsyncUploads:
|
|
610
|
+
from .resources.uploads import AsyncUploads
|
|
611
|
+
|
|
612
|
+
return AsyncUploads(self)
|
|
613
|
+
|
|
614
|
+
@cached_property
|
|
615
|
+
def responses(self) -> AsyncResponses:
|
|
616
|
+
from .resources.responses import AsyncResponses
|
|
617
|
+
|
|
618
|
+
return AsyncResponses(self)
|
|
619
|
+
|
|
620
|
+
@cached_property
|
|
621
|
+
def realtime(self) -> AsyncRealtime:
|
|
622
|
+
from .resources.realtime import AsyncRealtime
|
|
623
|
+
|
|
624
|
+
return AsyncRealtime(self)
|
|
625
|
+
|
|
626
|
+
@cached_property
|
|
627
|
+
def conversations(self) -> AsyncConversations:
|
|
628
|
+
from .resources.conversations import AsyncConversations
|
|
629
|
+
|
|
630
|
+
return AsyncConversations(self)
|
|
631
|
+
|
|
632
|
+
@cached_property
|
|
633
|
+
def evals(self) -> AsyncEvals:
|
|
634
|
+
from .resources.evals import AsyncEvals
|
|
635
|
+
|
|
636
|
+
return AsyncEvals(self)
|
|
637
|
+
|
|
638
|
+
@cached_property
|
|
639
|
+
def containers(self) -> AsyncContainers:
|
|
640
|
+
from .resources.containers import AsyncContainers
|
|
641
|
+
|
|
642
|
+
return AsyncContainers(self)
|
|
643
|
+
|
|
644
|
+
@cached_property
|
|
645
|
+
def videos(self) -> AsyncVideos:
|
|
646
|
+
from .resources.videos import AsyncVideos
|
|
647
|
+
|
|
648
|
+
return AsyncVideos(self)
|
|
649
|
+
|
|
650
|
+
@cached_property
|
|
651
|
+
def with_raw_response(self) -> AsyncOpenAIWithRawResponse:
|
|
652
|
+
return AsyncOpenAIWithRawResponse(self)
|
|
653
|
+
|
|
654
|
+
@cached_property
|
|
655
|
+
def with_streaming_response(self) -> AsyncOpenAIWithStreamedResponse:
|
|
656
|
+
return AsyncOpenAIWithStreamedResponse(self)
|
|
657
|
+
|
|
658
|
+
@property
|
|
659
|
+
@override
|
|
660
|
+
def qs(self) -> Querystring:
|
|
661
|
+
return Querystring(array_format="brackets")
|
|
662
|
+
|
|
663
|
+
async def _refresh_api_key(self) -> None:
|
|
664
|
+
if self._api_key_provider:
|
|
665
|
+
self.api_key = await self._api_key_provider()
|
|
666
|
+
|
|
667
|
+
@override
|
|
668
|
+
async def _prepare_options(self, options: FinalRequestOptions) -> FinalRequestOptions:
|
|
669
|
+
await self._refresh_api_key()
|
|
670
|
+
return await super()._prepare_options(options)
|
|
671
|
+
|
|
672
|
+
@property
|
|
673
|
+
@override
|
|
674
|
+
def auth_headers(self) -> dict[str, str]:
|
|
675
|
+
api_key = self.api_key
|
|
676
|
+
if not api_key:
|
|
677
|
+
# if the api key is an empty string, encoding the header will fail
|
|
678
|
+
return {}
|
|
679
|
+
return {"Authorization": f"Bearer {api_key}"}
|
|
680
|
+
|
|
681
|
+
@property
|
|
682
|
+
@override
|
|
683
|
+
def default_headers(self) -> dict[str, str | Omit]:
|
|
684
|
+
return {
|
|
685
|
+
**super().default_headers,
|
|
686
|
+
"X-Stainless-Async": f"async:{get_async_library()}",
|
|
687
|
+
"OpenAI-Organization": self.organization if self.organization is not None else Omit(),
|
|
688
|
+
"OpenAI-Project": self.project if self.project is not None else Omit(),
|
|
689
|
+
**self._custom_headers,
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
def copy(
|
|
693
|
+
self,
|
|
694
|
+
*,
|
|
695
|
+
api_key: str | Callable[[], Awaitable[str]] | None = None,
|
|
696
|
+
organization: str | None = None,
|
|
697
|
+
project: str | None = None,
|
|
698
|
+
webhook_secret: str | None = None,
|
|
699
|
+
websocket_base_url: str | httpx.URL | None = None,
|
|
700
|
+
base_url: str | httpx.URL | None = None,
|
|
701
|
+
timeout: float | Timeout | None | NotGiven = not_given,
|
|
702
|
+
http_client: httpx.AsyncClient | None = None,
|
|
703
|
+
max_retries: int | NotGiven = not_given,
|
|
704
|
+
default_headers: Mapping[str, str] | None = None,
|
|
705
|
+
set_default_headers: Mapping[str, str] | None = None,
|
|
706
|
+
default_query: Mapping[str, object] | None = None,
|
|
707
|
+
set_default_query: Mapping[str, object] | None = None,
|
|
708
|
+
_extra_kwargs: Mapping[str, Any] = {},
|
|
709
|
+
) -> Self:
|
|
710
|
+
"""
|
|
711
|
+
Create a new client instance re-using the same options given to the current client with optional overriding.
|
|
712
|
+
"""
|
|
713
|
+
if default_headers is not None and set_default_headers is not None:
|
|
714
|
+
raise ValueError("The `default_headers` and `set_default_headers` arguments are mutually exclusive")
|
|
715
|
+
|
|
716
|
+
if default_query is not None and set_default_query is not None:
|
|
717
|
+
raise ValueError("The `default_query` and `set_default_query` arguments are mutually exclusive")
|
|
718
|
+
|
|
719
|
+
headers = self._custom_headers
|
|
720
|
+
if default_headers is not None:
|
|
721
|
+
headers = {**headers, **default_headers}
|
|
722
|
+
elif set_default_headers is not None:
|
|
723
|
+
headers = set_default_headers
|
|
724
|
+
|
|
725
|
+
params = self._custom_query
|
|
726
|
+
if default_query is not None:
|
|
727
|
+
params = {**params, **default_query}
|
|
728
|
+
elif set_default_query is not None:
|
|
729
|
+
params = set_default_query
|
|
730
|
+
|
|
731
|
+
http_client = http_client or self._client
|
|
732
|
+
return self.__class__(
|
|
733
|
+
api_key=api_key or self._api_key_provider or self.api_key,
|
|
734
|
+
organization=organization or self.organization,
|
|
735
|
+
project=project or self.project,
|
|
736
|
+
webhook_secret=webhook_secret or self.webhook_secret,
|
|
737
|
+
websocket_base_url=websocket_base_url or self.websocket_base_url,
|
|
738
|
+
base_url=base_url or self.base_url,
|
|
739
|
+
timeout=self.timeout if isinstance(timeout, NotGiven) else timeout,
|
|
740
|
+
http_client=http_client,
|
|
741
|
+
max_retries=max_retries if is_given(max_retries) else self.max_retries,
|
|
742
|
+
default_headers=headers,
|
|
743
|
+
default_query=params,
|
|
744
|
+
**_extra_kwargs,
|
|
745
|
+
)
|
|
746
|
+
|
|
747
|
+
# Alias for `copy` for nicer inline usage, e.g.
|
|
748
|
+
# client.with_options(timeout=10).foo.create(...)
|
|
749
|
+
with_options = copy
|
|
750
|
+
|
|
751
|
+
@override
|
|
752
|
+
def _make_status_error(
|
|
753
|
+
self,
|
|
754
|
+
err_msg: str,
|
|
755
|
+
*,
|
|
756
|
+
body: object,
|
|
757
|
+
response: httpx.Response,
|
|
758
|
+
) -> APIStatusError:
|
|
759
|
+
data = body.get("error", body) if is_mapping(body) else body
|
|
760
|
+
if response.status_code == 400:
|
|
761
|
+
return _exceptions.BadRequestError(err_msg, response=response, body=data)
|
|
762
|
+
|
|
763
|
+
if response.status_code == 401:
|
|
764
|
+
return _exceptions.AuthenticationError(err_msg, response=response, body=data)
|
|
765
|
+
|
|
766
|
+
if response.status_code == 403:
|
|
767
|
+
return _exceptions.PermissionDeniedError(err_msg, response=response, body=data)
|
|
768
|
+
|
|
769
|
+
if response.status_code == 404:
|
|
770
|
+
return _exceptions.NotFoundError(err_msg, response=response, body=data)
|
|
771
|
+
|
|
772
|
+
if response.status_code == 409:
|
|
773
|
+
return _exceptions.ConflictError(err_msg, response=response, body=data)
|
|
774
|
+
|
|
775
|
+
if response.status_code == 422:
|
|
776
|
+
return _exceptions.UnprocessableEntityError(err_msg, response=response, body=data)
|
|
777
|
+
|
|
778
|
+
if response.status_code == 429:
|
|
779
|
+
return _exceptions.RateLimitError(err_msg, response=response, body=data)
|
|
780
|
+
|
|
781
|
+
if response.status_code >= 500:
|
|
782
|
+
return _exceptions.InternalServerError(err_msg, response=response, body=data)
|
|
783
|
+
return APIStatusError(err_msg, response=response, body=data)
|
|
784
|
+
|
|
785
|
+
|
|
786
|
+
class OpenAIWithRawResponse:
|
|
787
|
+
_client: OpenAI
|
|
788
|
+
|
|
789
|
+
def __init__(self, client: OpenAI) -> None:
|
|
790
|
+
self._client = client
|
|
791
|
+
|
|
792
|
+
@cached_property
|
|
793
|
+
def completions(self) -> completions.CompletionsWithRawResponse:
|
|
794
|
+
from .resources.completions import CompletionsWithRawResponse
|
|
795
|
+
|
|
796
|
+
return CompletionsWithRawResponse(self._client.completions)
|
|
797
|
+
|
|
798
|
+
@cached_property
|
|
799
|
+
def chat(self) -> chat.ChatWithRawResponse:
|
|
800
|
+
from .resources.chat import ChatWithRawResponse
|
|
801
|
+
|
|
802
|
+
return ChatWithRawResponse(self._client.chat)
|
|
803
|
+
|
|
804
|
+
@cached_property
|
|
805
|
+
def embeddings(self) -> embeddings.EmbeddingsWithRawResponse:
|
|
806
|
+
from .resources.embeddings import EmbeddingsWithRawResponse
|
|
807
|
+
|
|
808
|
+
return EmbeddingsWithRawResponse(self._client.embeddings)
|
|
809
|
+
|
|
810
|
+
@cached_property
|
|
811
|
+
def files(self) -> files.FilesWithRawResponse:
|
|
812
|
+
from .resources.files import FilesWithRawResponse
|
|
813
|
+
|
|
814
|
+
return FilesWithRawResponse(self._client.files)
|
|
815
|
+
|
|
816
|
+
@cached_property
|
|
817
|
+
def images(self) -> images.ImagesWithRawResponse:
|
|
818
|
+
from .resources.images import ImagesWithRawResponse
|
|
819
|
+
|
|
820
|
+
return ImagesWithRawResponse(self._client.images)
|
|
821
|
+
|
|
822
|
+
@cached_property
|
|
823
|
+
def audio(self) -> audio.AudioWithRawResponse:
|
|
824
|
+
from .resources.audio import AudioWithRawResponse
|
|
825
|
+
|
|
826
|
+
return AudioWithRawResponse(self._client.audio)
|
|
827
|
+
|
|
828
|
+
@cached_property
|
|
829
|
+
def moderations(self) -> moderations.ModerationsWithRawResponse:
|
|
830
|
+
from .resources.moderations import ModerationsWithRawResponse
|
|
831
|
+
|
|
832
|
+
return ModerationsWithRawResponse(self._client.moderations)
|
|
833
|
+
|
|
834
|
+
@cached_property
|
|
835
|
+
def models(self) -> models.ModelsWithRawResponse:
|
|
836
|
+
from .resources.models import ModelsWithRawResponse
|
|
837
|
+
|
|
838
|
+
return ModelsWithRawResponse(self._client.models)
|
|
839
|
+
|
|
840
|
+
@cached_property
|
|
841
|
+
def fine_tuning(self) -> fine_tuning.FineTuningWithRawResponse:
|
|
842
|
+
from .resources.fine_tuning import FineTuningWithRawResponse
|
|
843
|
+
|
|
844
|
+
return FineTuningWithRawResponse(self._client.fine_tuning)
|
|
845
|
+
|
|
846
|
+
@cached_property
|
|
847
|
+
def vector_stores(self) -> vector_stores.VectorStoresWithRawResponse:
|
|
848
|
+
from .resources.vector_stores import VectorStoresWithRawResponse
|
|
849
|
+
|
|
850
|
+
return VectorStoresWithRawResponse(self._client.vector_stores)
|
|
851
|
+
|
|
852
|
+
@cached_property
|
|
853
|
+
def beta(self) -> beta.BetaWithRawResponse:
|
|
854
|
+
from .resources.beta import BetaWithRawResponse
|
|
855
|
+
|
|
856
|
+
return BetaWithRawResponse(self._client.beta)
|
|
857
|
+
|
|
858
|
+
@cached_property
|
|
859
|
+
def batches(self) -> batches.BatchesWithRawResponse:
|
|
860
|
+
from .resources.batches import BatchesWithRawResponse
|
|
861
|
+
|
|
862
|
+
return BatchesWithRawResponse(self._client.batches)
|
|
863
|
+
|
|
864
|
+
@cached_property
|
|
865
|
+
def uploads(self) -> uploads.UploadsWithRawResponse:
|
|
866
|
+
from .resources.uploads import UploadsWithRawResponse
|
|
867
|
+
|
|
868
|
+
return UploadsWithRawResponse(self._client.uploads)
|
|
869
|
+
|
|
870
|
+
@cached_property
|
|
871
|
+
def responses(self) -> responses.ResponsesWithRawResponse:
|
|
872
|
+
from .resources.responses import ResponsesWithRawResponse
|
|
873
|
+
|
|
874
|
+
return ResponsesWithRawResponse(self._client.responses)
|
|
875
|
+
|
|
876
|
+
@cached_property
|
|
877
|
+
def realtime(self) -> realtime.RealtimeWithRawResponse:
|
|
878
|
+
from .resources.realtime import RealtimeWithRawResponse
|
|
879
|
+
|
|
880
|
+
return RealtimeWithRawResponse(self._client.realtime)
|
|
881
|
+
|
|
882
|
+
@cached_property
|
|
883
|
+
def conversations(self) -> conversations.ConversationsWithRawResponse:
|
|
884
|
+
from .resources.conversations import ConversationsWithRawResponse
|
|
885
|
+
|
|
886
|
+
return ConversationsWithRawResponse(self._client.conversations)
|
|
887
|
+
|
|
888
|
+
@cached_property
|
|
889
|
+
def evals(self) -> evals.EvalsWithRawResponse:
|
|
890
|
+
from .resources.evals import EvalsWithRawResponse
|
|
891
|
+
|
|
892
|
+
return EvalsWithRawResponse(self._client.evals)
|
|
893
|
+
|
|
894
|
+
@cached_property
|
|
895
|
+
def containers(self) -> containers.ContainersWithRawResponse:
|
|
896
|
+
from .resources.containers import ContainersWithRawResponse
|
|
897
|
+
|
|
898
|
+
return ContainersWithRawResponse(self._client.containers)
|
|
899
|
+
|
|
900
|
+
@cached_property
|
|
901
|
+
def videos(self) -> videos.VideosWithRawResponse:
|
|
902
|
+
from .resources.videos import VideosWithRawResponse
|
|
903
|
+
|
|
904
|
+
return VideosWithRawResponse(self._client.videos)
|
|
905
|
+
|
|
906
|
+
|
|
907
|
+
class AsyncOpenAIWithRawResponse:
|
|
908
|
+
_client: AsyncOpenAI
|
|
909
|
+
|
|
910
|
+
def __init__(self, client: AsyncOpenAI) -> None:
|
|
911
|
+
self._client = client
|
|
912
|
+
|
|
913
|
+
@cached_property
|
|
914
|
+
def completions(self) -> completions.AsyncCompletionsWithRawResponse:
|
|
915
|
+
from .resources.completions import AsyncCompletionsWithRawResponse
|
|
916
|
+
|
|
917
|
+
return AsyncCompletionsWithRawResponse(self._client.completions)
|
|
918
|
+
|
|
919
|
+
@cached_property
|
|
920
|
+
def chat(self) -> chat.AsyncChatWithRawResponse:
|
|
921
|
+
from .resources.chat import AsyncChatWithRawResponse
|
|
922
|
+
|
|
923
|
+
return AsyncChatWithRawResponse(self._client.chat)
|
|
924
|
+
|
|
925
|
+
@cached_property
|
|
926
|
+
def embeddings(self) -> embeddings.AsyncEmbeddingsWithRawResponse:
|
|
927
|
+
from .resources.embeddings import AsyncEmbeddingsWithRawResponse
|
|
928
|
+
|
|
929
|
+
return AsyncEmbeddingsWithRawResponse(self._client.embeddings)
|
|
930
|
+
|
|
931
|
+
@cached_property
|
|
932
|
+
def files(self) -> files.AsyncFilesWithRawResponse:
|
|
933
|
+
from .resources.files import AsyncFilesWithRawResponse
|
|
934
|
+
|
|
935
|
+
return AsyncFilesWithRawResponse(self._client.files)
|
|
936
|
+
|
|
937
|
+
@cached_property
|
|
938
|
+
def images(self) -> images.AsyncImagesWithRawResponse:
|
|
939
|
+
from .resources.images import AsyncImagesWithRawResponse
|
|
940
|
+
|
|
941
|
+
return AsyncImagesWithRawResponse(self._client.images)
|
|
942
|
+
|
|
943
|
+
@cached_property
|
|
944
|
+
def audio(self) -> audio.AsyncAudioWithRawResponse:
|
|
945
|
+
from .resources.audio import AsyncAudioWithRawResponse
|
|
946
|
+
|
|
947
|
+
return AsyncAudioWithRawResponse(self._client.audio)
|
|
948
|
+
|
|
949
|
+
@cached_property
|
|
950
|
+
def moderations(self) -> moderations.AsyncModerationsWithRawResponse:
|
|
951
|
+
from .resources.moderations import AsyncModerationsWithRawResponse
|
|
952
|
+
|
|
953
|
+
return AsyncModerationsWithRawResponse(self._client.moderations)
|
|
954
|
+
|
|
955
|
+
@cached_property
|
|
956
|
+
def models(self) -> models.AsyncModelsWithRawResponse:
|
|
957
|
+
from .resources.models import AsyncModelsWithRawResponse
|
|
958
|
+
|
|
959
|
+
return AsyncModelsWithRawResponse(self._client.models)
|
|
960
|
+
|
|
961
|
+
@cached_property
|
|
962
|
+
def fine_tuning(self) -> fine_tuning.AsyncFineTuningWithRawResponse:
|
|
963
|
+
from .resources.fine_tuning import AsyncFineTuningWithRawResponse
|
|
964
|
+
|
|
965
|
+
return AsyncFineTuningWithRawResponse(self._client.fine_tuning)
|
|
966
|
+
|
|
967
|
+
@cached_property
|
|
968
|
+
def vector_stores(self) -> vector_stores.AsyncVectorStoresWithRawResponse:
|
|
969
|
+
from .resources.vector_stores import AsyncVectorStoresWithRawResponse
|
|
970
|
+
|
|
971
|
+
return AsyncVectorStoresWithRawResponse(self._client.vector_stores)
|
|
972
|
+
|
|
973
|
+
@cached_property
|
|
974
|
+
def beta(self) -> beta.AsyncBetaWithRawResponse:
|
|
975
|
+
from .resources.beta import AsyncBetaWithRawResponse
|
|
976
|
+
|
|
977
|
+
return AsyncBetaWithRawResponse(self._client.beta)
|
|
978
|
+
|
|
979
|
+
@cached_property
|
|
980
|
+
def batches(self) -> batches.AsyncBatchesWithRawResponse:
|
|
981
|
+
from .resources.batches import AsyncBatchesWithRawResponse
|
|
982
|
+
|
|
983
|
+
return AsyncBatchesWithRawResponse(self._client.batches)
|
|
984
|
+
|
|
985
|
+
@cached_property
|
|
986
|
+
def uploads(self) -> uploads.AsyncUploadsWithRawResponse:
|
|
987
|
+
from .resources.uploads import AsyncUploadsWithRawResponse
|
|
988
|
+
|
|
989
|
+
return AsyncUploadsWithRawResponse(self._client.uploads)
|
|
990
|
+
|
|
991
|
+
@cached_property
|
|
992
|
+
def responses(self) -> responses.AsyncResponsesWithRawResponse:
|
|
993
|
+
from .resources.responses import AsyncResponsesWithRawResponse
|
|
994
|
+
|
|
995
|
+
return AsyncResponsesWithRawResponse(self._client.responses)
|
|
996
|
+
|
|
997
|
+
@cached_property
|
|
998
|
+
def realtime(self) -> realtime.AsyncRealtimeWithRawResponse:
|
|
999
|
+
from .resources.realtime import AsyncRealtimeWithRawResponse
|
|
1000
|
+
|
|
1001
|
+
return AsyncRealtimeWithRawResponse(self._client.realtime)
|
|
1002
|
+
|
|
1003
|
+
@cached_property
|
|
1004
|
+
def conversations(self) -> conversations.AsyncConversationsWithRawResponse:
|
|
1005
|
+
from .resources.conversations import AsyncConversationsWithRawResponse
|
|
1006
|
+
|
|
1007
|
+
return AsyncConversationsWithRawResponse(self._client.conversations)
|
|
1008
|
+
|
|
1009
|
+
@cached_property
|
|
1010
|
+
def evals(self) -> evals.AsyncEvalsWithRawResponse:
|
|
1011
|
+
from .resources.evals import AsyncEvalsWithRawResponse
|
|
1012
|
+
|
|
1013
|
+
return AsyncEvalsWithRawResponse(self._client.evals)
|
|
1014
|
+
|
|
1015
|
+
@cached_property
|
|
1016
|
+
def containers(self) -> containers.AsyncContainersWithRawResponse:
|
|
1017
|
+
from .resources.containers import AsyncContainersWithRawResponse
|
|
1018
|
+
|
|
1019
|
+
return AsyncContainersWithRawResponse(self._client.containers)
|
|
1020
|
+
|
|
1021
|
+
@cached_property
|
|
1022
|
+
def videos(self) -> videos.AsyncVideosWithRawResponse:
|
|
1023
|
+
from .resources.videos import AsyncVideosWithRawResponse
|
|
1024
|
+
|
|
1025
|
+
return AsyncVideosWithRawResponse(self._client.videos)
|
|
1026
|
+
|
|
1027
|
+
|
|
1028
|
+
class OpenAIWithStreamedResponse:
|
|
1029
|
+
_client: OpenAI
|
|
1030
|
+
|
|
1031
|
+
def __init__(self, client: OpenAI) -> None:
|
|
1032
|
+
self._client = client
|
|
1033
|
+
|
|
1034
|
+
@cached_property
|
|
1035
|
+
def completions(self) -> completions.CompletionsWithStreamingResponse:
|
|
1036
|
+
from .resources.completions import CompletionsWithStreamingResponse
|
|
1037
|
+
|
|
1038
|
+
return CompletionsWithStreamingResponse(self._client.completions)
|
|
1039
|
+
|
|
1040
|
+
@cached_property
|
|
1041
|
+
def chat(self) -> chat.ChatWithStreamingResponse:
|
|
1042
|
+
from .resources.chat import ChatWithStreamingResponse
|
|
1043
|
+
|
|
1044
|
+
return ChatWithStreamingResponse(self._client.chat)
|
|
1045
|
+
|
|
1046
|
+
@cached_property
|
|
1047
|
+
def embeddings(self) -> embeddings.EmbeddingsWithStreamingResponse:
|
|
1048
|
+
from .resources.embeddings import EmbeddingsWithStreamingResponse
|
|
1049
|
+
|
|
1050
|
+
return EmbeddingsWithStreamingResponse(self._client.embeddings)
|
|
1051
|
+
|
|
1052
|
+
@cached_property
|
|
1053
|
+
def files(self) -> files.FilesWithStreamingResponse:
|
|
1054
|
+
from .resources.files import FilesWithStreamingResponse
|
|
1055
|
+
|
|
1056
|
+
return FilesWithStreamingResponse(self._client.files)
|
|
1057
|
+
|
|
1058
|
+
@cached_property
|
|
1059
|
+
def images(self) -> images.ImagesWithStreamingResponse:
|
|
1060
|
+
from .resources.images import ImagesWithStreamingResponse
|
|
1061
|
+
|
|
1062
|
+
return ImagesWithStreamingResponse(self._client.images)
|
|
1063
|
+
|
|
1064
|
+
@cached_property
|
|
1065
|
+
def audio(self) -> audio.AudioWithStreamingResponse:
|
|
1066
|
+
from .resources.audio import AudioWithStreamingResponse
|
|
1067
|
+
|
|
1068
|
+
return AudioWithStreamingResponse(self._client.audio)
|
|
1069
|
+
|
|
1070
|
+
@cached_property
|
|
1071
|
+
def moderations(self) -> moderations.ModerationsWithStreamingResponse:
|
|
1072
|
+
from .resources.moderations import ModerationsWithStreamingResponse
|
|
1073
|
+
|
|
1074
|
+
return ModerationsWithStreamingResponse(self._client.moderations)
|
|
1075
|
+
|
|
1076
|
+
@cached_property
|
|
1077
|
+
def models(self) -> models.ModelsWithStreamingResponse:
|
|
1078
|
+
from .resources.models import ModelsWithStreamingResponse
|
|
1079
|
+
|
|
1080
|
+
return ModelsWithStreamingResponse(self._client.models)
|
|
1081
|
+
|
|
1082
|
+
@cached_property
|
|
1083
|
+
def fine_tuning(self) -> fine_tuning.FineTuningWithStreamingResponse:
|
|
1084
|
+
from .resources.fine_tuning import FineTuningWithStreamingResponse
|
|
1085
|
+
|
|
1086
|
+
return FineTuningWithStreamingResponse(self._client.fine_tuning)
|
|
1087
|
+
|
|
1088
|
+
@cached_property
|
|
1089
|
+
def vector_stores(self) -> vector_stores.VectorStoresWithStreamingResponse:
|
|
1090
|
+
from .resources.vector_stores import VectorStoresWithStreamingResponse
|
|
1091
|
+
|
|
1092
|
+
return VectorStoresWithStreamingResponse(self._client.vector_stores)
|
|
1093
|
+
|
|
1094
|
+
@cached_property
|
|
1095
|
+
def beta(self) -> beta.BetaWithStreamingResponse:
|
|
1096
|
+
from .resources.beta import BetaWithStreamingResponse
|
|
1097
|
+
|
|
1098
|
+
return BetaWithStreamingResponse(self._client.beta)
|
|
1099
|
+
|
|
1100
|
+
@cached_property
|
|
1101
|
+
def batches(self) -> batches.BatchesWithStreamingResponse:
|
|
1102
|
+
from .resources.batches import BatchesWithStreamingResponse
|
|
1103
|
+
|
|
1104
|
+
return BatchesWithStreamingResponse(self._client.batches)
|
|
1105
|
+
|
|
1106
|
+
@cached_property
|
|
1107
|
+
def uploads(self) -> uploads.UploadsWithStreamingResponse:
|
|
1108
|
+
from .resources.uploads import UploadsWithStreamingResponse
|
|
1109
|
+
|
|
1110
|
+
return UploadsWithStreamingResponse(self._client.uploads)
|
|
1111
|
+
|
|
1112
|
+
@cached_property
|
|
1113
|
+
def responses(self) -> responses.ResponsesWithStreamingResponse:
|
|
1114
|
+
from .resources.responses import ResponsesWithStreamingResponse
|
|
1115
|
+
|
|
1116
|
+
return ResponsesWithStreamingResponse(self._client.responses)
|
|
1117
|
+
|
|
1118
|
+
@cached_property
|
|
1119
|
+
def realtime(self) -> realtime.RealtimeWithStreamingResponse:
|
|
1120
|
+
from .resources.realtime import RealtimeWithStreamingResponse
|
|
1121
|
+
|
|
1122
|
+
return RealtimeWithStreamingResponse(self._client.realtime)
|
|
1123
|
+
|
|
1124
|
+
@cached_property
|
|
1125
|
+
def conversations(self) -> conversations.ConversationsWithStreamingResponse:
|
|
1126
|
+
from .resources.conversations import ConversationsWithStreamingResponse
|
|
1127
|
+
|
|
1128
|
+
return ConversationsWithStreamingResponse(self._client.conversations)
|
|
1129
|
+
|
|
1130
|
+
@cached_property
|
|
1131
|
+
def evals(self) -> evals.EvalsWithStreamingResponse:
|
|
1132
|
+
from .resources.evals import EvalsWithStreamingResponse
|
|
1133
|
+
|
|
1134
|
+
return EvalsWithStreamingResponse(self._client.evals)
|
|
1135
|
+
|
|
1136
|
+
@cached_property
|
|
1137
|
+
def containers(self) -> containers.ContainersWithStreamingResponse:
|
|
1138
|
+
from .resources.containers import ContainersWithStreamingResponse
|
|
1139
|
+
|
|
1140
|
+
return ContainersWithStreamingResponse(self._client.containers)
|
|
1141
|
+
|
|
1142
|
+
@cached_property
|
|
1143
|
+
def videos(self) -> videos.VideosWithStreamingResponse:
|
|
1144
|
+
from .resources.videos import VideosWithStreamingResponse
|
|
1145
|
+
|
|
1146
|
+
return VideosWithStreamingResponse(self._client.videos)
|
|
1147
|
+
|
|
1148
|
+
|
|
1149
|
+
class AsyncOpenAIWithStreamedResponse:
|
|
1150
|
+
_client: AsyncOpenAI
|
|
1151
|
+
|
|
1152
|
+
def __init__(self, client: AsyncOpenAI) -> None:
|
|
1153
|
+
self._client = client
|
|
1154
|
+
|
|
1155
|
+
@cached_property
|
|
1156
|
+
def completions(self) -> completions.AsyncCompletionsWithStreamingResponse:
|
|
1157
|
+
from .resources.completions import AsyncCompletionsWithStreamingResponse
|
|
1158
|
+
|
|
1159
|
+
return AsyncCompletionsWithStreamingResponse(self._client.completions)
|
|
1160
|
+
|
|
1161
|
+
@cached_property
|
|
1162
|
+
def chat(self) -> chat.AsyncChatWithStreamingResponse:
|
|
1163
|
+
from .resources.chat import AsyncChatWithStreamingResponse
|
|
1164
|
+
|
|
1165
|
+
return AsyncChatWithStreamingResponse(self._client.chat)
|
|
1166
|
+
|
|
1167
|
+
@cached_property
|
|
1168
|
+
def embeddings(self) -> embeddings.AsyncEmbeddingsWithStreamingResponse:
|
|
1169
|
+
from .resources.embeddings import AsyncEmbeddingsWithStreamingResponse
|
|
1170
|
+
|
|
1171
|
+
return AsyncEmbeddingsWithStreamingResponse(self._client.embeddings)
|
|
1172
|
+
|
|
1173
|
+
@cached_property
|
|
1174
|
+
def files(self) -> files.AsyncFilesWithStreamingResponse:
|
|
1175
|
+
from .resources.files import AsyncFilesWithStreamingResponse
|
|
1176
|
+
|
|
1177
|
+
return AsyncFilesWithStreamingResponse(self._client.files)
|
|
1178
|
+
|
|
1179
|
+
@cached_property
|
|
1180
|
+
def images(self) -> images.AsyncImagesWithStreamingResponse:
|
|
1181
|
+
from .resources.images import AsyncImagesWithStreamingResponse
|
|
1182
|
+
|
|
1183
|
+
return AsyncImagesWithStreamingResponse(self._client.images)
|
|
1184
|
+
|
|
1185
|
+
@cached_property
|
|
1186
|
+
def audio(self) -> audio.AsyncAudioWithStreamingResponse:
|
|
1187
|
+
from .resources.audio import AsyncAudioWithStreamingResponse
|
|
1188
|
+
|
|
1189
|
+
return AsyncAudioWithStreamingResponse(self._client.audio)
|
|
1190
|
+
|
|
1191
|
+
@cached_property
|
|
1192
|
+
def moderations(self) -> moderations.AsyncModerationsWithStreamingResponse:
|
|
1193
|
+
from .resources.moderations import AsyncModerationsWithStreamingResponse
|
|
1194
|
+
|
|
1195
|
+
return AsyncModerationsWithStreamingResponse(self._client.moderations)
|
|
1196
|
+
|
|
1197
|
+
@cached_property
|
|
1198
|
+
def models(self) -> models.AsyncModelsWithStreamingResponse:
|
|
1199
|
+
from .resources.models import AsyncModelsWithStreamingResponse
|
|
1200
|
+
|
|
1201
|
+
return AsyncModelsWithStreamingResponse(self._client.models)
|
|
1202
|
+
|
|
1203
|
+
@cached_property
|
|
1204
|
+
def fine_tuning(self) -> fine_tuning.AsyncFineTuningWithStreamingResponse:
|
|
1205
|
+
from .resources.fine_tuning import AsyncFineTuningWithStreamingResponse
|
|
1206
|
+
|
|
1207
|
+
return AsyncFineTuningWithStreamingResponse(self._client.fine_tuning)
|
|
1208
|
+
|
|
1209
|
+
@cached_property
|
|
1210
|
+
def vector_stores(self) -> vector_stores.AsyncVectorStoresWithStreamingResponse:
|
|
1211
|
+
from .resources.vector_stores import AsyncVectorStoresWithStreamingResponse
|
|
1212
|
+
|
|
1213
|
+
return AsyncVectorStoresWithStreamingResponse(self._client.vector_stores)
|
|
1214
|
+
|
|
1215
|
+
@cached_property
|
|
1216
|
+
def beta(self) -> beta.AsyncBetaWithStreamingResponse:
|
|
1217
|
+
from .resources.beta import AsyncBetaWithStreamingResponse
|
|
1218
|
+
|
|
1219
|
+
return AsyncBetaWithStreamingResponse(self._client.beta)
|
|
1220
|
+
|
|
1221
|
+
@cached_property
|
|
1222
|
+
def batches(self) -> batches.AsyncBatchesWithStreamingResponse:
|
|
1223
|
+
from .resources.batches import AsyncBatchesWithStreamingResponse
|
|
1224
|
+
|
|
1225
|
+
return AsyncBatchesWithStreamingResponse(self._client.batches)
|
|
1226
|
+
|
|
1227
|
+
@cached_property
|
|
1228
|
+
def uploads(self) -> uploads.AsyncUploadsWithStreamingResponse:
|
|
1229
|
+
from .resources.uploads import AsyncUploadsWithStreamingResponse
|
|
1230
|
+
|
|
1231
|
+
return AsyncUploadsWithStreamingResponse(self._client.uploads)
|
|
1232
|
+
|
|
1233
|
+
@cached_property
|
|
1234
|
+
def responses(self) -> responses.AsyncResponsesWithStreamingResponse:
|
|
1235
|
+
from .resources.responses import AsyncResponsesWithStreamingResponse
|
|
1236
|
+
|
|
1237
|
+
return AsyncResponsesWithStreamingResponse(self._client.responses)
|
|
1238
|
+
|
|
1239
|
+
@cached_property
|
|
1240
|
+
def realtime(self) -> realtime.AsyncRealtimeWithStreamingResponse:
|
|
1241
|
+
from .resources.realtime import AsyncRealtimeWithStreamingResponse
|
|
1242
|
+
|
|
1243
|
+
return AsyncRealtimeWithStreamingResponse(self._client.realtime)
|
|
1244
|
+
|
|
1245
|
+
@cached_property
|
|
1246
|
+
def conversations(self) -> conversations.AsyncConversationsWithStreamingResponse:
|
|
1247
|
+
from .resources.conversations import AsyncConversationsWithStreamingResponse
|
|
1248
|
+
|
|
1249
|
+
return AsyncConversationsWithStreamingResponse(self._client.conversations)
|
|
1250
|
+
|
|
1251
|
+
@cached_property
|
|
1252
|
+
def evals(self) -> evals.AsyncEvalsWithStreamingResponse:
|
|
1253
|
+
from .resources.evals import AsyncEvalsWithStreamingResponse
|
|
1254
|
+
|
|
1255
|
+
return AsyncEvalsWithStreamingResponse(self._client.evals)
|
|
1256
|
+
|
|
1257
|
+
@cached_property
|
|
1258
|
+
def containers(self) -> containers.AsyncContainersWithStreamingResponse:
|
|
1259
|
+
from .resources.containers import AsyncContainersWithStreamingResponse
|
|
1260
|
+
|
|
1261
|
+
return AsyncContainersWithStreamingResponse(self._client.containers)
|
|
1262
|
+
|
|
1263
|
+
@cached_property
|
|
1264
|
+
def videos(self) -> videos.AsyncVideosWithStreamingResponse:
|
|
1265
|
+
from .resources.videos import AsyncVideosWithStreamingResponse
|
|
1266
|
+
|
|
1267
|
+
return AsyncVideosWithStreamingResponse(self._client.videos)
|
|
1268
|
+
|
|
1269
|
+
|
|
1270
|
+
Client = OpenAI
|
|
1271
|
+
|
|
1272
|
+
AsyncClient = AsyncOpenAI
|