ogx_open_client 1.0.3.dev2__py3-none-any.whl → 1.0.3.dev4__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.
- ogx_open_client/api/batches_api.py +18 -0
- ogx_open_client/api/chat_completions_api.py +18 -0
- ogx_open_client/api/completions_api.py +18 -0
- ogx_open_client/api/conversations_api.py +36 -0
- ogx_open_client/api/embeddings_api.py +18 -0
- ogx_open_client/api/file_batches_api.py +18 -0
- ogx_open_client/api/inference_api.py +18 -0
- ogx_open_client/api/interactions_api.py +18 -0
- ogx_open_client/api/items_api.py +18 -0
- ogx_open_client/api/messages_api.py +54 -0
- ogx_open_client/api/prompts_api.py +54 -0
- ogx_open_client/api/responses_api.py +36 -0
- ogx_open_client/api/vector_io_api.py +36 -0
- ogx_open_client/api/vector_stores_api.py +54 -0
- ogx_open_client/api/vector_stores_files_api.py +36 -0
- ogx_open_client/models/add_items_request.py +11 -8
- ogx_open_client/models/allowed_tools_config.py +11 -8
- ogx_open_client/models/allowed_tools_filter.py +11 -8
- ogx_open_client/models/anthropic_base64_image_source.py +11 -8
- ogx_open_client/models/anthropic_bash_tool.py +11 -8
- ogx_open_client/models/anthropic_cache_control.py +11 -8
- ogx_open_client/models/anthropic_count_tokens_request.py +11 -8
- ogx_open_client/models/anthropic_count_tokens_response.py +11 -8
- ogx_open_client/models/anthropic_create_message_request.py +11 -8
- ogx_open_client/models/anthropic_custom_tool_def.py +11 -8
- ogx_open_client/models/anthropic_image_block.py +11 -8
- ogx_open_client/models/anthropic_list_models_response.py +11 -8
- ogx_open_client/models/anthropic_message.py +11 -8
- ogx_open_client/models/anthropic_message_response.py +11 -8
- ogx_open_client/models/anthropic_model_info.py +11 -8
- ogx_open_client/models/anthropic_redacted_thinking_block.py +11 -8
- ogx_open_client/models/anthropic_text_block.py +11 -8
- ogx_open_client/models/anthropic_text_editor_tool.py +11 -8
- ogx_open_client/models/anthropic_thinking_block.py +11 -8
- ogx_open_client/models/anthropic_thinking_config.py +11 -8
- ogx_open_client/models/anthropic_tool_result_block_input.py +11 -8
- ogx_open_client/models/anthropic_tool_result_block_output.py +11 -8
- ogx_open_client/models/anthropic_tool_use_block.py +11 -8
- ogx_open_client/models/anthropic_url_image_source.py +11 -8
- ogx_open_client/models/anthropic_usage.py +11 -8
- ogx_open_client/models/anthropic_web_search_tool.py +11 -8
- ogx_open_client/models/approval_filter.py +11 -8
- ogx_open_client/models/array_type.py +11 -8
- ogx_open_client/models/batch.py +11 -8
- ogx_open_client/models/batch_error.py +11 -8
- ogx_open_client/models/batch_request_counts.py +11 -8
- ogx_open_client/models/batch_usage.py +11 -8
- ogx_open_client/models/bf16_quantization_config.py +11 -8
- ogx_open_client/models/boolean_type.py +11 -8
- ogx_open_client/models/cancel_batch_request.py +11 -8
- ogx_open_client/models/chat_completion_input_type.py +11 -8
- ogx_open_client/models/chat_completion_message.py +11 -8
- ogx_open_client/models/chat_completion_message_custom_tool_call.py +11 -8
- ogx_open_client/models/chat_completion_message_custom_tool_call_custom.py +11 -8
- ogx_open_client/models/chat_completion_message_function_call.py +11 -8
- ogx_open_client/models/chat_completion_message_list.py +11 -8
- ogx_open_client/models/chat_completion_message_tool_call.py +11 -8
- ogx_open_client/models/chat_completion_message_tool_call_function.py +11 -8
- ogx_open_client/models/choice_delta_tool_call.py +11 -8
- ogx_open_client/models/choice_delta_tool_call_function.py +11 -8
- ogx_open_client/models/chunk.py +11 -8
- ogx_open_client/models/chunk_for_deletion.py +11 -8
- ogx_open_client/models/chunk_metadata.py +11 -8
- ogx_open_client/models/compact_response_request.py +11 -8
- ogx_open_client/models/comparison_filter.py +11 -8
- ogx_open_client/models/completion_input_type.py +11 -8
- ogx_open_client/models/compound_filter.py +11 -8
- ogx_open_client/models/connector.py +11 -8
- ogx_open_client/models/connector_input.py +11 -8
- ogx_open_client/models/context_management.py +11 -8
- ogx_open_client/models/conversation.py +11 -8
- ogx_open_client/models/conversation_deleted_resource.py +11 -8
- ogx_open_client/models/conversation_item_create_request.py +11 -8
- ogx_open_client/models/conversation_item_deleted_resource.py +11 -8
- ogx_open_client/models/conversation_item_list.py +31 -11
- ogx_open_client/models/conversation_message.py +11 -8
- ogx_open_client/models/create_batch_request.py +11 -8
- ogx_open_client/models/create_conversation_request.py +11 -8
- ogx_open_client/models/create_message_batch_request.py +11 -8
- ogx_open_client/models/create_prompt_request.py +11 -8
- ogx_open_client/models/create_response_request.py +11 -8
- ogx_open_client/models/custom_tool_config.py +11 -8
- ogx_open_client/models/delete_chunks_request.py +11 -8
- ogx_open_client/models/delete_conversation_request.py +11 -8
- ogx_open_client/models/delete_file_request.py +11 -8
- ogx_open_client/models/delete_item_request.py +11 -8
- ogx_open_client/models/delete_prompt_request.py +11 -8
- ogx_open_client/models/dialog_type.py +11 -8
- ogx_open_client/models/embedded_chunk.py +11 -8
- ogx_open_client/models/embedded_chunk_input.py +11 -8
- ogx_open_client/models/embedded_chunk_output.py +11 -8
- ogx_open_client/models/embeddings_response.py +11 -8
- ogx_open_client/models/error.py +11 -8
- ogx_open_client/models/errors.py +11 -8
- ogx_open_client/models/expires_after.py +11 -8
- ogx_open_client/models/fp8_quantization_config.py +11 -8
- ogx_open_client/models/function_tool_config.py +11 -8
- ogx_open_client/models/get_chat_completion_request.py +11 -8
- ogx_open_client/models/get_connector_request.py +11 -8
- ogx_open_client/models/get_connector_tool_request.py +11 -8
- ogx_open_client/models/get_conversation_request.py +11 -8
- ogx_open_client/models/get_model_request.py +11 -8
- ogx_open_client/models/get_prompt_request.py +11 -8
- ogx_open_client/models/google_create_interaction_request.py +11 -8
- ogx_open_client/models/google_function_call_content.py +11 -8
- ogx_open_client/models/google_function_call_output.py +11 -8
- ogx_open_client/models/google_function_declaration.py +11 -8
- ogx_open_client/models/google_function_response_content.py +11 -8
- ogx_open_client/models/google_generation_config.py +11 -8
- ogx_open_client/models/google_input_turn.py +11 -8
- ogx_open_client/models/google_interaction_response.py +11 -8
- ogx_open_client/models/google_list_models_response.py +11 -8
- ogx_open_client/models/google_model_info.py +11 -8
- ogx_open_client/models/google_text_content.py +11 -8
- ogx_open_client/models/google_text_output.py +11 -8
- ogx_open_client/models/google_thought_output.py +11 -8
- ogx_open_client/models/google_tool.py +11 -8
- ogx_open_client/models/google_usage.py +11 -8
- ogx_open_client/models/grammar_response_format.py +11 -8
- ogx_open_client/models/greedy_sampling_strategy.py +11 -8
- ogx_open_client/models/health_info.py +11 -8
- ogx_open_client/models/image_content_item.py +11 -8
- ogx_open_client/models/image_content_item_input.py +11 -8
- ogx_open_client/models/image_content_item_output.py +11 -8
- ogx_open_client/models/image_delta.py +11 -8
- ogx_open_client/models/inline_provider_spec.py +11 -8
- ogx_open_client/models/input_tokens_details.py +11 -8
- ogx_open_client/models/insert_chunks_request.py +11 -8
- ogx_open_client/models/inspect_provider_request.py +11 -8
- ogx_open_client/models/int4_quantization_config.py +11 -8
- ogx_open_client/models/job.py +11 -8
- ogx_open_client/models/json_schema_response_format.py +11 -8
- ogx_open_client/models/json_type.py +11 -8
- ogx_open_client/models/list_batches_request.py +11 -8
- ogx_open_client/models/list_batches_response.py +31 -11
- ogx_open_client/models/list_chat_completion_messages_request.py +11 -8
- ogx_open_client/models/list_chat_completions_request.py +11 -8
- ogx_open_client/models/list_connector_tools_request.py +11 -8
- ogx_open_client/models/list_connectors_response.py +11 -8
- ogx_open_client/models/list_files_request.py +11 -8
- ogx_open_client/models/list_items_request.py +11 -8
- ogx_open_client/models/list_message_batches_response.py +11 -8
- ogx_open_client/models/list_models_response.py +11 -8
- ogx_open_client/models/list_open_ai_chat_completion_response.py +11 -8
- ogx_open_client/models/list_open_ai_file_response.py +11 -8
- ogx_open_client/models/list_open_ai_response_input_item.py +11 -8
- ogx_open_client/models/list_open_ai_response_object.py +11 -8
- ogx_open_client/models/list_prompt_versions_request.py +11 -8
- ogx_open_client/models/list_prompts_response.py +11 -8
- ogx_open_client/models/list_providers_response.py +11 -8
- ogx_open_client/models/list_routes_request.py +11 -8
- ogx_open_client/models/list_routes_response.py +11 -8
- ogx_open_client/models/list_tool_defs_response.py +11 -8
- ogx_open_client/models/list_tool_groups_response.py +11 -8
- ogx_open_client/models/list_tools_request.py +11 -8
- ogx_open_client/models/list_tools_response.py +11 -8
- ogx_open_client/models/mcp_list_tools_tool.py +11 -8
- ogx_open_client/models/message_batch.py +11 -8
- ogx_open_client/models/message_batch_request_counts.py +11 -8
- ogx_open_client/models/message_batch_request_params.py +11 -8
- ogx_open_client/models/metric_in_response.py +11 -8
- ogx_open_client/models/model.py +11 -8
- ogx_open_client/models/number_type.py +11 -8
- ogx_open_client/models/object_type.py +11 -8
- ogx_open_client/models/open_ai_assistant_message_param.py +11 -8
- ogx_open_client/models/open_ai_assistant_message_param_input.py +11 -8
- ogx_open_client/models/open_ai_assistant_message_param_output.py +11 -8
- ogx_open_client/models/open_ai_attach_file_request.py +11 -8
- ogx_open_client/models/open_ai_chat_completion.py +11 -8
- ogx_open_client/models/open_ai_chat_completion_chunk.py +11 -8
- ogx_open_client/models/open_ai_chat_completion_content_part_image_param.py +11 -8
- ogx_open_client/models/open_ai_chat_completion_content_part_text_param.py +11 -8
- ogx_open_client/models/open_ai_chat_completion_custom_tool_call_function.py +11 -8
- ogx_open_client/models/open_ai_chat_completion_request_with_extra_body.py +11 -8
- ogx_open_client/models/open_ai_chat_completion_response_message.py +11 -8
- ogx_open_client/models/open_ai_chat_completion_tool_call_function.py +11 -8
- ogx_open_client/models/open_ai_chat_completion_tool_choice_allowed_tools.py +11 -8
- ogx_open_client/models/open_ai_chat_completion_tool_choice_custom_tool.py +11 -8
- ogx_open_client/models/open_ai_chat_completion_tool_choice_function_tool.py +11 -8
- ogx_open_client/models/open_ai_chat_completion_usage.py +11 -8
- ogx_open_client/models/open_ai_chat_completion_usage_completion_tokens_details.py +11 -8
- ogx_open_client/models/open_ai_chat_completion_usage_prompt_tokens_details.py +11 -8
- ogx_open_client/models/open_ai_choice.py +11 -8
- ogx_open_client/models/open_ai_choice_delta.py +11 -8
- ogx_open_client/models/open_ai_choice_logprobs.py +11 -8
- ogx_open_client/models/open_ai_chunk_choice.py +11 -8
- ogx_open_client/models/open_ai_chunk_choice_logprobs.py +11 -8
- ogx_open_client/models/open_ai_compacted_response.py +11 -8
- ogx_open_client/models/open_ai_completion.py +11 -8
- ogx_open_client/models/open_ai_completion_choice.py +11 -8
- ogx_open_client/models/open_ai_completion_logprobs.py +11 -8
- ogx_open_client/models/open_ai_completion_request_with_extra_body.py +11 -8
- ogx_open_client/models/open_ai_completion_with_input_messages.py +11 -8
- ogx_open_client/models/open_ai_create_vector_store_file_batch_request_with_extra_body.py +11 -8
- ogx_open_client/models/open_ai_create_vector_store_request_with_extra_body.py +11 -8
- ogx_open_client/models/open_ai_delete_response_object.py +11 -8
- ogx_open_client/models/open_ai_developer_message_param.py +11 -8
- ogx_open_client/models/open_ai_embedding_data.py +11 -8
- ogx_open_client/models/open_ai_embedding_usage.py +11 -8
- ogx_open_client/models/open_ai_embeddings_request_with_extra_body.py +11 -8
- ogx_open_client/models/open_ai_embeddings_response.py +31 -11
- ogx_open_client/models/open_ai_file.py +11 -8
- ogx_open_client/models/open_ai_file_delete_response.py +11 -8
- ogx_open_client/models/open_ai_file_file.py +11 -8
- ogx_open_client/models/open_ai_file_object.py +11 -8
- ogx_open_client/models/open_ai_image_url.py +11 -8
- ogx_open_client/models/open_ai_list_models_response.py +31 -11
- ogx_open_client/models/open_ai_model.py +11 -8
- ogx_open_client/models/open_ai_response_annotation_citation.py +11 -8
- ogx_open_client/models/open_ai_response_annotation_container_file_citation.py +11 -8
- ogx_open_client/models/open_ai_response_annotation_file_citation.py +11 -8
- ogx_open_client/models/open_ai_response_annotation_file_path.py +11 -8
- ogx_open_client/models/open_ai_response_compaction.py +11 -8
- ogx_open_client/models/open_ai_response_content_part_output_text.py +11 -8
- ogx_open_client/models/open_ai_response_content_part_reasoning_summary.py +11 -8
- ogx_open_client/models/open_ai_response_content_part_reasoning_text.py +11 -8
- ogx_open_client/models/open_ai_response_content_part_refusal.py +11 -8
- ogx_open_client/models/open_ai_response_error.py +11 -8
- ogx_open_client/models/open_ai_response_format_json_object.py +11 -8
- ogx_open_client/models/open_ai_response_format_json_schema.py +11 -8
- ogx_open_client/models/open_ai_response_format_text.py +11 -8
- ogx_open_client/models/open_ai_response_incomplete_details.py +11 -8
- ogx_open_client/models/open_ai_response_input_function_tool_call_output.py +11 -8
- ogx_open_client/models/open_ai_response_input_message_content_file.py +11 -8
- ogx_open_client/models/open_ai_response_input_message_content_image.py +11 -8
- ogx_open_client/models/open_ai_response_input_message_content_text.py +11 -8
- ogx_open_client/models/open_ai_response_input_tool_choice_allowed_tools.py +11 -8
- ogx_open_client/models/open_ai_response_input_tool_choice_custom_tool.py +11 -8
- ogx_open_client/models/open_ai_response_input_tool_choice_file_search.py +11 -8
- ogx_open_client/models/open_ai_response_input_tool_choice_function_tool.py +11 -8
- ogx_open_client/models/open_ai_response_input_tool_choice_mcp_tool.py +11 -8
- ogx_open_client/models/open_ai_response_input_tool_choice_web_search.py +11 -8
- ogx_open_client/models/open_ai_response_input_tool_file_search.py +11 -8
- ogx_open_client/models/open_ai_response_input_tool_function.py +11 -8
- ogx_open_client/models/open_ai_response_input_tool_mcp.py +11 -8
- ogx_open_client/models/open_ai_response_input_tool_web_search.py +11 -8
- ogx_open_client/models/open_ai_response_mcp_approval_request.py +11 -8
- ogx_open_client/models/open_ai_response_mcp_approval_response.py +11 -8
- ogx_open_client/models/open_ai_response_message.py +11 -8
- ogx_open_client/models/open_ai_response_message_input.py +11 -8
- ogx_open_client/models/open_ai_response_message_output.py +11 -8
- ogx_open_client/models/open_ai_response_object.py +11 -8
- ogx_open_client/models/open_ai_response_object_stream_error.py +11 -8
- ogx_open_client/models/open_ai_response_object_stream_response_completed.py +11 -8
- ogx_open_client/models/open_ai_response_object_stream_response_content_part_added.py +11 -8
- ogx_open_client/models/open_ai_response_object_stream_response_content_part_done.py +11 -8
- ogx_open_client/models/open_ai_response_object_stream_response_created.py +11 -8
- ogx_open_client/models/open_ai_response_object_stream_response_failed.py +11 -8
- ogx_open_client/models/open_ai_response_object_stream_response_file_search_call_completed.py +11 -8
- ogx_open_client/models/open_ai_response_object_stream_response_file_search_call_in_progress.py +11 -8
- ogx_open_client/models/open_ai_response_object_stream_response_file_search_call_searching.py +11 -8
- ogx_open_client/models/open_ai_response_object_stream_response_function_call_arguments_delta.py +11 -8
- ogx_open_client/models/open_ai_response_object_stream_response_function_call_arguments_done.py +11 -8
- ogx_open_client/models/open_ai_response_object_stream_response_in_progress.py +11 -8
- ogx_open_client/models/open_ai_response_object_stream_response_incomplete.py +11 -8
- ogx_open_client/models/open_ai_response_object_stream_response_mcp_call_arguments_delta.py +11 -8
- ogx_open_client/models/open_ai_response_object_stream_response_mcp_call_arguments_done.py +11 -8
- ogx_open_client/models/open_ai_response_object_stream_response_mcp_call_completed.py +11 -8
- ogx_open_client/models/open_ai_response_object_stream_response_mcp_call_failed.py +11 -8
- ogx_open_client/models/open_ai_response_object_stream_response_mcp_call_in_progress.py +11 -8
- ogx_open_client/models/open_ai_response_object_stream_response_mcp_list_tools_completed.py +11 -8
- ogx_open_client/models/open_ai_response_object_stream_response_mcp_list_tools_failed.py +11 -8
- ogx_open_client/models/open_ai_response_object_stream_response_mcp_list_tools_in_progress.py +11 -8
- ogx_open_client/models/open_ai_response_object_stream_response_output_item_added.py +11 -8
- ogx_open_client/models/open_ai_response_object_stream_response_output_item_done.py +11 -8
- ogx_open_client/models/open_ai_response_object_stream_response_output_text_annotation_added.py +11 -8
- ogx_open_client/models/open_ai_response_object_stream_response_output_text_delta.py +11 -8
- ogx_open_client/models/open_ai_response_object_stream_response_output_text_done.py +11 -8
- ogx_open_client/models/open_ai_response_object_stream_response_reasoning_summary_part_added.py +11 -8
- ogx_open_client/models/open_ai_response_object_stream_response_reasoning_summary_part_done.py +11 -8
- ogx_open_client/models/open_ai_response_object_stream_response_reasoning_summary_text_delta.py +11 -8
- ogx_open_client/models/open_ai_response_object_stream_response_reasoning_summary_text_done.py +11 -8
- ogx_open_client/models/open_ai_response_object_stream_response_reasoning_text_delta.py +11 -8
- ogx_open_client/models/open_ai_response_object_stream_response_reasoning_text_done.py +11 -8
- ogx_open_client/models/open_ai_response_object_stream_response_refusal_delta.py +11 -8
- ogx_open_client/models/open_ai_response_object_stream_response_refusal_done.py +11 -8
- ogx_open_client/models/open_ai_response_object_stream_response_web_search_call_completed.py +11 -8
- ogx_open_client/models/open_ai_response_object_stream_response_web_search_call_in_progress.py +11 -8
- ogx_open_client/models/open_ai_response_object_stream_response_web_search_call_searching.py +11 -8
- ogx_open_client/models/open_ai_response_object_with_input.py +11 -8
- ogx_open_client/models/open_ai_response_output_message_content_output_text.py +11 -8
- ogx_open_client/models/open_ai_response_output_message_content_output_text_input.py +11 -8
- ogx_open_client/models/open_ai_response_output_message_content_output_text_output.py +11 -8
- ogx_open_client/models/open_ai_response_output_message_file_search_tool_call.py +11 -8
- ogx_open_client/models/open_ai_response_output_message_file_search_tool_call_results.py +11 -8
- ogx_open_client/models/open_ai_response_output_message_function_tool_call.py +11 -8
- ogx_open_client/models/open_ai_response_output_message_mcp_call.py +11 -8
- ogx_open_client/models/open_ai_response_output_message_mcp_list_tools.py +11 -8
- ogx_open_client/models/open_ai_response_output_message_reasoning_content.py +11 -8
- ogx_open_client/models/open_ai_response_output_message_reasoning_item.py +11 -8
- ogx_open_client/models/open_ai_response_output_message_reasoning_summary.py +11 -8
- ogx_open_client/models/open_ai_response_output_message_web_search_tool_call.py +11 -8
- ogx_open_client/models/open_ai_response_output_message_web_search_tool_call_input.py +11 -8
- ogx_open_client/models/open_ai_response_output_message_web_search_tool_call_output.py +11 -8
- ogx_open_client/models/open_ai_response_prompt.py +11 -8
- ogx_open_client/models/open_ai_response_reasoning.py +11 -8
- ogx_open_client/models/open_ai_response_text.py +11 -8
- ogx_open_client/models/open_ai_response_text_format.py +11 -8
- ogx_open_client/models/open_ai_response_tool_mcp.py +11 -8
- ogx_open_client/models/open_ai_response_usage.py +11 -8
- ogx_open_client/models/open_ai_response_usage_input_tokens_details.py +11 -8
- ogx_open_client/models/open_ai_response_usage_output_tokens_details.py +11 -8
- ogx_open_client/models/open_ai_search_vector_store_request.py +11 -8
- ogx_open_client/models/open_ai_system_message_param.py +11 -8
- ogx_open_client/models/open_ai_token_log_prob.py +11 -8
- ogx_open_client/models/open_ai_tool_message_param.py +11 -8
- ogx_open_client/models/open_ai_top_log_prob.py +11 -8
- ogx_open_client/models/open_ai_update_vector_store_file_request.py +11 -8
- ogx_open_client/models/open_ai_update_vector_store_request.py +11 -8
- ogx_open_client/models/open_ai_user_message_param.py +11 -8
- ogx_open_client/models/open_ai_user_message_param_input.py +11 -8
- ogx_open_client/models/open_ai_user_message_param_output.py +11 -8
- ogx_open_client/models/open_aijson_schema.py +11 -8
- ogx_open_client/models/output_tokens_details.py +11 -8
- ogx_open_client/models/paginated_response.py +11 -8
- ogx_open_client/models/process_file_request.py +11 -8
- ogx_open_client/models/process_file_response.py +11 -8
- ogx_open_client/models/prompt.py +11 -8
- ogx_open_client/models/provider_info.py +11 -8
- ogx_open_client/models/provider_spec.py +11 -8
- ogx_open_client/models/query_chunks_request.py +11 -8
- ogx_open_client/models/query_chunks_response.py +11 -8
- ogx_open_client/models/register_model_request.py +11 -8
- ogx_open_client/models/remote_provider_spec.py +11 -8
- ogx_open_client/models/rerank_data.py +11 -8
- ogx_open_client/models/rerank_request.py +11 -8
- ogx_open_client/models/rerank_response.py +11 -8
- ogx_open_client/models/response_stream_options.py +11 -8
- ogx_open_client/models/retrieve_batch_request.py +11 -8
- ogx_open_client/models/retrieve_file_content_request.py +11 -8
- ogx_open_client/models/retrieve_file_request.py +11 -8
- ogx_open_client/models/retrieve_item_request.py +11 -8
- ogx_open_client/models/route_info.py +11 -8
- ogx_open_client/models/sampling_params.py +11 -8
- ogx_open_client/models/score_request.py +11 -8
- ogx_open_client/models/scoring_result.py +11 -8
- ogx_open_client/models/search_ranking_options.py +11 -8
- ogx_open_client/models/set_default_version_body_request.py +11 -8
- ogx_open_client/models/set_default_version_request.py +11 -8
- ogx_open_client/models/string_type.py +11 -8
- ogx_open_client/models/system_message.py +11 -8
- ogx_open_client/models/text_content_item.py +11 -8
- ogx_open_client/models/text_delta.py +11 -8
- ogx_open_client/models/token_log_probs.py +11 -8
- ogx_open_client/models/tool_config.py +11 -8
- ogx_open_client/models/tool_def.py +11 -8
- ogx_open_client/models/tool_group.py +11 -8
- ogx_open_client/models/tool_group_input.py +11 -8
- ogx_open_client/models/tool_invocation_result.py +11 -8
- ogx_open_client/models/tool_response_message.py +11 -8
- ogx_open_client/models/top_k_sampling_strategy.py +11 -8
- ogx_open_client/models/top_p_sampling_strategy.py +11 -8
- ogx_open_client/models/union_type.py +11 -8
- ogx_open_client/models/unregister_model_request.py +11 -8
- ogx_open_client/models/update_conversation_request.py +11 -8
- ogx_open_client/models/update_prompt_body_request.py +11 -8
- ogx_open_client/models/update_prompt_request.py +11 -8
- ogx_open_client/models/upload_file_request.py +11 -8
- ogx_open_client/models/url.py +11 -8
- ogx_open_client/models/urlor_data.py +11 -8
- ogx_open_client/models/user_message.py +11 -8
- ogx_open_client/models/vector_store_chunking_strategy_auto.py +11 -8
- ogx_open_client/models/vector_store_chunking_strategy_contextual.py +11 -8
- ogx_open_client/models/vector_store_chunking_strategy_contextual_config.py +11 -8
- ogx_open_client/models/vector_store_chunking_strategy_static.py +11 -8
- ogx_open_client/models/vector_store_chunking_strategy_static_config.py +11 -8
- ogx_open_client/models/vector_store_content.py +11 -8
- ogx_open_client/models/vector_store_create_request.py +11 -8
- ogx_open_client/models/vector_store_delete_response.py +11 -8
- ogx_open_client/models/vector_store_expiration_after.py +11 -8
- ogx_open_client/models/vector_store_file_batch_file_entry.py +11 -8
- ogx_open_client/models/vector_store_file_batch_object.py +11 -8
- ogx_open_client/models/vector_store_file_content_response.py +31 -11
- ogx_open_client/models/vector_store_file_counts.py +11 -8
- ogx_open_client/models/vector_store_file_delete_response.py +11 -8
- ogx_open_client/models/vector_store_file_last_error.py +11 -8
- ogx_open_client/models/vector_store_file_object.py +11 -8
- ogx_open_client/models/vector_store_files_list_in_batch_response.py +31 -11
- ogx_open_client/models/vector_store_list_files_response.py +31 -11
- ogx_open_client/models/vector_store_list_response.py +31 -11
- ogx_open_client/models/vector_store_modify_request.py +11 -8
- ogx_open_client/models/vector_store_object.py +11 -8
- ogx_open_client/models/vector_store_search_request.py +11 -8
- ogx_open_client/models/vector_store_search_response.py +11 -8
- ogx_open_client/models/vector_store_search_response_page.py +31 -11
- ogx_open_client/models/version_info.py +11 -8
- ogx_open_client/models/web_search_action_find.py +11 -8
- ogx_open_client/models/web_search_action_open_page.py +11 -8
- ogx_open_client/models/web_search_action_search.py +11 -8
- ogx_open_client/models/web_search_filters.py +11 -8
- ogx_open_client/models/web_search_source.py +11 -8
- ogx_open_client/models/web_search_user_location.py +11 -8
- {ogx_open_client-1.0.3.dev2.dist-info → ogx_open_client-1.0.3.dev4.dist-info}/METADATA +1 -1
- {ogx_open_client-1.0.3.dev2.dist-info → ogx_open_client-1.0.3.dev4.dist-info}/RECORD +396 -396
- {ogx_open_client-1.0.3.dev2.dist-info → ogx_open_client-1.0.3.dev4.dist-info}/WHEEL +0 -0
- {ogx_open_client-1.0.3.dev2.dist-info → ogx_open_client-1.0.3.dev4.dist-info}/top_level.txt +0 -0
|
@@ -694,6 +694,12 @@ class BatchesApi:
|
|
|
694
694
|
|
|
695
695
|
# If body param not provided, construct from kwargs
|
|
696
696
|
if create_batch_request is None and kwargs:
|
|
697
|
+
# Merge extra_body contents into top-level kwargs (OpenAI SDK convention).
|
|
698
|
+
# The OpenAI SDK treats extra_body as a dict whose keys are merged into
|
|
699
|
+
# the request body; replicate that behavior here.
|
|
700
|
+
_extra_body = kwargs.pop("extra_body", None)
|
|
701
|
+
if isinstance(_extra_body, dict):
|
|
702
|
+
kwargs.update(_extra_body)
|
|
697
703
|
try:
|
|
698
704
|
# Try proper type conversion via from_json
|
|
699
705
|
create_batch_request = CreateBatchRequest.from_json(json.dumps(kwargs))
|
|
@@ -776,6 +782,12 @@ class BatchesApi:
|
|
|
776
782
|
|
|
777
783
|
# If body param not provided, construct from kwargs
|
|
778
784
|
if create_batch_request is None and kwargs:
|
|
785
|
+
# Merge extra_body contents into top-level kwargs (OpenAI SDK convention).
|
|
786
|
+
# The OpenAI SDK treats extra_body as a dict whose keys are merged into
|
|
787
|
+
# the request body; replicate that behavior here.
|
|
788
|
+
_extra_body = kwargs.pop("extra_body", None)
|
|
789
|
+
if isinstance(_extra_body, dict):
|
|
790
|
+
kwargs.update(_extra_body)
|
|
779
791
|
try:
|
|
780
792
|
# Try proper type conversion via from_json
|
|
781
793
|
create_batch_request = CreateBatchRequest.from_json(json.dumps(kwargs))
|
|
@@ -856,6 +868,12 @@ class BatchesApi:
|
|
|
856
868
|
|
|
857
869
|
# If body param not provided, construct from kwargs
|
|
858
870
|
if create_batch_request is None and kwargs:
|
|
871
|
+
# Merge extra_body contents into top-level kwargs (OpenAI SDK convention).
|
|
872
|
+
# The OpenAI SDK treats extra_body as a dict whose keys are merged into
|
|
873
|
+
# the request body; replicate that behavior here.
|
|
874
|
+
_extra_body = kwargs.pop("extra_body", None)
|
|
875
|
+
if isinstance(_extra_body, dict):
|
|
876
|
+
kwargs.update(_extra_body)
|
|
859
877
|
try:
|
|
860
878
|
# Try proper type conversion via from_json
|
|
861
879
|
create_batch_request = CreateBatchRequest.from_json(json.dumps(kwargs))
|
|
@@ -433,6 +433,12 @@ class ChatCompletionsApi:
|
|
|
433
433
|
|
|
434
434
|
# If body param not provided, construct from kwargs
|
|
435
435
|
if open_ai_chat_completion_request_with_extra_body is None and kwargs:
|
|
436
|
+
# Merge extra_body contents into top-level kwargs (OpenAI SDK convention).
|
|
437
|
+
# The OpenAI SDK treats extra_body as a dict whose keys are merged into
|
|
438
|
+
# the request body; replicate that behavior here.
|
|
439
|
+
_extra_body = kwargs.pop("extra_body", None)
|
|
440
|
+
if isinstance(_extra_body, dict):
|
|
441
|
+
kwargs.update(_extra_body)
|
|
436
442
|
try:
|
|
437
443
|
# Try proper type conversion via from_json
|
|
438
444
|
open_ai_chat_completion_request_with_extra_body = OpenAIChatCompletionRequestWithExtraBody.from_json(json.dumps(kwargs))
|
|
@@ -519,6 +525,12 @@ class ChatCompletionsApi:
|
|
|
519
525
|
|
|
520
526
|
# If body param not provided, construct from kwargs
|
|
521
527
|
if open_ai_chat_completion_request_with_extra_body is None and kwargs:
|
|
528
|
+
# Merge extra_body contents into top-level kwargs (OpenAI SDK convention).
|
|
529
|
+
# The OpenAI SDK treats extra_body as a dict whose keys are merged into
|
|
530
|
+
# the request body; replicate that behavior here.
|
|
531
|
+
_extra_body = kwargs.pop("extra_body", None)
|
|
532
|
+
if isinstance(_extra_body, dict):
|
|
533
|
+
kwargs.update(_extra_body)
|
|
522
534
|
try:
|
|
523
535
|
# Try proper type conversion via from_json
|
|
524
536
|
open_ai_chat_completion_request_with_extra_body = OpenAIChatCompletionRequestWithExtraBody.from_json(json.dumps(kwargs))
|
|
@@ -603,6 +615,12 @@ class ChatCompletionsApi:
|
|
|
603
615
|
|
|
604
616
|
# If body param not provided, construct from kwargs
|
|
605
617
|
if open_ai_chat_completion_request_with_extra_body is None and kwargs:
|
|
618
|
+
# Merge extra_body contents into top-level kwargs (OpenAI SDK convention).
|
|
619
|
+
# The OpenAI SDK treats extra_body as a dict whose keys are merged into
|
|
620
|
+
# the request body; replicate that behavior here.
|
|
621
|
+
_extra_body = kwargs.pop("extra_body", None)
|
|
622
|
+
if isinstance(_extra_body, dict):
|
|
623
|
+
kwargs.update(_extra_body)
|
|
606
624
|
try:
|
|
607
625
|
# Try proper type conversion via from_json
|
|
608
626
|
open_ai_chat_completion_request_with_extra_body = OpenAIChatCompletionRequestWithExtraBody.from_json(json.dumps(kwargs))
|
|
@@ -162,6 +162,12 @@ class CompletionsApi:
|
|
|
162
162
|
|
|
163
163
|
# If body param not provided, construct from kwargs
|
|
164
164
|
if open_ai_completion_request_with_extra_body is None and kwargs:
|
|
165
|
+
# Merge extra_body contents into top-level kwargs (OpenAI SDK convention).
|
|
166
|
+
# The OpenAI SDK treats extra_body as a dict whose keys are merged into
|
|
167
|
+
# the request body; replicate that behavior here.
|
|
168
|
+
_extra_body = kwargs.pop("extra_body", None)
|
|
169
|
+
if isinstance(_extra_body, dict):
|
|
170
|
+
kwargs.update(_extra_body)
|
|
165
171
|
try:
|
|
166
172
|
# Try proper type conversion via from_json
|
|
167
173
|
open_ai_completion_request_with_extra_body = OpenAICompletionRequestWithExtraBody.from_json(json.dumps(kwargs))
|
|
@@ -248,6 +254,12 @@ class CompletionsApi:
|
|
|
248
254
|
|
|
249
255
|
# If body param not provided, construct from kwargs
|
|
250
256
|
if open_ai_completion_request_with_extra_body is None and kwargs:
|
|
257
|
+
# Merge extra_body contents into top-level kwargs (OpenAI SDK convention).
|
|
258
|
+
# The OpenAI SDK treats extra_body as a dict whose keys are merged into
|
|
259
|
+
# the request body; replicate that behavior here.
|
|
260
|
+
_extra_body = kwargs.pop("extra_body", None)
|
|
261
|
+
if isinstance(_extra_body, dict):
|
|
262
|
+
kwargs.update(_extra_body)
|
|
251
263
|
try:
|
|
252
264
|
# Try proper type conversion via from_json
|
|
253
265
|
open_ai_completion_request_with_extra_body = OpenAICompletionRequestWithExtraBody.from_json(json.dumps(kwargs))
|
|
@@ -332,6 +344,12 @@ class CompletionsApi:
|
|
|
332
344
|
|
|
333
345
|
# If body param not provided, construct from kwargs
|
|
334
346
|
if open_ai_completion_request_with_extra_body is None and kwargs:
|
|
347
|
+
# Merge extra_body contents into top-level kwargs (OpenAI SDK convention).
|
|
348
|
+
# The OpenAI SDK treats extra_body as a dict whose keys are merged into
|
|
349
|
+
# the request body; replicate that behavior here.
|
|
350
|
+
_extra_body = kwargs.pop("extra_body", None)
|
|
351
|
+
if isinstance(_extra_body, dict):
|
|
352
|
+
kwargs.update(_extra_body)
|
|
335
353
|
try:
|
|
336
354
|
# Try proper type conversion via from_json
|
|
337
355
|
open_ai_completion_request_with_extra_body = OpenAICompletionRequestWithExtraBody.from_json(json.dumps(kwargs))
|
|
@@ -699,6 +699,12 @@ class ConversationsApi:
|
|
|
699
699
|
|
|
700
700
|
# If body param not provided, construct from kwargs
|
|
701
701
|
if update_conversation_request is None and kwargs:
|
|
702
|
+
# Merge extra_body contents into top-level kwargs (OpenAI SDK convention).
|
|
703
|
+
# The OpenAI SDK treats extra_body as a dict whose keys are merged into
|
|
704
|
+
# the request body; replicate that behavior here.
|
|
705
|
+
_extra_body = kwargs.pop("extra_body", None)
|
|
706
|
+
if isinstance(_extra_body, dict):
|
|
707
|
+
kwargs.update(_extra_body)
|
|
702
708
|
try:
|
|
703
709
|
# Try proper type conversion via from_json
|
|
704
710
|
update_conversation_request = UpdateConversationRequest.from_json(json.dumps(kwargs))
|
|
@@ -784,6 +790,12 @@ class ConversationsApi:
|
|
|
784
790
|
|
|
785
791
|
# If body param not provided, construct from kwargs
|
|
786
792
|
if update_conversation_request is None and kwargs:
|
|
793
|
+
# Merge extra_body contents into top-level kwargs (OpenAI SDK convention).
|
|
794
|
+
# The OpenAI SDK treats extra_body as a dict whose keys are merged into
|
|
795
|
+
# the request body; replicate that behavior here.
|
|
796
|
+
_extra_body = kwargs.pop("extra_body", None)
|
|
797
|
+
if isinstance(_extra_body, dict):
|
|
798
|
+
kwargs.update(_extra_body)
|
|
787
799
|
try:
|
|
788
800
|
# Try proper type conversion via from_json
|
|
789
801
|
update_conversation_request = UpdateConversationRequest.from_json(json.dumps(kwargs))
|
|
@@ -867,6 +879,12 @@ class ConversationsApi:
|
|
|
867
879
|
|
|
868
880
|
# If body param not provided, construct from kwargs
|
|
869
881
|
if update_conversation_request is None and kwargs:
|
|
882
|
+
# Merge extra_body contents into top-level kwargs (OpenAI SDK convention).
|
|
883
|
+
# The OpenAI SDK treats extra_body as a dict whose keys are merged into
|
|
884
|
+
# the request body; replicate that behavior here.
|
|
885
|
+
_extra_body = kwargs.pop("extra_body", None)
|
|
886
|
+
if isinstance(_extra_body, dict):
|
|
887
|
+
kwargs.update(_extra_body)
|
|
870
888
|
try:
|
|
871
889
|
# Try proper type conversion via from_json
|
|
872
890
|
update_conversation_request = UpdateConversationRequest.from_json(json.dumps(kwargs))
|
|
@@ -1021,6 +1039,12 @@ class ConversationsApi:
|
|
|
1021
1039
|
|
|
1022
1040
|
# If body param not provided, construct from kwargs
|
|
1023
1041
|
if create_conversation_request is None and kwargs:
|
|
1042
|
+
# Merge extra_body contents into top-level kwargs (OpenAI SDK convention).
|
|
1043
|
+
# The OpenAI SDK treats extra_body as a dict whose keys are merged into
|
|
1044
|
+
# the request body; replicate that behavior here.
|
|
1045
|
+
_extra_body = kwargs.pop("extra_body", None)
|
|
1046
|
+
if isinstance(_extra_body, dict):
|
|
1047
|
+
kwargs.update(_extra_body)
|
|
1024
1048
|
try:
|
|
1025
1049
|
# Try proper type conversion via from_json
|
|
1026
1050
|
create_conversation_request = CreateConversationRequest.from_json(json.dumps(kwargs))
|
|
@@ -1102,6 +1126,12 @@ class ConversationsApi:
|
|
|
1102
1126
|
|
|
1103
1127
|
# If body param not provided, construct from kwargs
|
|
1104
1128
|
if create_conversation_request is None and kwargs:
|
|
1129
|
+
# Merge extra_body contents into top-level kwargs (OpenAI SDK convention).
|
|
1130
|
+
# The OpenAI SDK treats extra_body as a dict whose keys are merged into
|
|
1131
|
+
# the request body; replicate that behavior here.
|
|
1132
|
+
_extra_body = kwargs.pop("extra_body", None)
|
|
1133
|
+
if isinstance(_extra_body, dict):
|
|
1134
|
+
kwargs.update(_extra_body)
|
|
1105
1135
|
try:
|
|
1106
1136
|
# Try proper type conversion via from_json
|
|
1107
1137
|
create_conversation_request = CreateConversationRequest.from_json(json.dumps(kwargs))
|
|
@@ -1181,6 +1211,12 @@ class ConversationsApi:
|
|
|
1181
1211
|
|
|
1182
1212
|
# If body param not provided, construct from kwargs
|
|
1183
1213
|
if create_conversation_request is None and kwargs:
|
|
1214
|
+
# Merge extra_body contents into top-level kwargs (OpenAI SDK convention).
|
|
1215
|
+
# The OpenAI SDK treats extra_body as a dict whose keys are merged into
|
|
1216
|
+
# the request body; replicate that behavior here.
|
|
1217
|
+
_extra_body = kwargs.pop("extra_body", None)
|
|
1218
|
+
if isinstance(_extra_body, dict):
|
|
1219
|
+
kwargs.update(_extra_body)
|
|
1184
1220
|
try:
|
|
1185
1221
|
# Try proper type conversion via from_json
|
|
1186
1222
|
create_conversation_request = CreateConversationRequest.from_json(json.dumps(kwargs))
|
|
@@ -162,6 +162,12 @@ class EmbeddingsApi:
|
|
|
162
162
|
|
|
163
163
|
# If body param not provided, construct from kwargs
|
|
164
164
|
if open_ai_embeddings_request_with_extra_body is None and kwargs:
|
|
165
|
+
# Merge extra_body contents into top-level kwargs (OpenAI SDK convention).
|
|
166
|
+
# The OpenAI SDK treats extra_body as a dict whose keys are merged into
|
|
167
|
+
# the request body; replicate that behavior here.
|
|
168
|
+
_extra_body = kwargs.pop("extra_body", None)
|
|
169
|
+
if isinstance(_extra_body, dict):
|
|
170
|
+
kwargs.update(_extra_body)
|
|
165
171
|
try:
|
|
166
172
|
# Try proper type conversion via from_json
|
|
167
173
|
open_ai_embeddings_request_with_extra_body = OpenAIEmbeddingsRequestWithExtraBody.from_json(json.dumps(kwargs))
|
|
@@ -243,6 +249,12 @@ class EmbeddingsApi:
|
|
|
243
249
|
|
|
244
250
|
# If body param not provided, construct from kwargs
|
|
245
251
|
if open_ai_embeddings_request_with_extra_body is None and kwargs:
|
|
252
|
+
# Merge extra_body contents into top-level kwargs (OpenAI SDK convention).
|
|
253
|
+
# The OpenAI SDK treats extra_body as a dict whose keys are merged into
|
|
254
|
+
# the request body; replicate that behavior here.
|
|
255
|
+
_extra_body = kwargs.pop("extra_body", None)
|
|
256
|
+
if isinstance(_extra_body, dict):
|
|
257
|
+
kwargs.update(_extra_body)
|
|
246
258
|
try:
|
|
247
259
|
# Try proper type conversion via from_json
|
|
248
260
|
open_ai_embeddings_request_with_extra_body = OpenAIEmbeddingsRequestWithExtraBody.from_json(json.dumps(kwargs))
|
|
@@ -322,6 +334,12 @@ class EmbeddingsApi:
|
|
|
322
334
|
|
|
323
335
|
# If body param not provided, construct from kwargs
|
|
324
336
|
if open_ai_embeddings_request_with_extra_body is None and kwargs:
|
|
337
|
+
# Merge extra_body contents into top-level kwargs (OpenAI SDK convention).
|
|
338
|
+
# The OpenAI SDK treats extra_body as a dict whose keys are merged into
|
|
339
|
+
# the request body; replicate that behavior here.
|
|
340
|
+
_extra_body = kwargs.pop("extra_body", None)
|
|
341
|
+
if isinstance(_extra_body, dict):
|
|
342
|
+
kwargs.update(_extra_body)
|
|
325
343
|
try:
|
|
326
344
|
# Try proper type conversion via from_json
|
|
327
345
|
open_ai_embeddings_request_with_extra_body = OpenAIEmbeddingsRequestWithExtraBody.from_json(json.dumps(kwargs))
|
|
@@ -448,6 +448,12 @@ class FileBatchesApi:
|
|
|
448
448
|
|
|
449
449
|
# If body param not provided, construct from kwargs
|
|
450
450
|
if open_ai_create_vector_store_file_batch_request_with_extra_body is None and kwargs:
|
|
451
|
+
# Merge extra_body contents into top-level kwargs (OpenAI SDK convention).
|
|
452
|
+
# The OpenAI SDK treats extra_body as a dict whose keys are merged into
|
|
453
|
+
# the request body; replicate that behavior here.
|
|
454
|
+
_extra_body = kwargs.pop("extra_body", None)
|
|
455
|
+
if isinstance(_extra_body, dict):
|
|
456
|
+
kwargs.update(_extra_body)
|
|
451
457
|
try:
|
|
452
458
|
# Try proper type conversion via from_json
|
|
453
459
|
open_ai_create_vector_store_file_batch_request_with_extra_body = OpenAICreateVectorStoreFileBatchRequestWithExtraBody.from_json(json.dumps(kwargs))
|
|
@@ -533,6 +539,12 @@ class FileBatchesApi:
|
|
|
533
539
|
|
|
534
540
|
# If body param not provided, construct from kwargs
|
|
535
541
|
if open_ai_create_vector_store_file_batch_request_with_extra_body is None and kwargs:
|
|
542
|
+
# Merge extra_body contents into top-level kwargs (OpenAI SDK convention).
|
|
543
|
+
# The OpenAI SDK treats extra_body as a dict whose keys are merged into
|
|
544
|
+
# the request body; replicate that behavior here.
|
|
545
|
+
_extra_body = kwargs.pop("extra_body", None)
|
|
546
|
+
if isinstance(_extra_body, dict):
|
|
547
|
+
kwargs.update(_extra_body)
|
|
536
548
|
try:
|
|
537
549
|
# Try proper type conversion via from_json
|
|
538
550
|
open_ai_create_vector_store_file_batch_request_with_extra_body = OpenAICreateVectorStoreFileBatchRequestWithExtraBody.from_json(json.dumps(kwargs))
|
|
@@ -616,6 +628,12 @@ class FileBatchesApi:
|
|
|
616
628
|
|
|
617
629
|
# If body param not provided, construct from kwargs
|
|
618
630
|
if open_ai_create_vector_store_file_batch_request_with_extra_body is None and kwargs:
|
|
631
|
+
# Merge extra_body contents into top-level kwargs (OpenAI SDK convention).
|
|
632
|
+
# The OpenAI SDK treats extra_body as a dict whose keys are merged into
|
|
633
|
+
# the request body; replicate that behavior here.
|
|
634
|
+
_extra_body = kwargs.pop("extra_body", None)
|
|
635
|
+
if isinstance(_extra_body, dict):
|
|
636
|
+
kwargs.update(_extra_body)
|
|
619
637
|
try:
|
|
620
638
|
# Try proper type conversion via from_json
|
|
621
639
|
open_ai_create_vector_store_file_batch_request_with_extra_body = OpenAICreateVectorStoreFileBatchRequestWithExtraBody.from_json(json.dumps(kwargs))
|
|
@@ -162,6 +162,12 @@ class InferenceApi:
|
|
|
162
162
|
|
|
163
163
|
# If body param not provided, construct from kwargs
|
|
164
164
|
if rerank_request is None and kwargs:
|
|
165
|
+
# Merge extra_body contents into top-level kwargs (OpenAI SDK convention).
|
|
166
|
+
# The OpenAI SDK treats extra_body as a dict whose keys are merged into
|
|
167
|
+
# the request body; replicate that behavior here.
|
|
168
|
+
_extra_body = kwargs.pop("extra_body", None)
|
|
169
|
+
if isinstance(_extra_body, dict):
|
|
170
|
+
kwargs.update(_extra_body)
|
|
165
171
|
try:
|
|
166
172
|
# Try proper type conversion via from_json
|
|
167
173
|
rerank_request = RerankRequest.from_json(json.dumps(kwargs))
|
|
@@ -243,6 +249,12 @@ class InferenceApi:
|
|
|
243
249
|
|
|
244
250
|
# If body param not provided, construct from kwargs
|
|
245
251
|
if rerank_request is None and kwargs:
|
|
252
|
+
# Merge extra_body contents into top-level kwargs (OpenAI SDK convention).
|
|
253
|
+
# The OpenAI SDK treats extra_body as a dict whose keys are merged into
|
|
254
|
+
# the request body; replicate that behavior here.
|
|
255
|
+
_extra_body = kwargs.pop("extra_body", None)
|
|
256
|
+
if isinstance(_extra_body, dict):
|
|
257
|
+
kwargs.update(_extra_body)
|
|
246
258
|
try:
|
|
247
259
|
# Try proper type conversion via from_json
|
|
248
260
|
rerank_request = RerankRequest.from_json(json.dumps(kwargs))
|
|
@@ -322,6 +334,12 @@ class InferenceApi:
|
|
|
322
334
|
|
|
323
335
|
# If body param not provided, construct from kwargs
|
|
324
336
|
if rerank_request is None and kwargs:
|
|
337
|
+
# Merge extra_body contents into top-level kwargs (OpenAI SDK convention).
|
|
338
|
+
# The OpenAI SDK treats extra_body as a dict whose keys are merged into
|
|
339
|
+
# the request body; replicate that behavior here.
|
|
340
|
+
_extra_body = kwargs.pop("extra_body", None)
|
|
341
|
+
if isinstance(_extra_body, dict):
|
|
342
|
+
kwargs.update(_extra_body)
|
|
325
343
|
try:
|
|
326
344
|
# Try proper type conversion via from_json
|
|
327
345
|
rerank_request = RerankRequest.from_json(json.dumps(kwargs))
|
|
@@ -162,6 +162,12 @@ class InteractionsApi:
|
|
|
162
162
|
|
|
163
163
|
# If body param not provided, construct from kwargs
|
|
164
164
|
if google_create_interaction_request is None and kwargs:
|
|
165
|
+
# Merge extra_body contents into top-level kwargs (OpenAI SDK convention).
|
|
166
|
+
# The OpenAI SDK treats extra_body as a dict whose keys are merged into
|
|
167
|
+
# the request body; replicate that behavior here.
|
|
168
|
+
_extra_body = kwargs.pop("extra_body", None)
|
|
169
|
+
if isinstance(_extra_body, dict):
|
|
170
|
+
kwargs.update(_extra_body)
|
|
165
171
|
try:
|
|
166
172
|
# Try proper type conversion via from_json
|
|
167
173
|
google_create_interaction_request = GoogleCreateInteractionRequest.from_json(json.dumps(kwargs))
|
|
@@ -243,6 +249,12 @@ class InteractionsApi:
|
|
|
243
249
|
|
|
244
250
|
# If body param not provided, construct from kwargs
|
|
245
251
|
if google_create_interaction_request is None and kwargs:
|
|
252
|
+
# Merge extra_body contents into top-level kwargs (OpenAI SDK convention).
|
|
253
|
+
# The OpenAI SDK treats extra_body as a dict whose keys are merged into
|
|
254
|
+
# the request body; replicate that behavior here.
|
|
255
|
+
_extra_body = kwargs.pop("extra_body", None)
|
|
256
|
+
if isinstance(_extra_body, dict):
|
|
257
|
+
kwargs.update(_extra_body)
|
|
246
258
|
try:
|
|
247
259
|
# Try proper type conversion via from_json
|
|
248
260
|
google_create_interaction_request = GoogleCreateInteractionRequest.from_json(json.dumps(kwargs))
|
|
@@ -322,6 +334,12 @@ class InteractionsApi:
|
|
|
322
334
|
|
|
323
335
|
# If body param not provided, construct from kwargs
|
|
324
336
|
if google_create_interaction_request is None and kwargs:
|
|
337
|
+
# Merge extra_body contents into top-level kwargs (OpenAI SDK convention).
|
|
338
|
+
# The OpenAI SDK treats extra_body as a dict whose keys are merged into
|
|
339
|
+
# the request body; replicate that behavior here.
|
|
340
|
+
_extra_body = kwargs.pop("extra_body", None)
|
|
341
|
+
if isinstance(_extra_body, dict):
|
|
342
|
+
kwargs.update(_extra_body)
|
|
325
343
|
try:
|
|
326
344
|
# Try proper type conversion via from_json
|
|
327
345
|
google_create_interaction_request = GoogleCreateInteractionRequest.from_json(json.dumps(kwargs))
|
ogx_open_client/api/items_api.py
CHANGED
|
@@ -1080,6 +1080,12 @@ class ItemsApi:
|
|
|
1080
1080
|
|
|
1081
1081
|
# If body param not provided, construct from kwargs
|
|
1082
1082
|
if add_items_request is None and kwargs:
|
|
1083
|
+
# Merge extra_body contents into top-level kwargs (OpenAI SDK convention).
|
|
1084
|
+
# The OpenAI SDK treats extra_body as a dict whose keys are merged into
|
|
1085
|
+
# the request body; replicate that behavior here.
|
|
1086
|
+
_extra_body = kwargs.pop("extra_body", None)
|
|
1087
|
+
if isinstance(_extra_body, dict):
|
|
1088
|
+
kwargs.update(_extra_body)
|
|
1083
1089
|
try:
|
|
1084
1090
|
# Try proper type conversion via from_json
|
|
1085
1091
|
add_items_request = AddItemsRequest.from_json(json.dumps(kwargs))
|
|
@@ -1165,6 +1171,12 @@ class ItemsApi:
|
|
|
1165
1171
|
|
|
1166
1172
|
# If body param not provided, construct from kwargs
|
|
1167
1173
|
if add_items_request is None and kwargs:
|
|
1174
|
+
# Merge extra_body contents into top-level kwargs (OpenAI SDK convention).
|
|
1175
|
+
# The OpenAI SDK treats extra_body as a dict whose keys are merged into
|
|
1176
|
+
# the request body; replicate that behavior here.
|
|
1177
|
+
_extra_body = kwargs.pop("extra_body", None)
|
|
1178
|
+
if isinstance(_extra_body, dict):
|
|
1179
|
+
kwargs.update(_extra_body)
|
|
1168
1180
|
try:
|
|
1169
1181
|
# Try proper type conversion via from_json
|
|
1170
1182
|
add_items_request = AddItemsRequest.from_json(json.dumps(kwargs))
|
|
@@ -1248,6 +1260,12 @@ class ItemsApi:
|
|
|
1248
1260
|
|
|
1249
1261
|
# If body param not provided, construct from kwargs
|
|
1250
1262
|
if add_items_request is None and kwargs:
|
|
1263
|
+
# Merge extra_body contents into top-level kwargs (OpenAI SDK convention).
|
|
1264
|
+
# The OpenAI SDK treats extra_body as a dict whose keys are merged into
|
|
1265
|
+
# the request body; replicate that behavior here.
|
|
1266
|
+
_extra_body = kwargs.pop("extra_body", None)
|
|
1267
|
+
if isinstance(_extra_body, dict):
|
|
1268
|
+
kwargs.update(_extra_body)
|
|
1251
1269
|
try:
|
|
1252
1270
|
# Try proper type conversion via from_json
|
|
1253
1271
|
add_items_request = AddItemsRequest.from_json(json.dumps(kwargs))
|
|
@@ -1278,6 +1278,12 @@ class MessagesApi:
|
|
|
1278
1278
|
|
|
1279
1279
|
# If body param not provided, construct from kwargs
|
|
1280
1280
|
if create_message_batch_request is None and kwargs:
|
|
1281
|
+
# Merge extra_body contents into top-level kwargs (OpenAI SDK convention).
|
|
1282
|
+
# The OpenAI SDK treats extra_body as a dict whose keys are merged into
|
|
1283
|
+
# the request body; replicate that behavior here.
|
|
1284
|
+
_extra_body = kwargs.pop("extra_body", None)
|
|
1285
|
+
if isinstance(_extra_body, dict):
|
|
1286
|
+
kwargs.update(_extra_body)
|
|
1281
1287
|
try:
|
|
1282
1288
|
# Try proper type conversion via from_json
|
|
1283
1289
|
create_message_batch_request = CreateMessageBatchRequest.from_json(json.dumps(kwargs))
|
|
@@ -1359,6 +1365,12 @@ class MessagesApi:
|
|
|
1359
1365
|
|
|
1360
1366
|
# If body param not provided, construct from kwargs
|
|
1361
1367
|
if create_message_batch_request is None and kwargs:
|
|
1368
|
+
# Merge extra_body contents into top-level kwargs (OpenAI SDK convention).
|
|
1369
|
+
# The OpenAI SDK treats extra_body as a dict whose keys are merged into
|
|
1370
|
+
# the request body; replicate that behavior here.
|
|
1371
|
+
_extra_body = kwargs.pop("extra_body", None)
|
|
1372
|
+
if isinstance(_extra_body, dict):
|
|
1373
|
+
kwargs.update(_extra_body)
|
|
1362
1374
|
try:
|
|
1363
1375
|
# Try proper type conversion via from_json
|
|
1364
1376
|
create_message_batch_request = CreateMessageBatchRequest.from_json(json.dumps(kwargs))
|
|
@@ -1438,6 +1450,12 @@ class MessagesApi:
|
|
|
1438
1450
|
|
|
1439
1451
|
# If body param not provided, construct from kwargs
|
|
1440
1452
|
if create_message_batch_request is None and kwargs:
|
|
1453
|
+
# Merge extra_body contents into top-level kwargs (OpenAI SDK convention).
|
|
1454
|
+
# The OpenAI SDK treats extra_body as a dict whose keys are merged into
|
|
1455
|
+
# the request body; replicate that behavior here.
|
|
1456
|
+
_extra_body = kwargs.pop("extra_body", None)
|
|
1457
|
+
if isinstance(_extra_body, dict):
|
|
1458
|
+
kwargs.update(_extra_body)
|
|
1441
1459
|
try:
|
|
1442
1460
|
# Try proper type conversion via from_json
|
|
1443
1461
|
create_message_batch_request = CreateMessageBatchRequest.from_json(json.dumps(kwargs))
|
|
@@ -1888,6 +1906,12 @@ class MessagesApi:
|
|
|
1888
1906
|
|
|
1889
1907
|
# If body param not provided, construct from kwargs
|
|
1890
1908
|
if anthropic_count_tokens_request is None and kwargs:
|
|
1909
|
+
# Merge extra_body contents into top-level kwargs (OpenAI SDK convention).
|
|
1910
|
+
# The OpenAI SDK treats extra_body as a dict whose keys are merged into
|
|
1911
|
+
# the request body; replicate that behavior here.
|
|
1912
|
+
_extra_body = kwargs.pop("extra_body", None)
|
|
1913
|
+
if isinstance(_extra_body, dict):
|
|
1914
|
+
kwargs.update(_extra_body)
|
|
1891
1915
|
try:
|
|
1892
1916
|
# Try proper type conversion via from_json
|
|
1893
1917
|
anthropic_count_tokens_request = AnthropicCountTokensRequest.from_json(json.dumps(kwargs))
|
|
@@ -1969,6 +1993,12 @@ class MessagesApi:
|
|
|
1969
1993
|
|
|
1970
1994
|
# If body param not provided, construct from kwargs
|
|
1971
1995
|
if anthropic_count_tokens_request is None and kwargs:
|
|
1996
|
+
# Merge extra_body contents into top-level kwargs (OpenAI SDK convention).
|
|
1997
|
+
# The OpenAI SDK treats extra_body as a dict whose keys are merged into
|
|
1998
|
+
# the request body; replicate that behavior here.
|
|
1999
|
+
_extra_body = kwargs.pop("extra_body", None)
|
|
2000
|
+
if isinstance(_extra_body, dict):
|
|
2001
|
+
kwargs.update(_extra_body)
|
|
1972
2002
|
try:
|
|
1973
2003
|
# Try proper type conversion via from_json
|
|
1974
2004
|
anthropic_count_tokens_request = AnthropicCountTokensRequest.from_json(json.dumps(kwargs))
|
|
@@ -2048,6 +2078,12 @@ class MessagesApi:
|
|
|
2048
2078
|
|
|
2049
2079
|
# If body param not provided, construct from kwargs
|
|
2050
2080
|
if anthropic_count_tokens_request is None and kwargs:
|
|
2081
|
+
# Merge extra_body contents into top-level kwargs (OpenAI SDK convention).
|
|
2082
|
+
# The OpenAI SDK treats extra_body as a dict whose keys are merged into
|
|
2083
|
+
# the request body; replicate that behavior here.
|
|
2084
|
+
_extra_body = kwargs.pop("extra_body", None)
|
|
2085
|
+
if isinstance(_extra_body, dict):
|
|
2086
|
+
kwargs.update(_extra_body)
|
|
2051
2087
|
try:
|
|
2052
2088
|
# Try proper type conversion via from_json
|
|
2053
2089
|
anthropic_count_tokens_request = AnthropicCountTokensRequest.from_json(json.dumps(kwargs))
|
|
@@ -2198,6 +2234,12 @@ class MessagesApi:
|
|
|
2198
2234
|
|
|
2199
2235
|
# If body param not provided, construct from kwargs
|
|
2200
2236
|
if anthropic_create_message_request is None and kwargs:
|
|
2237
|
+
# Merge extra_body contents into top-level kwargs (OpenAI SDK convention).
|
|
2238
|
+
# The OpenAI SDK treats extra_body as a dict whose keys are merged into
|
|
2239
|
+
# the request body; replicate that behavior here.
|
|
2240
|
+
_extra_body = kwargs.pop("extra_body", None)
|
|
2241
|
+
if isinstance(_extra_body, dict):
|
|
2242
|
+
kwargs.update(_extra_body)
|
|
2201
2243
|
try:
|
|
2202
2244
|
# Try proper type conversion via from_json
|
|
2203
2245
|
anthropic_create_message_request = AnthropicCreateMessageRequest.from_json(json.dumps(kwargs))
|
|
@@ -2279,6 +2321,12 @@ class MessagesApi:
|
|
|
2279
2321
|
|
|
2280
2322
|
# If body param not provided, construct from kwargs
|
|
2281
2323
|
if anthropic_create_message_request is None and kwargs:
|
|
2324
|
+
# Merge extra_body contents into top-level kwargs (OpenAI SDK convention).
|
|
2325
|
+
# The OpenAI SDK treats extra_body as a dict whose keys are merged into
|
|
2326
|
+
# the request body; replicate that behavior here.
|
|
2327
|
+
_extra_body = kwargs.pop("extra_body", None)
|
|
2328
|
+
if isinstance(_extra_body, dict):
|
|
2329
|
+
kwargs.update(_extra_body)
|
|
2282
2330
|
try:
|
|
2283
2331
|
# Try proper type conversion via from_json
|
|
2284
2332
|
anthropic_create_message_request = AnthropicCreateMessageRequest.from_json(json.dumps(kwargs))
|
|
@@ -2358,6 +2406,12 @@ class MessagesApi:
|
|
|
2358
2406
|
|
|
2359
2407
|
# If body param not provided, construct from kwargs
|
|
2360
2408
|
if anthropic_create_message_request is None and kwargs:
|
|
2409
|
+
# Merge extra_body contents into top-level kwargs (OpenAI SDK convention).
|
|
2410
|
+
# The OpenAI SDK treats extra_body as a dict whose keys are merged into
|
|
2411
|
+
# the request body; replicate that behavior here.
|
|
2412
|
+
_extra_body = kwargs.pop("extra_body", None)
|
|
2413
|
+
if isinstance(_extra_body, dict):
|
|
2414
|
+
kwargs.update(_extra_body)
|
|
2361
2415
|
try:
|
|
2362
2416
|
# Try proper type conversion via from_json
|
|
2363
2417
|
anthropic_create_message_request = AnthropicCreateMessageRequest.from_json(json.dumps(kwargs))
|
|
@@ -173,6 +173,12 @@ class PromptsApi:
|
|
|
173
173
|
|
|
174
174
|
# If body param not provided, construct from kwargs
|
|
175
175
|
if set_default_version_body_request is None and kwargs:
|
|
176
|
+
# Merge extra_body contents into top-level kwargs (OpenAI SDK convention).
|
|
177
|
+
# The OpenAI SDK treats extra_body as a dict whose keys are merged into
|
|
178
|
+
# the request body; replicate that behavior here.
|
|
179
|
+
_extra_body = kwargs.pop("extra_body", None)
|
|
180
|
+
if isinstance(_extra_body, dict):
|
|
181
|
+
kwargs.update(_extra_body)
|
|
176
182
|
try:
|
|
177
183
|
# Try proper type conversion via from_json
|
|
178
184
|
set_default_version_body_request = SetDefaultVersionBodyRequest.from_json(json.dumps(kwargs))
|
|
@@ -258,6 +264,12 @@ class PromptsApi:
|
|
|
258
264
|
|
|
259
265
|
# If body param not provided, construct from kwargs
|
|
260
266
|
if set_default_version_body_request is None and kwargs:
|
|
267
|
+
# Merge extra_body contents into top-level kwargs (OpenAI SDK convention).
|
|
268
|
+
# The OpenAI SDK treats extra_body as a dict whose keys are merged into
|
|
269
|
+
# the request body; replicate that behavior here.
|
|
270
|
+
_extra_body = kwargs.pop("extra_body", None)
|
|
271
|
+
if isinstance(_extra_body, dict):
|
|
272
|
+
kwargs.update(_extra_body)
|
|
261
273
|
try:
|
|
262
274
|
# Try proper type conversion via from_json
|
|
263
275
|
set_default_version_body_request = SetDefaultVersionBodyRequest.from_json(json.dumps(kwargs))
|
|
@@ -341,6 +353,12 @@ class PromptsApi:
|
|
|
341
353
|
|
|
342
354
|
# If body param not provided, construct from kwargs
|
|
343
355
|
if set_default_version_body_request is None and kwargs:
|
|
356
|
+
# Merge extra_body contents into top-level kwargs (OpenAI SDK convention).
|
|
357
|
+
# The OpenAI SDK treats extra_body as a dict whose keys are merged into
|
|
358
|
+
# the request body; replicate that behavior here.
|
|
359
|
+
_extra_body = kwargs.pop("extra_body", None)
|
|
360
|
+
if isinstance(_extra_body, dict):
|
|
361
|
+
kwargs.update(_extra_body)
|
|
344
362
|
try:
|
|
345
363
|
# Try proper type conversion via from_json
|
|
346
364
|
set_default_version_body_request = SetDefaultVersionBodyRequest.from_json(json.dumps(kwargs))
|
|
@@ -495,6 +513,12 @@ class PromptsApi:
|
|
|
495
513
|
|
|
496
514
|
# If body param not provided, construct from kwargs
|
|
497
515
|
if create_prompt_request is None and kwargs:
|
|
516
|
+
# Merge extra_body contents into top-level kwargs (OpenAI SDK convention).
|
|
517
|
+
# The OpenAI SDK treats extra_body as a dict whose keys are merged into
|
|
518
|
+
# the request body; replicate that behavior here.
|
|
519
|
+
_extra_body = kwargs.pop("extra_body", None)
|
|
520
|
+
if isinstance(_extra_body, dict):
|
|
521
|
+
kwargs.update(_extra_body)
|
|
498
522
|
try:
|
|
499
523
|
# Try proper type conversion via from_json
|
|
500
524
|
create_prompt_request = CreatePromptRequest.from_json(json.dumps(kwargs))
|
|
@@ -576,6 +600,12 @@ class PromptsApi:
|
|
|
576
600
|
|
|
577
601
|
# If body param not provided, construct from kwargs
|
|
578
602
|
if create_prompt_request is None and kwargs:
|
|
603
|
+
# Merge extra_body contents into top-level kwargs (OpenAI SDK convention).
|
|
604
|
+
# The OpenAI SDK treats extra_body as a dict whose keys are merged into
|
|
605
|
+
# the request body; replicate that behavior here.
|
|
606
|
+
_extra_body = kwargs.pop("extra_body", None)
|
|
607
|
+
if isinstance(_extra_body, dict):
|
|
608
|
+
kwargs.update(_extra_body)
|
|
579
609
|
try:
|
|
580
610
|
# Try proper type conversion via from_json
|
|
581
611
|
create_prompt_request = CreatePromptRequest.from_json(json.dumps(kwargs))
|
|
@@ -655,6 +685,12 @@ class PromptsApi:
|
|
|
655
685
|
|
|
656
686
|
# If body param not provided, construct from kwargs
|
|
657
687
|
if create_prompt_request is None and kwargs:
|
|
688
|
+
# Merge extra_body contents into top-level kwargs (OpenAI SDK convention).
|
|
689
|
+
# The OpenAI SDK treats extra_body as a dict whose keys are merged into
|
|
690
|
+
# the request body; replicate that behavior here.
|
|
691
|
+
_extra_body = kwargs.pop("extra_body", None)
|
|
692
|
+
if isinstance(_extra_body, dict):
|
|
693
|
+
kwargs.update(_extra_body)
|
|
658
694
|
try:
|
|
659
695
|
# Try proper type conversion via from_json
|
|
660
696
|
create_prompt_request = CreatePromptRequest.from_json(json.dumps(kwargs))
|
|
@@ -1353,6 +1389,12 @@ class PromptsApi:
|
|
|
1353
1389
|
|
|
1354
1390
|
# If body param not provided, construct from kwargs
|
|
1355
1391
|
if update_prompt_body_request is None and kwargs:
|
|
1392
|
+
# Merge extra_body contents into top-level kwargs (OpenAI SDK convention).
|
|
1393
|
+
# The OpenAI SDK treats extra_body as a dict whose keys are merged into
|
|
1394
|
+
# the request body; replicate that behavior here.
|
|
1395
|
+
_extra_body = kwargs.pop("extra_body", None)
|
|
1396
|
+
if isinstance(_extra_body, dict):
|
|
1397
|
+
kwargs.update(_extra_body)
|
|
1356
1398
|
try:
|
|
1357
1399
|
# Try proper type conversion via from_json
|
|
1358
1400
|
update_prompt_body_request = UpdatePromptBodyRequest.from_json(json.dumps(kwargs))
|
|
@@ -1438,6 +1480,12 @@ class PromptsApi:
|
|
|
1438
1480
|
|
|
1439
1481
|
# If body param not provided, construct from kwargs
|
|
1440
1482
|
if update_prompt_body_request is None and kwargs:
|
|
1483
|
+
# Merge extra_body contents into top-level kwargs (OpenAI SDK convention).
|
|
1484
|
+
# The OpenAI SDK treats extra_body as a dict whose keys are merged into
|
|
1485
|
+
# the request body; replicate that behavior here.
|
|
1486
|
+
_extra_body = kwargs.pop("extra_body", None)
|
|
1487
|
+
if isinstance(_extra_body, dict):
|
|
1488
|
+
kwargs.update(_extra_body)
|
|
1441
1489
|
try:
|
|
1442
1490
|
# Try proper type conversion via from_json
|
|
1443
1491
|
update_prompt_body_request = UpdatePromptBodyRequest.from_json(json.dumps(kwargs))
|
|
@@ -1521,6 +1569,12 @@ class PromptsApi:
|
|
|
1521
1569
|
|
|
1522
1570
|
# If body param not provided, construct from kwargs
|
|
1523
1571
|
if update_prompt_body_request is None and kwargs:
|
|
1572
|
+
# Merge extra_body contents into top-level kwargs (OpenAI SDK convention).
|
|
1573
|
+
# The OpenAI SDK treats extra_body as a dict whose keys are merged into
|
|
1574
|
+
# the request body; replicate that behavior here.
|
|
1575
|
+
_extra_body = kwargs.pop("extra_body", None)
|
|
1576
|
+
if isinstance(_extra_body, dict):
|
|
1577
|
+
kwargs.update(_extra_body)
|
|
1524
1578
|
try:
|
|
1525
1579
|
# Try proper type conversion via from_json
|
|
1526
1580
|
update_prompt_body_request = UpdatePromptBodyRequest.from_json(json.dumps(kwargs))
|