From 2c8aea218c5d674ab3a9ec0ffda949d588e39866 Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Tue, 10 Jun 2025 16:28:13 +0000
Subject: [PATCH 1/5] chore: sync repo
---
.github/workflows/ci.yml | 6 +-
.stats.yml | 4 +-
CONTRIBUTING.md | 9 +-
LICENSE | 2 +-
README.md | 104 +++---
SECURITY.md | 2 +-
api.md | 339 +++++++++---------
mypy.ini | 2 +-
pyproject.toml | 20 +-
requirements-dev.lock | 12 +-
requirements.lock | 12 +-
scripts/lint | 2 +-
scripts/utils/upload-artifact.sh | 2 +-
.../_utils/_resources_proxy.py | 24 --
.../__init__.py | 16 +-
.../_base_client.py | 8 +-
.../_client.py | 70 ++--
.../_compat.py | 0
.../_constants.py | 0
.../_exceptions.py | 4 +-
.../_files.py | 2 +-
.../_models.py | 2 +
.../_qs.py | 0
.../_resource.py | 10 +-
.../_response.py | 12 +-
.../_streaming.py | 6 +-
.../_types.py | 4 +-
.../_utils/__init__.py | 0
.../_utils/_logs.py | 6 +-
.../_utils/_proxy.py | 0
.../_utils/_reflection.py | 0
.../_utils/_resources_proxy.py | 24 ++
.../_utils/_streams.py | 0
.../_utils/_sync.py | 0
.../_utils/_transform.py | 0
.../_utils/_typing.py | 0
.../_utils/_utils.py | 0
.../_version.py | 2 +-
.../lib/.keep | 0
.../py.typed | 0
.../resources/__init__.py | 0
.../resources/assistants.py | 18 +-
.../resources/audio.py | 8 +-
.../resources/batches.py | 8 +-
.../resources/chat/__init__.py | 0
.../resources/chat/chat.py | 8 +-
.../resources/chat/completions.py | 44 +--
.../resources/completions.py | 8 +-
.../resources/embeddings.py | 8 +-
.../resources/files.py | 8 +-
.../resources/fine_tuning/__init__.py | 0
.../fine_tuning/checkpoints/__init__.py | 0
.../fine_tuning/checkpoints/checkpoints.py | 8 +-
.../fine_tuning/checkpoints/permissions.py | 8 +-
.../resources/fine_tuning/fine_tuning.py | 8 +-
.../resources/fine_tuning/jobs/__init__.py | 0
.../resources/fine_tuning/jobs/checkpoints.py | 8 +-
.../resources/fine_tuning/jobs/events.py | 8 +-
.../resources/fine_tuning/jobs/jobs.py | 8 +-
.../resources/images.py | 8 +-
.../resources/models.py | 8 +-
.../resources/moderations.py | 8 +-
.../resources/organization/__init__.py | 0
.../resources/organization/admin_api_keys.py | 8 +-
.../resources/organization/invites.py | 8 +-
.../resources/organization/organization.py | 8 +-
.../organization/projects/__init__.py | 0
.../organization/projects/api_keys.py | 18 +-
.../organization/projects/projects.py | 8 +-
.../organization/projects/rate_limits.py | 18 +-
.../organization/projects/service_accounts.py | 18 +-
.../resources/organization/projects/users.py | 8 +-
.../resources/organization/usage.py | 8 +-
.../resources/organization/users.py | 26 +-
.../resources/realtime.py | 8 +-
.../resources/responses.py | 8 +-
.../resources/threads/__init__.py | 0
.../resources/threads/messages.py | 8 +-
.../resources/threads/runs/__init__.py | 0
.../resources/threads/runs/runs.py | 18 +-
.../resources/threads/runs/steps.py | 8 +-
.../resources/threads/threads.py | 8 +-
.../resources/uploads.py | 8 +-
.../resources/vector_stores/__init__.py | 0
.../resources/vector_stores/file_batches.py | 8 +-
.../resources/vector_stores/files.py | 8 +-
.../resources/vector_stores/vector_stores.py | 8 +-
.../types/__init__.py | 8 +-
.../types/api_response_format_option.py} | 4 +-
.../api_response_format_option_param.py} | 4 +-
.../types/assistant_create_params.py | 4 +-
.../types/assistant_delete_response.py | 0
.../types/assistant_list_params.py | 0
.../types/assistant_list_response.py | 0
.../types/assistant_object.py | 4 +-
.../types/assistant_supported_models.py | 0
.../types/assistant_tools_code.py | 0
.../types/assistant_tools_code_param.py | 0
.../types/assistant_tools_file_search.py | 0
.../assistant_tools_file_search_param.py | 0
.../types/assistant_tools_function.py | 0
.../types/assistant_tools_function_param.py | 0
.../types/assistant_update_params.py | 4 +-
.../types/audio_generate_speech_params.py | 0
.../types/audio_transcribe_audio_params.py | 0
.../types/audio_transcribe_audio_response.py | 0
.../types/audio_translate_audio_params.py | 0
.../types/audio_translate_audio_response.py | 0
.../types/audit_log_actor_user.py | 0
.../types/audit_log_event_type.py | 0
.../auto_chunking_strategy_request_param.py | 0
.../types/batch.py | 0
.../types/batch_create_params.py | 0
.../types/batch_list_params.py | 0
.../types/batch_list_response.py | 0
.../types/chat/__init__.py | 6 +-
.../types/chat/completion_create_params.py | 0
.../types/chat/completion_delete_response.py | 0
.../types/chat/completion_list_params.py | 0
.../types/chat/completion_list_response.py | 0
.../completion_retrieve_messages_params.py} | 4 +-
.../completion_retrieve_messages_response.py} | 4 +-
.../types/chat/completion_update_params.py | 0
.../types/chat/create_response.py | 0
.../types/chat/message_tool_call.py | 0
.../types/chat/message_tool_call_param.py | 0
.../types/chat/model_ids_shared_param.py | 0
...request_message_content_part_text_param.py | 0
.../types/chat/response_format_json_object.py | 0
.../chat/response_format_json_object_param.py | 0
.../types/chat/response_format_json_schema.py | 0
.../chat/response_format_json_schema_param.py | 0
.../types/chat/response_format_text.py | 0
.../types/chat/response_format_text_param.py | 0
.../types/chat/response_message.py | 0
.../types/chat/token_logprob.py | 0
.../types/chat/usage.py | 0
.../types/chat/web_search_context_size.py | 0
.../types/chat/web_search_location.py | 0
.../types/chat/web_search_location_param.py | 0
.../chat_completion_stream_options_param.py | 0
.../types/comparison_filter.py | 0
.../types/comparison_filter_param.py | 0
.../types/completion_create_params.py | 0
.../types/completion_create_response.py | 0
.../types/compound_filter.py | 0
.../types/compound_filter_param.py | 0
.../types/computer_tool_call.py | 0
.../types/computer_tool_call_output.py | 0
.../types/computer_tool_call_output_param.py | 0
.../types/computer_tool_call_param.py | 0
.../types/computer_tool_call_safety_check.py | 0
.../computer_tool_call_safety_check_param.py | 0
.../types/create_thread_request_param.py | 0
.../types/embedding_create_params.py | 0
.../types/embedding_create_response.py | 0
.../types/file_delete_response.py | 0
.../types/file_list_params.py | 0
.../types/file_list_response.py | 0
.../types/file_retrieve_content_response.py | 0
.../types/file_search_ranker.py | 0
.../types/file_search_tool_call.py | 0
.../types/file_search_tool_call_param.py | 0
.../types/file_upload_params.py | 0
.../types/fine_tuning/__init__.py | 0
.../types/fine_tuning/checkpoints/__init__.py | 0
.../list_fine_tuning_checkpoint_permission.py | 0
.../checkpoints/permission_create_params.py | 0
.../checkpoints/permission_delete_response.py | 0
.../checkpoints/permission_retrieve_params.py | 0
.../types/fine_tuning/fine_tune_method.py | 0
.../fine_tuning/fine_tune_method_param.py | 0
.../types/fine_tuning/fine_tuning_job.py | 0
.../types/fine_tuning/job_create_params.py | 0
.../types/fine_tuning/job_list_params.py | 0
.../types/fine_tuning/job_list_response.py | 0
.../types/fine_tuning/jobs/__init__.py | 0
.../jobs/checkpoint_retrieve_params.py | 0
.../jobs/checkpoint_retrieve_response.py | 0
.../fine_tuning/jobs/event_retrieve_params.py | 0
.../jobs/event_retrieve_response.py | 0
.../types/function_object.py | 0
.../types/function_object_param.py | 0
.../types/function_tool_call.py | 0
.../types/function_tool_call_output.py | 0
.../types/function_tool_call_output_param.py | 0
.../types/function_tool_call_param.py | 0
.../types/image_create_edit_params.py | 0
.../types/image_create_generation_params.py | 0
.../types/image_create_variation_params.py | 0
.../types/images_response.py | 0
.../types/includable.py | 0
.../types/input_content.py | 0
.../types/input_content_param.py | 0
.../types/input_message.py | 0
.../types/input_message_param.py | 0
.../types/model.py | 0
.../types/model_delete_response.py | 0
.../types/model_list_response.py | 0
.../types/model_response_properties.py | 0
.../types/moderation_classify_params.py | 0
.../types/moderation_classify_response.py | 0
.../types/openai_file.py | 0
.../types/organization/__init__.py | 2 +-
.../types/organization/admin_api_key.py | 0
.../admin_api_key_create_params.py | 0
.../admin_api_key_delete_response.py | 0
.../organization/admin_api_key_list_params.py | 0
.../admin_api_key_list_response.py | 0
.../types/organization/invite.py | 0
.../organization/invite_create_params.py | 0
.../organization/invite_delete_response.py | 0
.../types/organization/invite_list_params.py | 0
.../organization/invite_list_response.py | 0
.../types/organization/project.py | 0
.../organization/project_create_params.py | 0
.../types/organization/project_list_params.py | 0
.../organization/project_list_response.py | 0
.../organization/project_update_params.py | 0
.../types/organization/projects/__init__.py | 6 +-
.../projects/api_key_delete_response.py | 0
.../projects/api_key_list_params.py | 0
.../projects/api_key_list_response.py | 4 +-
.../organization/projects/project_api_key.py} | 8 +-
.../projects/project_rate_limit.py} | 4 +-
.../projects/project_service_account.py} | 4 +-
.../organization/projects/project_user.py | 0
.../projects/rate_limit_list_params.py | 0
.../projects/rate_limit_list_response.py | 4 +-
.../projects/rate_limit_update_params.py | 0
.../projects/service_account_create_params.py | 0
.../service_account_create_response.py | 0
.../service_account_delete_response.py | 0
.../projects/service_account_list_params.py | 0
.../projects/service_account_list_response.py | 4 +-
.../organization/projects/user_add_params.py | 0
.../projects/user_delete_response.py | 0
.../organization/projects/user_list_params.py | 0
.../projects/user_list_response.py | 0
.../projects/user_update_params.py | 0
.../usage_audio_speeches_params.py | 0
.../usage_audio_transcriptions_params.py | 0
.../usage_code_interpreter_sessions_params.py | 0
.../organization/usage_completions_params.py | 0
.../organization/usage_embeddings_params.py | 0
.../types/organization/usage_images_params.py | 0
.../organization/usage_moderations_params.py | 0
.../usage_vector_stores_params.py | 0
.../types/organization/user.py} | 4 +-
.../organization/user_delete_response.py | 0
.../types/organization/user_list_params.py | 0
.../types/organization/user_list_response.py | 4 +-
.../types/organization/user_update_params.py | 0
.../types/organization_get_costs_params.py | 0
.../organization_list_audit_logs_params.py | 0
.../organization_list_audit_logs_response.py | 0
.../types/output_message.py | 0
.../types/output_message_param.py | 0
.../types/realtime_create_session_params.py | 0
.../types/realtime_create_session_response.py | 0
...ime_create_transcription_session_params.py | 0
...e_create_transcription_session_response.py | 0
.../types/reasoning_effort.py | 0
.../types/reasoning_item.py | 0
.../types/reasoning_item_param.py | 0
.../types/response.py | 0
.../types/response_create_params.py | 0
.../types/response_list_input_items_params.py | 0
.../response_list_input_items_response.py | 0
.../types/response_properties.py | 0
.../types/response_retrieve_params.py | 0
.../types/static_chunking_strategy.py | 0
.../types/static_chunking_strategy_param.py | 0
.../static_chunking_strategy_request_param.py | 0
.../types/stop_configuration_param.py | 0
.../types/thread_create_params.py | 0
.../types/thread_delete_response.py | 0
.../types/thread_object.py | 0
.../types/thread_update_params.py | 0
.../types/threads/__init__.py | 0
.../assistant_tools_file_search_type_only.py | 0
...stant_tools_file_search_type_only_param.py | 0
.../assistants_api_tool_choice_option.py | 0
...assistants_api_tool_choice_option_param.py | 0
.../threads/create_message_request_param.py | 0
.../message_content_image_file_object.py | 0
...message_content_image_file_object_param.py | 0
.../message_content_image_url_object.py | 0
.../message_content_image_url_object_param.py | 0
.../types/threads/message_create_params.py | 0
.../types/threads/message_delete_response.py | 0
.../types/threads/message_list_params.py | 0
.../types/threads/message_list_response.py | 0
.../types/threads/message_object.py | 0
.../types/threads/message_update_params.py | 0
.../types/threads/run_create_params.py | 4 +-
.../types/threads/run_create_run_params.py | 4 +-
.../types/threads/run_list_params.py | 0
.../types/threads/run_list_response.py | 0
.../types/threads/run_object.py | 4 +-
.../threads/run_submit_tool_outputs_params.py | 0
.../types/threads/run_update_params.py | 0
.../types/threads/runs/__init__.py | 0
.../types/threads/runs/run_step_object.py | 0
.../types/threads/runs/step_list_params.py | 0
.../types/threads/runs/step_list_response.py | 0
.../threads/runs/step_retrieve_params.py | 0
.../types/threads/truncation_object.py | 0
.../types/threads/truncation_object_param.py | 0
.../types/transcription_segment.py | 0
.../types/upload.py | 0
.../types/upload_add_part_params.py | 0
.../types/upload_add_part_response.py | 0
.../types/upload_complete_params.py | 0
.../types/upload_create_params.py | 0
.../types/usage_response.py | 0
.../types/vector_store_create_params.py | 0
.../types/vector_store_delete_response.py | 0
.../types/vector_store_expiration_after.py | 0
.../vector_store_expiration_after_param.py | 0
.../types/vector_store_list_params.py | 0
.../types/vector_store_list_response.py | 0
.../types/vector_store_object.py | 0
.../types/vector_store_search_params.py | 0
.../types/vector_store_search_response.py | 0
.../types/vector_store_update_params.py | 0
.../types/vector_stores/__init__.py | 0
.../chunking_strategy_request_param.py | 0
.../vector_stores/file_batch_create_params.py | 0
.../file_batch_list_files_params.py | 0
.../types/vector_stores/file_create_params.py | 0
.../vector_stores/file_delete_response.py | 0
.../types/vector_stores/file_list_params.py | 0
.../file_retrieve_content_response.py | 0
.../types/vector_stores/file_update_params.py | 0
.../list_vector_store_files_response.py | 0
.../vector_store_file_batch_object.py | 0
.../vector_stores/vector_store_file_object.py | 0
.../types/voice_ids_shared.py | 0
.../types/voice_ids_shared_param.py | 0
.../types/web_search_tool_call.py | 0
.../types/web_search_tool_call_param.py | 0
tests/api_resources/chat/test_completions.py | 144 ++++----
.../checkpoints/test_permissions.py | 56 +--
.../fine_tuning/jobs/test_checkpoints.py | 24 +-
.../fine_tuning/jobs/test_events.py | 24 +-
tests/api_resources/fine_tuning/test_jobs.py | 68 ++--
.../organization/projects/test_api_keys.py | 70 ++--
.../organization/projects/test_rate_limits.py | 62 ++--
.../projects/test_service_accounts.py | 86 ++---
.../organization/projects/test_users.py | 88 ++---
.../organization/test_admin_api_keys.py | 64 ++--
.../organization/test_invites.py | 68 ++--
.../organization/test_projects.py | 80 ++---
.../api_resources/organization/test_usage.py | 136 +++----
.../api_resources/organization/test_users.py | 94 ++---
tests/api_resources/test_assistants.py | 88 ++---
tests/api_resources/test_audio.py | 58 +--
tests/api_resources/test_batches.py | 68 ++--
tests/api_resources/test_completions.py | 20 +-
tests/api_resources/test_embeddings.py | 20 +-
tests/api_resources/test_files.py | 80 ++---
tests/api_resources/test_images.py | 54 +--
tests/api_resources/test_models.py | 48 +--
tests/api_resources/test_moderations.py | 20 +-
tests/api_resources/test_organization.py | 36 +-
tests/api_resources/test_realtime.py | 38 +-
tests/api_resources/test_responses.py | 76 ++--
tests/api_resources/test_threads.py | 75 ++--
tests/api_resources/test_uploads.py | 68 ++--
tests/api_resources/test_vector_stores.py | 108 +++---
.../api_resources/threads/runs/test_steps.py | 44 +--
tests/api_resources/threads/test_messages.py | 96 ++---
tests/api_resources/threads/test_runs.py | 134 +++----
.../vector_stores/test_file_batches.py | 76 ++--
.../api_resources/vector_stores/test_files.py | 108 +++---
tests/conftest.py | 12 +-
tests/test_client.py | 266 ++++++++------
tests/test_deepcopy.py | 2 +-
tests/test_extract_files.py | 4 +-
tests/test_files.py | 2 +-
tests/test_models.py | 6 +-
tests/test_qs.py | 2 +-
tests/test_required_args.py | 2 +-
tests/test_response.py | 38 +-
tests/test_streaming.py | 34 +-
tests/test_transform.py | 8 +-
tests/test_utils/test_proxy.py | 2 +-
tests/test_utils/test_typing.py | 2 +-
tests/utils.py | 8 +-
390 files changed, 2030 insertions(+), 1941 deletions(-)
delete mode 100644 src/digitalocean_genai_sdk/_utils/_resources_proxy.py
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/__init__.py (85%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/_base_client.py (99%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/_client.py (90%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/_compat.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/_constants.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/_exceptions.py (96%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/_files.py (97%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/_models.py (99%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/_qs.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/_resource.py (74%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/_response.py (98%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/_streaming.py (98%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/_types.py (98%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/_utils/__init__.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/_utils/_logs.py (66%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/_utils/_proxy.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/_utils/_reflection.py (100%)
create mode 100644 src/serverless_inference_sdk_prod/_utils/_resources_proxy.py
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/_utils/_streams.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/_utils/_sync.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/_utils/_transform.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/_utils/_typing.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/_utils/_utils.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/_version.py (72%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/lib/.keep (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/py.typed (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/resources/__init__.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/resources/assistants.py (98%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/resources/audio.py (98%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/resources/batches.py (98%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/resources/chat/__init__.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/resources/chat/chat.py (91%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/resources/chat/completions.py (97%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/resources/completions.py (98%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/resources/embeddings.py (97%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/resources/files.py (98%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/resources/fine_tuning/__init__.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/resources/fine_tuning/checkpoints/__init__.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/resources/fine_tuning/checkpoints/checkpoints.py (92%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/resources/fine_tuning/checkpoints/permissions.py (98%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/resources/fine_tuning/fine_tuning.py (93%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/resources/fine_tuning/jobs/__init__.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/resources/fine_tuning/jobs/checkpoints.py (95%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/resources/fine_tuning/jobs/events.py (95%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/resources/fine_tuning/jobs/jobs.py (98%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/resources/images.py (98%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/resources/models.py (97%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/resources/moderations.py (96%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/resources/organization/__init__.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/resources/organization/admin_api_keys.py (98%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/resources/organization/invites.py (98%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/resources/organization/organization.py (98%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/resources/organization/projects/__init__.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/resources/organization/projects/api_keys.py (96%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/resources/organization/projects/projects.py (98%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/resources/organization/projects/rate_limits.py (96%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/resources/organization/projects/service_accounts.py (97%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/resources/organization/projects/users.py (98%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/resources/organization/usage.py (99%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/resources/organization/users.py (96%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/resources/realtime.py (99%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/resources/responses.py (99%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/resources/threads/__init__.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/resources/threads/messages.py (98%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/resources/threads/runs/__init__.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/resources/threads/runs/runs.py (98%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/resources/threads/runs/steps.py (98%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/resources/threads/threads.py (98%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/resources/uploads.py (98%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/resources/vector_stores/__init__.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/resources/vector_stores/file_batches.py (98%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/resources/vector_stores/files.py (99%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/resources/vector_stores/vector_stores.py (99%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/__init__.py (97%)
rename src/{digitalocean_genai_sdk/types/assistants_api_response_format_option.py => serverless_inference_sdk_prod/types/api_response_format_option.py} (81%)
rename src/{digitalocean_genai_sdk/types/assistants_api_response_format_option_param.py => serverless_inference_sdk_prod/types/api_response_format_option_param.py} (82%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/assistant_create_params.py (97%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/assistant_delete_response.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/assistant_list_params.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/assistant_list_response.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/assistant_object.py (96%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/assistant_supported_models.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/assistant_tools_code.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/assistant_tools_code_param.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/assistant_tools_file_search.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/assistant_tools_file_search_param.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/assistant_tools_function.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/assistant_tools_function_param.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/assistant_update_params.py (96%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/audio_generate_speech_params.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/audio_transcribe_audio_params.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/audio_transcribe_audio_response.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/audio_translate_audio_params.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/audio_translate_audio_response.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/audit_log_actor_user.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/audit_log_event_type.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/auto_chunking_strategy_request_param.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/batch.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/batch_create_params.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/batch_list_params.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/batch_list_response.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/chat/__init__.py (88%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/chat/completion_create_params.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/chat/completion_delete_response.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/chat/completion_list_params.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/chat/completion_list_response.py (100%)
rename src/{digitalocean_genai_sdk/types/chat/completion_list_messages_params.py => serverless_inference_sdk_prod/types/chat/completion_retrieve_messages_params.py} (81%)
rename src/{digitalocean_genai_sdk/types/chat/completion_list_messages_response.py => serverless_inference_sdk_prod/types/chat/completion_retrieve_messages_response.py} (87%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/chat/completion_update_params.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/chat/create_response.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/chat/message_tool_call.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/chat/message_tool_call_param.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/chat/model_ids_shared_param.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/chat/request_message_content_part_text_param.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/chat/response_format_json_object.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/chat/response_format_json_object_param.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/chat/response_format_json_schema.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/chat/response_format_json_schema_param.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/chat/response_format_text.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/chat/response_format_text_param.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/chat/response_message.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/chat/token_logprob.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/chat/usage.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/chat/web_search_context_size.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/chat/web_search_location.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/chat/web_search_location_param.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/chat_completion_stream_options_param.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/comparison_filter.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/comparison_filter_param.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/completion_create_params.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/completion_create_response.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/compound_filter.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/compound_filter_param.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/computer_tool_call.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/computer_tool_call_output.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/computer_tool_call_output_param.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/computer_tool_call_param.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/computer_tool_call_safety_check.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/computer_tool_call_safety_check_param.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/create_thread_request_param.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/embedding_create_params.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/embedding_create_response.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/file_delete_response.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/file_list_params.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/file_list_response.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/file_retrieve_content_response.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/file_search_ranker.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/file_search_tool_call.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/file_search_tool_call_param.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/file_upload_params.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/fine_tuning/__init__.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/fine_tuning/checkpoints/__init__.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/fine_tuning/checkpoints/list_fine_tuning_checkpoint_permission.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/fine_tuning/checkpoints/permission_create_params.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/fine_tuning/checkpoints/permission_delete_response.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/fine_tuning/checkpoints/permission_retrieve_params.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/fine_tuning/fine_tune_method.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/fine_tuning/fine_tune_method_param.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/fine_tuning/fine_tuning_job.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/fine_tuning/job_create_params.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/fine_tuning/job_list_params.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/fine_tuning/job_list_response.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/fine_tuning/jobs/__init__.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/fine_tuning/jobs/checkpoint_retrieve_params.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/fine_tuning/jobs/checkpoint_retrieve_response.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/fine_tuning/jobs/event_retrieve_params.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/fine_tuning/jobs/event_retrieve_response.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/function_object.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/function_object_param.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/function_tool_call.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/function_tool_call_output.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/function_tool_call_output_param.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/function_tool_call_param.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/image_create_edit_params.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/image_create_generation_params.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/image_create_variation_params.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/images_response.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/includable.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/input_content.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/input_content_param.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/input_message.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/input_message_param.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/model.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/model_delete_response.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/model_list_response.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/model_response_properties.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/moderation_classify_params.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/moderation_classify_response.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/openai_file.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/organization/__init__.py (97%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/organization/admin_api_key.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/organization/admin_api_key_create_params.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/organization/admin_api_key_delete_response.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/organization/admin_api_key_list_params.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/organization/admin_api_key_list_response.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/organization/invite.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/organization/invite_create_params.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/organization/invite_delete_response.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/organization/invite_list_params.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/organization/invite_list_response.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/organization/project.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/organization/project_create_params.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/organization/project_list_params.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/organization/project_list_response.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/organization/project_update_params.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/organization/projects/__init__.py (87%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/organization/projects/api_key_delete_response.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/organization/projects/api_key_list_params.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/organization/projects/api_key_list_response.py (82%)
rename src/{digitalocean_genai_sdk/types/organization/projects/api_key.py => serverless_inference_sdk_prod/types/organization/projects/project_api_key.py} (83%)
rename src/{digitalocean_genai_sdk/types/organization/projects/rate_limit.py => serverless_inference_sdk_prod/types/organization/projects/project_rate_limit.py} (94%)
rename src/{digitalocean_genai_sdk/types/organization/projects/service_account.py => serverless_inference_sdk_prod/types/organization/projects/project_service_account.py} (88%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/organization/projects/project_user.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/organization/projects/rate_limit_list_params.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/organization/projects/rate_limit_list_response.py (80%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/organization/projects/rate_limit_update_params.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/organization/projects/service_account_create_params.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/organization/projects/service_account_create_response.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/organization/projects/service_account_delete_response.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/organization/projects/service_account_list_params.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/organization/projects/service_account_list_response.py (78%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/organization/projects/user_add_params.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/organization/projects/user_delete_response.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/organization/projects/user_list_params.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/organization/projects/user_list_response.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/organization/projects/user_update_params.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/organization/usage_audio_speeches_params.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/organization/usage_audio_transcriptions_params.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/organization/usage_code_interpreter_sessions_params.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/organization/usage_completions_params.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/organization/usage_embeddings_params.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/organization/usage_images_params.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/organization/usage_moderations_params.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/organization/usage_vector_stores_params.py (100%)
rename src/{digitalocean_genai_sdk/types/organization/organization_user.py => serverless_inference_sdk_prod/types/organization/user.py} (90%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/organization/user_delete_response.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/organization/user_list_params.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/organization/user_list_response.py (80%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/organization/user_update_params.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/organization_get_costs_params.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/organization_list_audit_logs_params.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/organization_list_audit_logs_response.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/output_message.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/output_message_param.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/realtime_create_session_params.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/realtime_create_session_response.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/realtime_create_transcription_session_params.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/realtime_create_transcription_session_response.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/reasoning_effort.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/reasoning_item.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/reasoning_item_param.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/response.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/response_create_params.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/response_list_input_items_params.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/response_list_input_items_response.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/response_properties.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/response_retrieve_params.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/static_chunking_strategy.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/static_chunking_strategy_param.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/static_chunking_strategy_request_param.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/stop_configuration_param.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/thread_create_params.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/thread_delete_response.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/thread_object.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/thread_update_params.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/threads/__init__.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/threads/assistant_tools_file_search_type_only.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/threads/assistant_tools_file_search_type_only_param.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/threads/assistants_api_tool_choice_option.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/threads/assistants_api_tool_choice_option_param.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/threads/create_message_request_param.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/threads/message_content_image_file_object.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/threads/message_content_image_file_object_param.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/threads/message_content_image_url_object.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/threads/message_content_image_url_object_param.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/threads/message_create_params.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/threads/message_delete_response.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/threads/message_list_params.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/threads/message_list_response.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/threads/message_object.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/threads/message_update_params.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/threads/run_create_params.py (97%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/threads/run_create_run_params.py (97%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/threads/run_list_params.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/threads/run_list_response.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/threads/run_object.py (98%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/threads/run_submit_tool_outputs_params.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/threads/run_update_params.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/threads/runs/__init__.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/threads/runs/run_step_object.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/threads/runs/step_list_params.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/threads/runs/step_list_response.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/threads/runs/step_retrieve_params.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/threads/truncation_object.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/threads/truncation_object_param.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/transcription_segment.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/upload.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/upload_add_part_params.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/upload_add_part_response.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/upload_complete_params.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/upload_create_params.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/usage_response.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/vector_store_create_params.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/vector_store_delete_response.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/vector_store_expiration_after.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/vector_store_expiration_after_param.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/vector_store_list_params.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/vector_store_list_response.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/vector_store_object.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/vector_store_search_params.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/vector_store_search_response.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/vector_store_update_params.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/vector_stores/__init__.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/vector_stores/chunking_strategy_request_param.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/vector_stores/file_batch_create_params.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/vector_stores/file_batch_list_files_params.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/vector_stores/file_create_params.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/vector_stores/file_delete_response.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/vector_stores/file_list_params.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/vector_stores/file_retrieve_content_response.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/vector_stores/file_update_params.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/vector_stores/list_vector_store_files_response.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/vector_stores/vector_store_file_batch_object.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/vector_stores/vector_store_file_object.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/voice_ids_shared.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/voice_ids_shared_param.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/web_search_tool_call.py (100%)
rename src/{digitalocean_genai_sdk => serverless_inference_sdk_prod}/types/web_search_tool_call_param.py (100%)
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 88980c93..47aea596 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -12,7 +12,7 @@ jobs:
lint:
timeout-minutes: 10
name: lint
- runs-on: ${{ github.repository == 'stainless-sdks/digitalocean-genai-sdk-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
+ runs-on: ${{ github.repository == 'stainless-sdks/serverless-inference-sdk-prod-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
steps:
- uses: actions/checkout@v4
@@ -31,7 +31,7 @@ jobs:
run: ./scripts/lint
upload:
- if: github.repository == 'stainless-sdks/digitalocean-genai-sdk-python'
+ if: github.repository == 'stainless-sdks/serverless-inference-sdk-prod-python'
timeout-minutes: 10
name: upload
permissions:
@@ -57,7 +57,7 @@ jobs:
test:
timeout-minutes: 10
name: test
- runs-on: ${{ github.repository == 'stainless-sdks/digitalocean-genai-sdk-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
+ runs-on: ${{ github.repository == 'stainless-sdks/serverless-inference-sdk-prod-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
steps:
- uses: actions/checkout@v4
diff --git a/.stats.yml b/.stats.yml
index 84a850f9..6d52ed83 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 126
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/digitalocean%2Fdigitalocean-genai-sdk-bdf24159c6ebb5402d6c05a5165cb1501dc37cf6c664baa9eb318efb0f89dddd.yml
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/digitalocean%2Fserverless-inference-sdk-prod-bdf24159c6ebb5402d6c05a5165cb1501dc37cf6c664baa9eb318efb0f89dddd.yml
openapi_spec_hash: 686329a97002025d118dc2367755c18d
-config_hash: 39a1554af43cd406e37b5ed5c943649c
+config_hash: 12e97f0629a2a5d6a96762892ecc1b0c
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 79f5523c..114428fc 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -17,8 +17,7 @@ $ rye sync --all-features
You can then run scripts using `rye run python script.py` or by activating the virtual environment:
```sh
-$ rye shell
-# or manually activate - https://docs.python.org/3/library/venv.html#how-venvs-work
+# Activate the virtual environment - https://docs.python.org/3/library/venv.html#how-venvs-work
$ source .venv/bin/activate
# now you can omit the `rye run` prefix
@@ -37,7 +36,7 @@ $ pip install -r requirements-dev.lock
Most of the SDK is generated code. Modifications to code will be persisted between generations, but may
result in merge conflicts between manual patches and changes from the generator. The generator will never
-modify the contents of the `src/digitalocean_genai_sdk/lib/` and `examples/` directories.
+modify the contents of the `src/serverless_inference_sdk_prod/lib/` and `examples/` directories.
## Adding and running examples
@@ -63,7 +62,7 @@ If you’d like to use the repository from source, you can either install from g
To install via git:
```sh
-$ pip install git+ssh://git@github.com/stainless-sdks/digitalocean-genai-sdk-python.git
+$ pip install git+ssh://git@github.com/stainless-sdks/serverless-inference-sdk-prod-python.git
```
Alternatively, you can build from source and install the wheel file:
@@ -121,7 +120,7 @@ the changes aren't made through the automated pipeline, you may want to make rel
### Publish with a GitHub workflow
-You can release to package managers by using [the `Publish PyPI` GitHub action](https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python/actions/workflows/publish-pypi.yml). This requires a setup organization or repository secret to be set up.
+You can release to package managers by using [the `Publish PyPI` GitHub action](https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python/actions/workflows/publish-pypi.yml). This requires a setup organization or repository secret to be set up.
### Publish manually
diff --git a/LICENSE b/LICENSE
index 9c99266b..ab6ae96e 100644
--- a/LICENSE
+++ b/LICENSE
@@ -1,4 +1,4 @@
-Copyright 2025 digitalocean-genai-sdk
+Copyright 2025 serverless-inference-sdk-prod
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
diff --git a/README.md b/README.md
index b9fcd7e8..9e916eee 100644
--- a/README.md
+++ b/README.md
@@ -1,8 +1,8 @@
-# Digitalocean Genai SDK Python API library
+# Serverless Inference SDK Prod Python API library
-[](https://pypi.org/project/digitalocean_genai_sdk/)
+[](https://pypi.org/project/serverless_inference_sdk_prod/)
-The Digitalocean Genai SDK Python library provides convenient access to the Digitalocean Genai SDK REST API from any Python 3.8+
+The Serverless Inference SDK Prod Python library provides convenient access to the Serverless Inference SDK Prod REST API from any Python 3.8+
application. The library includes type definitions for all request params and response fields,
and offers both synchronous and asynchronous clients powered by [httpx](https://github.com/encode/httpx).
@@ -16,11 +16,11 @@ The REST API documentation can be found on [help.openai.com](https://help.openai
```sh
# install from this staging repo
-pip install git+ssh://git@github.com/stainless-sdks/digitalocean-genai-sdk-python.git
+pip install git+ssh://git@github.com/stainless-sdks/serverless-inference-sdk-prod-python.git
```
> [!NOTE]
-> Once this package is [published to PyPI](https://app.stainless.com/docs/guides/publish), this will become: `pip install --pre digitalocean_genai_sdk`
+> Once this package is [published to PyPI](https://app.stainless.com/docs/guides/publish), this will become: `pip install --pre serverless_inference_sdk_prod`
## Usage
@@ -28,11 +28,11 @@ The full API of this library can be found in [api.md](api.md).
```python
import os
-from digitalocean_genai_sdk import DigitaloceanGenaiSDK
+from serverless_inference_sdk_prod import ServerlessInferenceSDKProd
-client = DigitaloceanGenaiSDK(
+client = ServerlessInferenceSDKProd(
api_key=os.environ.get(
- "DIGITALOCEAN_GENAI_SDK_API_KEY"
+ "SERVERLESS_INFERENCE_SDK_PROD_API_KEY"
), # This is the default and can be omitted
)
@@ -42,21 +42,21 @@ print(assistants.first_id)
While you can provide an `api_key` keyword argument,
we recommend using [python-dotenv](https://pypi.org/project/python-dotenv/)
-to add `DIGITALOCEAN_GENAI_SDK_API_KEY="My API Key"` to your `.env` file
+to add `SERVERLESS_INFERENCE_SDK_PROD_API_KEY="My API Key"` to your `.env` file
so that your API Key is not stored in source control.
## Async usage
-Simply import `AsyncDigitaloceanGenaiSDK` instead of `DigitaloceanGenaiSDK` and use `await` with each API call:
+Simply import `AsyncServerlessInferenceSDKProd` instead of `ServerlessInferenceSDKProd` and use `await` with each API call:
```python
import os
import asyncio
-from digitalocean_genai_sdk import AsyncDigitaloceanGenaiSDK
+from serverless_inference_sdk_prod import AsyncServerlessInferenceSDKProd
-client = AsyncDigitaloceanGenaiSDK(
+client = AsyncServerlessInferenceSDKProd(
api_key=os.environ.get(
- "DIGITALOCEAN_GENAI_SDK_API_KEY"
+ "SERVERLESS_INFERENCE_SDK_PROD_API_KEY"
), # This is the default and can be omitted
)
@@ -85,25 +85,13 @@ Typed requests and responses provide autocomplete and documentation within your
Nested parameters are dictionaries, typed using `TypedDict`, for example:
```python
-from digitalocean_genai_sdk import DigitaloceanGenaiSDK
+from serverless_inference_sdk_prod import ServerlessInferenceSDKProd
-client = DigitaloceanGenaiSDK()
+client = ServerlessInferenceSDKProd()
assistant_object = client.assistants.create(
model="gpt-4o",
- tool_resources={
- "code_interpreter": {"file_ids": ["string"]},
- "file_search": {
- "vector_store_ids": ["string"],
- "vector_stores": [
- {
- "chunking_strategy": {"type": "auto"},
- "file_ids": ["string"],
- "metadata": {"foo": "string"},
- }
- ],
- },
- },
+ tool_resources={},
)
print(assistant_object.tool_resources)
```
@@ -114,9 +102,9 @@ Request parameters that correspond to file uploads can be passed as `bytes`, or
```python
from pathlib import Path
-from digitalocean_genai_sdk import DigitaloceanGenaiSDK
+from serverless_inference_sdk_prod import ServerlessInferenceSDKProd
-client = DigitaloceanGenaiSDK()
+client = ServerlessInferenceSDKProd()
client.audio.transcribe_audio(
file=Path("/path/to/file"),
@@ -128,27 +116,27 @@ The async client uses the exact same interface. If you pass a [`PathLike`](https
## Handling errors
-When the library is unable to connect to the API (for example, due to network connection problems or a timeout), a subclass of `digitalocean_genai_sdk.APIConnectionError` is raised.
+When the library is unable to connect to the API (for example, due to network connection problems or a timeout), a subclass of `serverless_inference_sdk_prod.APIConnectionError` is raised.
When the API returns a non-success status code (that is, 4xx or 5xx
-response), a subclass of `digitalocean_genai_sdk.APIStatusError` is raised, containing `status_code` and `response` properties.
+response), a subclass of `serverless_inference_sdk_prod.APIStatusError` is raised, containing `status_code` and `response` properties.
-All errors inherit from `digitalocean_genai_sdk.APIError`.
+All errors inherit from `serverless_inference_sdk_prod.APIError`.
```python
-import digitalocean_genai_sdk
-from digitalocean_genai_sdk import DigitaloceanGenaiSDK
+import serverless_inference_sdk_prod
+from serverless_inference_sdk_prod import ServerlessInferenceSDKProd
-client = DigitaloceanGenaiSDK()
+client = ServerlessInferenceSDKProd()
try:
client.assistants.list()
-except digitalocean_genai_sdk.APIConnectionError as e:
+except serverless_inference_sdk_prod.APIConnectionError as e:
print("The server could not be reached")
print(e.__cause__) # an underlying Exception, likely raised within httpx.
-except digitalocean_genai_sdk.RateLimitError as e:
+except serverless_inference_sdk_prod.RateLimitError as e:
print("A 429 status code was received; we should back off a bit.")
-except digitalocean_genai_sdk.APIStatusError as e:
+except serverless_inference_sdk_prod.APIStatusError as e:
print("Another non-200-range status code was received")
print(e.status_code)
print(e.response)
@@ -176,10 +164,10 @@ Connection errors (for example, due to a network connectivity problem), 408 Requ
You can use the `max_retries` option to configure or disable retry settings:
```python
-from digitalocean_genai_sdk import DigitaloceanGenaiSDK
+from serverless_inference_sdk_prod import ServerlessInferenceSDKProd
# Configure the default for all requests:
-client = DigitaloceanGenaiSDK(
+client = ServerlessInferenceSDKProd(
# default is 2
max_retries=0,
)
@@ -194,16 +182,16 @@ By default requests time out after 1 minute. You can configure this with a `time
which accepts a float or an [`httpx.Timeout`](https://www.python-httpx.org/advanced/#fine-tuning-the-configuration) object:
```python
-from digitalocean_genai_sdk import DigitaloceanGenaiSDK
+from serverless_inference_sdk_prod import ServerlessInferenceSDKProd
# Configure the default for all requests:
-client = DigitaloceanGenaiSDK(
+client = ServerlessInferenceSDKProd(
# 20 seconds (default is 1 minute)
timeout=20.0,
)
# More granular control:
-client = DigitaloceanGenaiSDK(
+client = ServerlessInferenceSDKProd(
timeout=httpx.Timeout(60.0, read=5.0, write=10.0, connect=2.0),
)
@@ -221,10 +209,10 @@ Note that requests that time out are [retried twice by default](#retries).
We use the standard library [`logging`](https://docs.python.org/3/library/logging.html) module.
-You can enable logging by setting the environment variable `DIGITALOCEAN_GENAI_SDK_LOG` to `info`.
+You can enable logging by setting the environment variable `SERVERLESS_INFERENCE_SDK_PROD_LOG` to `info`.
```shell
-$ export DIGITALOCEAN_GENAI_SDK_LOG=info
+$ export SERVERLESS_INFERENCE_SDK_PROD_LOG=info
```
Or to `debug` for more verbose logging.
@@ -246,9 +234,9 @@ if response.my_field is None:
The "raw" Response object can be accessed by prefixing `.with_raw_response.` to any HTTP method call, e.g.,
```py
-from digitalocean_genai_sdk import DigitaloceanGenaiSDK
+from serverless_inference_sdk_prod import ServerlessInferenceSDKProd
-client = DigitaloceanGenaiSDK()
+client = ServerlessInferenceSDKProd()
response = client.assistants.with_raw_response.list()
print(response.headers.get('X-My-Header'))
@@ -256,9 +244,9 @@ assistant = response.parse() # get the object that `assistants.list()` would ha
print(assistant.first_id)
```
-These methods return an [`APIResponse`](https://github.com/stainless-sdks/digitalocean-genai-sdk-python/tree/main/src/digitalocean_genai_sdk/_response.py) object.
+These methods return an [`APIResponse`](https://github.com/stainless-sdks/serverless-inference-sdk-prod-python/tree/main/src/serverless_inference_sdk_prod/_response.py) object.
-The async client returns an [`AsyncAPIResponse`](https://github.com/stainless-sdks/digitalocean-genai-sdk-python/tree/main/src/digitalocean_genai_sdk/_response.py) with the same structure, the only difference being `await`able methods for reading the response content.
+The async client returns an [`AsyncAPIResponse`](https://github.com/stainless-sdks/serverless-inference-sdk-prod-python/tree/main/src/serverless_inference_sdk_prod/_response.py) with the same structure, the only difference being `await`able methods for reading the response content.
#### `.with_streaming_response`
@@ -320,10 +308,10 @@ You can directly override the [httpx client](https://www.python-httpx.org/api/#c
```python
import httpx
-from digitalocean_genai_sdk import DigitaloceanGenaiSDK, DefaultHttpxClient
+from serverless_inference_sdk_prod import ServerlessInferenceSDKProd, DefaultHttpxClient
-client = DigitaloceanGenaiSDK(
- # Or use the `DIGITALOCEAN_GENAI_SDK_BASE_URL` env var
+client = ServerlessInferenceSDKProd(
+ # Or use the `SERVERLESS_INFERENCE_SDK_PROD_BASE_URL` env var
base_url="http://my.test.server.example.com:8083",
http_client=DefaultHttpxClient(
proxy="http://my.test.proxy.example.com",
@@ -343,9 +331,9 @@ client.with_options(http_client=DefaultHttpxClient(...))
By default the library closes underlying HTTP connections whenever the client is [garbage collected](https://docs.python.org/3/reference/datamodel.html#object.__del__). You can manually close the client using the `.close()` method if desired, or with a context manager that closes when exiting.
```py
-from digitalocean_genai_sdk import DigitaloceanGenaiSDK
+from serverless_inference_sdk_prod import ServerlessInferenceSDKProd
-with DigitaloceanGenaiSDK() as client:
+with ServerlessInferenceSDKProd() as client:
# make requests here
...
@@ -362,7 +350,7 @@ This package generally follows [SemVer](https://semver.org/spec/v2.0.0.html) con
We take backwards-compatibility seriously and work hard to ensure you can rely on a smooth upgrade experience.
-We are keen for your feedback; please open an [issue](https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python/issues) with questions, bugs, or suggestions.
+We are keen for your feedback; please open an [issue](https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python/issues) with questions, bugs, or suggestions.
### Determining the installed version
@@ -371,8 +359,8 @@ If you've upgraded to the latest version but aren't seeing any new features you
You can determine the version that is being used at runtime with:
```py
-import digitalocean_genai_sdk
-print(digitalocean_genai_sdk.__version__)
+import serverless_inference_sdk_prod
+print(serverless_inference_sdk_prod.__version__)
```
## Requirements
diff --git a/SECURITY.md b/SECURITY.md
index d08f7996..75dec573 100644
--- a/SECURITY.md
+++ b/SECURITY.md
@@ -16,7 +16,7 @@ before making any information public.
## Reporting Non-SDK Related Security Issues
If you encounter security issues that are not directly related to SDKs but pertain to the services
-or products provided by Digitalocean Genai SDK, please follow the respective company's security reporting guidelines.
+or products provided by Serverless Inference SDK Prod, please follow the respective company's security reporting guidelines.
---
diff --git a/api.md b/api.md
index daea5075..98f7e651 100644
--- a/api.md
+++ b/api.md
@@ -3,13 +3,13 @@
Types:
```python
-from digitalocean_genai_sdk.types import (
+from serverless_inference_sdk_prod.types import (
+ APIResponseFormatOption,
AssistantObject,
AssistantSupportedModels,
AssistantToolsCode,
AssistantToolsFileSearch,
AssistantToolsFunction,
- AssistantsAPIResponseFormatOption,
FileSearchRanker,
FunctionObject,
ReasoningEffort,
@@ -20,18 +20,18 @@ from digitalocean_genai_sdk.types import (
Methods:
-- client.assistants.create(\*\*params) -> AssistantObject
-- client.assistants.retrieve(assistant_id) -> AssistantObject
-- client.assistants.update(assistant_id, \*\*params) -> AssistantObject
-- client.assistants.list(\*\*params) -> AssistantListResponse
-- client.assistants.delete(assistant_id) -> AssistantDeleteResponse
+- client.assistants.create(\*\*params) -> AssistantObject
+- client.assistants.retrieve(assistant_id) -> AssistantObject
+- client.assistants.update(assistant_id, \*\*params) -> AssistantObject
+- client.assistants.list(\*\*params) -> AssistantListResponse
+- client.assistants.delete(assistant_id) -> AssistantDeleteResponse
# Audio
Types:
```python
-from digitalocean_genai_sdk.types import (
+from serverless_inference_sdk_prod.types import (
TranscriptionSegment,
VoiceIDsShared,
AudioTranscribeAudioResponse,
@@ -41,24 +41,24 @@ from digitalocean_genai_sdk.types import (
Methods:
-- client.audio.generate_speech(\*\*params) -> BinaryAPIResponse
-- client.audio.transcribe_audio(\*\*params) -> AudioTranscribeAudioResponse
-- client.audio.translate_audio(\*\*params) -> AudioTranslateAudioResponse
+- client.audio.generate_speech(\*\*params) -> BinaryAPIResponse
+- client.audio.transcribe_audio(\*\*params) -> AudioTranscribeAudioResponse
+- client.audio.translate_audio(\*\*params) -> AudioTranslateAudioResponse
# Batches
Types:
```python
-from digitalocean_genai_sdk.types import Batch, BatchListResponse
+from serverless_inference_sdk_prod.types import Batch, BatchListResponse
```
Methods:
-- client.batches.create(\*\*params) -> Batch
-- client.batches.retrieve(batch_id) -> Batch
-- client.batches.list(\*\*params) -> BatchListResponse
-- client.batches.cancel(batch_id) -> Batch
+- client.batches.create(\*\*params) -> Batch
+- client.batches.retrieve(batch_id) -> Batch
+- client.batches.list(\*\*params) -> BatchListResponse
+- client.batches.cancel(batch_id) -> Batch
# Chat
@@ -67,7 +67,7 @@ Methods:
Types:
```python
-from digitalocean_genai_sdk.types.chat import (
+from serverless_inference_sdk_prod.types.chat import (
CreateModelProperties,
CreateResponse,
MessageToolCall,
@@ -83,25 +83,25 @@ from digitalocean_genai_sdk.types.chat import (
WebSearchLocation,
CompletionListResponse,
CompletionDeleteResponse,
- CompletionListMessagesResponse,
+ CompletionRetrieveMessagesResponse,
)
```
Methods:
-- client.chat.completions.create(\*\*params) -> CreateResponse
-- client.chat.completions.retrieve(completion_id) -> CreateResponse
-- client.chat.completions.update(completion_id, \*\*params) -> CreateResponse
-- client.chat.completions.list(\*\*params) -> CompletionListResponse
-- client.chat.completions.delete(completion_id) -> CompletionDeleteResponse
-- client.chat.completions.list_messages(completion_id, \*\*params) -> CompletionListMessagesResponse
+- client.chat.completions.create(\*\*params) -> CreateResponse
+- client.chat.completions.retrieve(completion_id) -> CreateResponse
+- client.chat.completions.update(completion_id, \*\*params) -> CreateResponse
+- client.chat.completions.list(\*\*params) -> CompletionListResponse
+- client.chat.completions.delete(completion_id) -> CompletionDeleteResponse
+- client.chat.completions.retrieve_messages(completion_id, \*\*params) -> CompletionRetrieveMessagesResponse
# Completions
Types:
```python
-from digitalocean_genai_sdk.types import (
+from serverless_inference_sdk_prod.types import (
ChatCompletionStreamOptions,
StopConfiguration,
CompletionCreateResponse,
@@ -110,26 +110,26 @@ from digitalocean_genai_sdk.types import (
Methods:
-- client.completions.create(\*\*params) -> CompletionCreateResponse
+- client.completions.create(\*\*params) -> CompletionCreateResponse
# Embeddings
Types:
```python
-from digitalocean_genai_sdk.types import EmbeddingCreateResponse
+from serverless_inference_sdk_prod.types import EmbeddingCreateResponse
```
Methods:
-- client.embeddings.create(\*\*params) -> EmbeddingCreateResponse
+- client.embeddings.create(\*\*params) -> EmbeddingCreateResponse
# Files
Types:
```python
-from digitalocean_genai_sdk.types import (
+from serverless_inference_sdk_prod.types import (
OpenAIFile,
FileListResponse,
FileDeleteResponse,
@@ -139,11 +139,11 @@ from digitalocean_genai_sdk.types import (
Methods:
-- client.files.retrieve(file_id) -> OpenAIFile
-- client.files.list(\*\*params) -> FileListResponse
-- client.files.delete(file_id) -> FileDeleteResponse
-- client.files.retrieve_content(file_id) -> str
-- client.files.upload(\*\*params) -> OpenAIFile
+- client.files.retrieve(file_id) -> OpenAIFile
+- client.files.list(\*\*params) -> FileListResponse
+- client.files.delete(file_id) -> FileDeleteResponse
+- client.files.retrieve_content(file_id) -> str
+- client.files.upload(\*\*params) -> OpenAIFile
# FineTuning
@@ -154,7 +154,7 @@ Methods:
Types:
```python
-from digitalocean_genai_sdk.types.fine_tuning.checkpoints import (
+from serverless_inference_sdk_prod.types.fine_tuning.checkpoints import (
ListFineTuningCheckpointPermission,
PermissionDeleteResponse,
)
@@ -162,95 +162,99 @@ from digitalocean_genai_sdk.types.fine_tuning.checkpoints import (
Methods:
-- client.fine_tuning.checkpoints.permissions.create(permission_id, \*\*params) -> ListFineTuningCheckpointPermission
-- client.fine_tuning.checkpoints.permissions.retrieve(permission_id, \*\*params) -> ListFineTuningCheckpointPermission
-- client.fine_tuning.checkpoints.permissions.delete(permission_id) -> PermissionDeleteResponse
+- client.fine_tuning.checkpoints.permissions.create(permission_id, \*\*params) -> ListFineTuningCheckpointPermission
+- client.fine_tuning.checkpoints.permissions.retrieve(permission_id, \*\*params) -> ListFineTuningCheckpointPermission
+- client.fine_tuning.checkpoints.permissions.delete(permission_id) -> PermissionDeleteResponse
## Jobs
Types:
```python
-from digitalocean_genai_sdk.types.fine_tuning import FineTuneMethod, FineTuningJob, JobListResponse
+from serverless_inference_sdk_prod.types.fine_tuning import (
+ FineTuneMethod,
+ FineTuningJob,
+ JobListResponse,
+)
```
Methods:
-- client.fine_tuning.jobs.create(\*\*params) -> FineTuningJob
-- client.fine_tuning.jobs.retrieve(fine_tuning_job_id) -> FineTuningJob
-- client.fine_tuning.jobs.list(\*\*params) -> JobListResponse
-- client.fine_tuning.jobs.cancel(fine_tuning_job_id) -> FineTuningJob
+- client.fine_tuning.jobs.create(\*\*params) -> FineTuningJob
+- client.fine_tuning.jobs.retrieve(fine_tuning_job_id) -> FineTuningJob
+- client.fine_tuning.jobs.list(\*\*params) -> JobListResponse
+- client.fine_tuning.jobs.cancel(fine_tuning_job_id) -> FineTuningJob
### Checkpoints
Types:
```python
-from digitalocean_genai_sdk.types.fine_tuning.jobs import CheckpointRetrieveResponse
+from serverless_inference_sdk_prod.types.fine_tuning.jobs import CheckpointRetrieveResponse
```
Methods:
-- client.fine_tuning.jobs.checkpoints.retrieve(fine_tuning_job_id, \*\*params) -> CheckpointRetrieveResponse
+- client.fine_tuning.jobs.checkpoints.retrieve(fine_tuning_job_id, \*\*params) -> CheckpointRetrieveResponse
### Events
Types:
```python
-from digitalocean_genai_sdk.types.fine_tuning.jobs import EventRetrieveResponse
+from serverless_inference_sdk_prod.types.fine_tuning.jobs import EventRetrieveResponse
```
Methods:
-- client.fine_tuning.jobs.events.retrieve(fine_tuning_job_id, \*\*params) -> EventRetrieveResponse
+- client.fine_tuning.jobs.events.retrieve(fine_tuning_job_id, \*\*params) -> EventRetrieveResponse
# Images
Types:
```python
-from digitalocean_genai_sdk.types import ImagesResponse
+from serverless_inference_sdk_prod.types import ImagesResponse
```
Methods:
-- client.images.create_edit(\*\*params) -> ImagesResponse
-- client.images.create_generation(\*\*params) -> ImagesResponse
-- client.images.create_variation(\*\*params) -> ImagesResponse
+- client.images.create_edit(\*\*params) -> ImagesResponse
+- client.images.create_generation(\*\*params) -> ImagesResponse
+- client.images.create_variation(\*\*params) -> ImagesResponse
# Models
Types:
```python
-from digitalocean_genai_sdk.types import Model, ModelListResponse, ModelDeleteResponse
+from serverless_inference_sdk_prod.types import Model, ModelListResponse, ModelDeleteResponse
```
Methods:
-- client.models.retrieve(model) -> Model
-- client.models.list() -> ModelListResponse
-- client.models.delete(model) -> ModelDeleteResponse
+- client.models.retrieve(model) -> Model
+- client.models.list() -> ModelListResponse
+- client.models.delete(model) -> ModelDeleteResponse
# Moderations
Types:
```python
-from digitalocean_genai_sdk.types import ModerationClassifyResponse
+from serverless_inference_sdk_prod.types import ModerationClassifyResponse
```
Methods:
-- client.moderations.classify(\*\*params) -> ModerationClassifyResponse
+- client.moderations.classify(\*\*params) -> ModerationClassifyResponse
# Organization
Types:
```python
-from digitalocean_genai_sdk.types import (
+from serverless_inference_sdk_prod.types import (
AuditLogActorUser,
AuditLogEventType,
UsageResponse,
@@ -260,15 +264,15 @@ from digitalocean_genai_sdk.types import (
Methods:
-- client.organization.get_costs(\*\*params) -> UsageResponse
-- client.organization.list_audit_logs(\*\*params) -> OrganizationListAuditLogsResponse
+- client.organization.get_costs(\*\*params) -> UsageResponse
+- client.organization.list_audit_logs(\*\*params) -> OrganizationListAuditLogsResponse
## AdminAPIKeys
Types:
```python
-from digitalocean_genai_sdk.types.organization import (
+from serverless_inference_sdk_prod.types.organization import (
AdminAPIKey,
AdminAPIKeyListResponse,
AdminAPIKeyDeleteResponse,
@@ -277,17 +281,17 @@ from digitalocean_genai_sdk.types.organization import (
Methods:
-- client.organization.admin_api_keys.create(\*\*params) -> AdminAPIKey
-- client.organization.admin_api_keys.retrieve(key_id) -> AdminAPIKey
-- client.organization.admin_api_keys.list(\*\*params) -> AdminAPIKeyListResponse
-- client.organization.admin_api_keys.delete(key_id) -> AdminAPIKeyDeleteResponse
+- client.organization.admin_api_keys.create(\*\*params) -> AdminAPIKey
+- client.organization.admin_api_keys.retrieve(key_id) -> AdminAPIKey
+- client.organization.admin_api_keys.list(\*\*params) -> AdminAPIKeyListResponse
+- client.organization.admin_api_keys.delete(key_id) -> AdminAPIKeyDeleteResponse
## Invites
Types:
```python
-from digitalocean_genai_sdk.types.organization import (
+from serverless_inference_sdk_prod.types.organization import (
Invite,
InviteListResponse,
InviteDeleteResponse,
@@ -296,34 +300,34 @@ from digitalocean_genai_sdk.types.organization import (
Methods:
-- client.organization.invites.create(\*\*params) -> Invite
-- client.organization.invites.retrieve(invite_id) -> Invite
-- client.organization.invites.list(\*\*params) -> InviteListResponse
-- client.organization.invites.delete(invite_id) -> InviteDeleteResponse
+- client.organization.invites.create(\*\*params) -> Invite
+- client.organization.invites.retrieve(invite_id) -> Invite
+- client.organization.invites.list(\*\*params) -> InviteListResponse
+- client.organization.invites.delete(invite_id) -> InviteDeleteResponse
## Projects
Types:
```python
-from digitalocean_genai_sdk.types.organization import Project, ProjectListResponse
+from serverless_inference_sdk_prod.types.organization import Project, ProjectListResponse
```
Methods:
-- client.organization.projects.create(\*\*params) -> Project
-- client.organization.projects.retrieve(project_id) -> Project
-- client.organization.projects.update(project_id, \*\*params) -> Project
-- client.organization.projects.list(\*\*params) -> ProjectListResponse
-- client.organization.projects.archive(project_id) -> Project
+- client.organization.projects.create(\*\*params) -> Project
+- client.organization.projects.retrieve(project_id) -> Project
+- client.organization.projects.update(project_id, \*\*params) -> Project
+- client.organization.projects.list(\*\*params) -> ProjectListResponse
+- client.organization.projects.archive(project_id) -> Project
### APIKeys
Types:
```python
-from digitalocean_genai_sdk.types.organization.projects import (
- APIKey,
+from serverless_inference_sdk_prod.types.organization.projects import (
+ ProjectAPIKey,
APIKeyListResponse,
APIKeyDeleteResponse,
)
@@ -331,30 +335,33 @@ from digitalocean_genai_sdk.types.organization.projects import (
Methods:
-- client.organization.projects.api_keys.retrieve(key_id, \*, project_id) -> APIKey
-- client.organization.projects.api_keys.list(project_id, \*\*params) -> APIKeyListResponse
-- client.organization.projects.api_keys.delete(key_id, \*, project_id) -> APIKeyDeleteResponse
+- client.organization.projects.api_keys.retrieve(key_id, \*, project_id) -> ProjectAPIKey
+- client.organization.projects.api_keys.list(project_id, \*\*params) -> APIKeyListResponse
+- client.organization.projects.api_keys.delete(key_id, \*, project_id) -> APIKeyDeleteResponse
### RateLimits
Types:
```python
-from digitalocean_genai_sdk.types.organization.projects import RateLimit, RateLimitListResponse
+from serverless_inference_sdk_prod.types.organization.projects import (
+ ProjectRateLimit,
+ RateLimitListResponse,
+)
```
Methods:
-- client.organization.projects.rate_limits.update(rate_limit_id, \*, project_id, \*\*params) -> RateLimit
-- client.organization.projects.rate_limits.list(project_id, \*\*params) -> RateLimitListResponse
+- client.organization.projects.rate_limits.update(rate_limit_id, \*, project_id, \*\*params) -> ProjectRateLimit
+- client.organization.projects.rate_limits.list(project_id, \*\*params) -> RateLimitListResponse
### ServiceAccounts
Types:
```python
-from digitalocean_genai_sdk.types.organization.projects import (
- ServiceAccount,
+from serverless_inference_sdk_prod.types.organization.projects import (
+ ProjectServiceAccount,
ServiceAccountCreateResponse,
ServiceAccountListResponse,
ServiceAccountDeleteResponse,
@@ -363,17 +370,17 @@ from digitalocean_genai_sdk.types.organization.projects import (
Methods:
-- client.organization.projects.service_accounts.create(project_id, \*\*params) -> ServiceAccountCreateResponse
-- client.organization.projects.service_accounts.retrieve(service_account_id, \*, project_id) -> ServiceAccount
-- client.organization.projects.service_accounts.list(project_id, \*\*params) -> ServiceAccountListResponse
-- client.organization.projects.service_accounts.delete(service_account_id, \*, project_id) -> ServiceAccountDeleteResponse
+- client.organization.projects.service_accounts.create(project_id, \*\*params) -> ServiceAccountCreateResponse
+- client.organization.projects.service_accounts.retrieve(service_account_id, \*, project_id) -> ProjectServiceAccount
+- client.organization.projects.service_accounts.list(project_id, \*\*params) -> ServiceAccountListResponse
+- client.organization.projects.service_accounts.delete(service_account_id, \*, project_id) -> ServiceAccountDeleteResponse
### Users
Types:
```python
-from digitalocean_genai_sdk.types.organization.projects import (
+from serverless_inference_sdk_prod.types.organization.projects import (
ProjectUser,
UserListResponse,
UserDeleteResponse,
@@ -382,32 +389,32 @@ from digitalocean_genai_sdk.types.organization.projects import (
Methods:
-- client.organization.projects.users.retrieve(user_id, \*, project_id) -> ProjectUser
-- client.organization.projects.users.update(user_id, \*, project_id, \*\*params) -> ProjectUser
-- client.organization.projects.users.list(project_id, \*\*params) -> UserListResponse
-- client.organization.projects.users.delete(user_id, \*, project_id) -> UserDeleteResponse
-- client.organization.projects.users.add(project_id, \*\*params) -> ProjectUser
+- client.organization.projects.users.retrieve(user_id, \*, project_id) -> ProjectUser
+- client.organization.projects.users.update(user_id, \*, project_id, \*\*params) -> ProjectUser
+- client.organization.projects.users.list(project_id, \*\*params) -> UserListResponse
+- client.organization.projects.users.delete(user_id, \*, project_id) -> UserDeleteResponse
+- client.organization.projects.users.add(project_id, \*\*params) -> ProjectUser
## Usage
Methods:
-- client.organization.usage.audio_speeches(\*\*params) -> UsageResponse
-- client.organization.usage.audio_transcriptions(\*\*params) -> UsageResponse
-- client.organization.usage.code_interpreter_sessions(\*\*params) -> UsageResponse
-- client.organization.usage.completions(\*\*params) -> UsageResponse
-- client.organization.usage.embeddings(\*\*params) -> UsageResponse
-- client.organization.usage.images(\*\*params) -> UsageResponse
-- client.organization.usage.moderations(\*\*params) -> UsageResponse
-- client.organization.usage.vector_stores(\*\*params) -> UsageResponse
+- client.organization.usage.audio_speeches(\*\*params) -> UsageResponse
+- client.organization.usage.audio_transcriptions(\*\*params) -> UsageResponse
+- client.organization.usage.code_interpreter_sessions(\*\*params) -> UsageResponse
+- client.organization.usage.completions(\*\*params) -> UsageResponse
+- client.organization.usage.embeddings(\*\*params) -> UsageResponse
+- client.organization.usage.images(\*\*params) -> UsageResponse
+- client.organization.usage.moderations(\*\*params) -> UsageResponse
+- client.organization.usage.vector_stores(\*\*params) -> UsageResponse
## Users
Types:
```python
-from digitalocean_genai_sdk.types.organization import (
- OrganizationUser,
+from serverless_inference_sdk_prod.types.organization import (
+ User,
UserListResponse,
UserDeleteResponse,
)
@@ -415,17 +422,17 @@ from digitalocean_genai_sdk.types.organization import (
Methods:
-- client.organization.users.retrieve(user_id) -> OrganizationUser
-- client.organization.users.update(user_id, \*\*params) -> OrganizationUser
-- client.organization.users.list(\*\*params) -> UserListResponse
-- client.organization.users.delete(user_id) -> UserDeleteResponse
+- client.organization.users.retrieve(user_id) -> User
+- client.organization.users.update(user_id, \*\*params) -> User
+- client.organization.users.list(\*\*params) -> UserListResponse
+- client.organization.users.delete(user_id) -> UserDeleteResponse
# Realtime
Types:
```python
-from digitalocean_genai_sdk.types import (
+from serverless_inference_sdk_prod.types import (
RealtimeCreateSessionResponse,
RealtimeCreateTranscriptionSessionResponse,
)
@@ -433,15 +440,15 @@ from digitalocean_genai_sdk.types import (
Methods:
-- client.realtime.create_session(\*\*params) -> RealtimeCreateSessionResponse
-- client.realtime.create_transcription_session(\*\*params) -> RealtimeCreateTranscriptionSessionResponse
+- client.realtime.create_session(\*\*params) -> RealtimeCreateSessionResponse
+- client.realtime.create_transcription_session(\*\*params) -> RealtimeCreateTranscriptionSessionResponse
# Responses
Types:
```python
-from digitalocean_genai_sdk.types import (
+from serverless_inference_sdk_prod.types import (
ComputerToolCall,
ComputerToolCallOutput,
ComputerToolCallSafetyCheck,
@@ -463,32 +470,36 @@ from digitalocean_genai_sdk.types import (
Methods:
-- client.responses.create(\*\*params) -> Response
-- client.responses.retrieve(response_id, \*\*params) -> Response
-- client.responses.delete(response_id) -> None
-- client.responses.list_input_items(response_id, \*\*params) -> ResponseListInputItemsResponse
+- client.responses.create(\*\*params) -> Response
+- client.responses.retrieve(response_id, \*\*params) -> Response
+- client.responses.delete(response_id) -> None
+- client.responses.list_input_items(response_id, \*\*params) -> ResponseListInputItemsResponse
# Threads
Types:
```python
-from digitalocean_genai_sdk.types import CreateThreadRequest, ThreadObject, ThreadDeleteResponse
+from serverless_inference_sdk_prod.types import (
+ CreateThreadRequest,
+ ThreadObject,
+ ThreadDeleteResponse,
+)
```
Methods:
-- client.threads.create(\*\*params) -> ThreadObject
-- client.threads.retrieve(thread_id) -> ThreadObject
-- client.threads.update(thread_id, \*\*params) -> ThreadObject
-- client.threads.delete(thread_id) -> ThreadDeleteResponse
+- client.threads.create(\*\*params) -> ThreadObject
+- client.threads.retrieve(thread_id) -> ThreadObject
+- client.threads.update(thread_id, \*\*params) -> ThreadObject
+- client.threads.delete(thread_id) -> ThreadDeleteResponse
## Runs
Types:
```python
-from digitalocean_genai_sdk.types.threads import (
+from serverless_inference_sdk_prod.types.threads import (
AssistantsAPIToolChoiceOption,
RunObject,
TruncationObject,
@@ -498,33 +509,33 @@ from digitalocean_genai_sdk.types.threads import (
Methods:
-- client.threads.runs.create(\*\*params) -> RunObject
-- client.threads.runs.retrieve(run_id, \*, thread_id) -> RunObject
-- client.threads.runs.update(run_id, \*, thread_id, \*\*params) -> RunObject
-- client.threads.runs.list(thread_id, \*\*params) -> RunListResponse
-- client.threads.runs.cancel(run_id, \*, thread_id) -> RunObject
-- client.threads.runs.create_run(thread_id, \*\*params) -> RunObject
-- client.threads.runs.submit_tool_outputs(run_id, \*, thread_id, \*\*params) -> RunObject
+- client.threads.runs.create(\*\*params) -> RunObject
+- client.threads.runs.retrieve(run_id, \*, thread_id) -> RunObject
+- client.threads.runs.update(run_id, \*, thread_id, \*\*params) -> RunObject
+- client.threads.runs.list(thread_id, \*\*params) -> RunListResponse
+- client.threads.runs.cancel(run_id, \*, thread_id) -> RunObject
+- client.threads.runs.create_run(thread_id, \*\*params) -> RunObject
+- client.threads.runs.submit_tool_outputs(run_id, \*, thread_id, \*\*params) -> RunObject
### Steps
Types:
```python
-from digitalocean_genai_sdk.types.threads.runs import RunStepObject, StepListResponse
+from serverless_inference_sdk_prod.types.threads.runs import RunStepObject, StepListResponse
```
Methods:
-- client.threads.runs.steps.retrieve(step_id, \*, thread_id, run_id, \*\*params) -> RunStepObject
-- client.threads.runs.steps.list(run_id, \*, thread_id, \*\*params) -> StepListResponse
+- client.threads.runs.steps.retrieve(step_id, \*, thread_id, run_id, \*\*params) -> RunStepObject
+- client.threads.runs.steps.list(run_id, \*, thread_id, \*\*params) -> StepListResponse
## Messages
Types:
```python
-from digitalocean_genai_sdk.types.threads import (
+from serverless_inference_sdk_prod.types.threads import (
AssistantToolsFileSearchTypeOnly,
CreateMessageRequest,
MessageContentImageFileObject,
@@ -537,33 +548,33 @@ from digitalocean_genai_sdk.types.threads import (
Methods:
-- client.threads.messages.create(thread_id, \*\*params) -> MessageObject
-- client.threads.messages.retrieve(message_id, \*, thread_id) -> MessageObject
-- client.threads.messages.update(message_id, \*, thread_id, \*\*params) -> MessageObject
-- client.threads.messages.list(thread_id, \*\*params) -> MessageListResponse
-- client.threads.messages.delete(message_id, \*, thread_id) -> MessageDeleteResponse
+- client.threads.messages.create(thread_id, \*\*params) -> MessageObject
+- client.threads.messages.retrieve(message_id, \*, thread_id) -> MessageObject
+- client.threads.messages.update(message_id, \*, thread_id, \*\*params) -> MessageObject
+- client.threads.messages.list(thread_id, \*\*params) -> MessageListResponse
+- client.threads.messages.delete(message_id, \*, thread_id) -> MessageDeleteResponse
# Uploads
Types:
```python
-from digitalocean_genai_sdk.types import Upload, UploadAddPartResponse
+from serverless_inference_sdk_prod.types import Upload, UploadAddPartResponse
```
Methods:
-- client.uploads.create(\*\*params) -> Upload
-- client.uploads.add_part(upload_id, \*\*params) -> UploadAddPartResponse
-- client.uploads.cancel(upload_id) -> Upload
-- client.uploads.complete(upload_id, \*\*params) -> Upload
+- client.uploads.create(\*\*params) -> Upload
+- client.uploads.add_part(upload_id, \*\*params) -> UploadAddPartResponse
+- client.uploads.cancel(upload_id) -> Upload
+- client.uploads.complete(upload_id, \*\*params) -> Upload
# VectorStores
Types:
```python
-from digitalocean_genai_sdk.types import (
+from serverless_inference_sdk_prod.types import (
AutoChunkingStrategyRequestParam,
ComparisonFilter,
CompoundFilter,
@@ -579,19 +590,19 @@ from digitalocean_genai_sdk.types import (
Methods:
-- client.vector_stores.create(\*\*params) -> VectorStoreObject
-- client.vector_stores.retrieve(vector_store_id) -> VectorStoreObject
-- client.vector_stores.update(vector_store_id, \*\*params) -> VectorStoreObject
-- client.vector_stores.list(\*\*params) -> VectorStoreListResponse
-- client.vector_stores.delete(vector_store_id) -> VectorStoreDeleteResponse
-- client.vector_stores.search(vector_store_id, \*\*params) -> VectorStoreSearchResponse
+- client.vector_stores.create(\*\*params) -> VectorStoreObject
+- client.vector_stores.retrieve(vector_store_id) -> VectorStoreObject
+- client.vector_stores.update(vector_store_id, \*\*params) -> VectorStoreObject
+- client.vector_stores.list(\*\*params) -> VectorStoreListResponse
+- client.vector_stores.delete(vector_store_id) -> VectorStoreDeleteResponse
+- client.vector_stores.search(vector_store_id, \*\*params) -> VectorStoreSearchResponse
## FileBatches
Types:
```python
-from digitalocean_genai_sdk.types.vector_stores import (
+from serverless_inference_sdk_prod.types.vector_stores import (
ChunkingStrategyRequestParam,
ListVectorStoreFilesResponse,
VectorStoreFileBatchObject,
@@ -600,17 +611,17 @@ from digitalocean_genai_sdk.types.vector_stores import (
Methods:
-- client.vector_stores.file_batches.create(vector_store_id, \*\*params) -> VectorStoreFileBatchObject
-- client.vector_stores.file_batches.retrieve(batch_id, \*, vector_store_id) -> VectorStoreFileBatchObject
-- client.vector_stores.file_batches.cancel(batch_id, \*, vector_store_id) -> VectorStoreFileBatchObject
-- client.vector_stores.file_batches.list_files(batch_id, \*, vector_store_id, \*\*params) -> ListVectorStoreFilesResponse
+- client.vector_stores.file_batches.create(vector_store_id, \*\*params) -> VectorStoreFileBatchObject
+- client.vector_stores.file_batches.retrieve(batch_id, \*, vector_store_id) -> VectorStoreFileBatchObject
+- client.vector_stores.file_batches.cancel(batch_id, \*, vector_store_id) -> VectorStoreFileBatchObject
+- client.vector_stores.file_batches.list_files(batch_id, \*, vector_store_id, \*\*params) -> ListVectorStoreFilesResponse
## Files
Types:
```python
-from digitalocean_genai_sdk.types.vector_stores import (
+from serverless_inference_sdk_prod.types.vector_stores import (
VectorStoreFileObject,
FileDeleteResponse,
FileRetrieveContentResponse,
@@ -619,9 +630,9 @@ from digitalocean_genai_sdk.types.vector_stores import (
Methods:
-- client.vector_stores.files.create(vector_store_id, \*\*params) -> VectorStoreFileObject
-- client.vector_stores.files.retrieve(file_id, \*, vector_store_id) -> VectorStoreFileObject
-- client.vector_stores.files.update(file_id, \*, vector_store_id, \*\*params) -> VectorStoreFileObject
-- client.vector_stores.files.list(vector_store_id, \*\*params) -> ListVectorStoreFilesResponse
-- client.vector_stores.files.delete(file_id, \*, vector_store_id) -> FileDeleteResponse
-- client.vector_stores.files.retrieve_content(file_id, \*, vector_store_id) -> FileRetrieveContentResponse
+- client.vector_stores.files.create(vector_store_id, \*\*params) -> VectorStoreFileObject
+- client.vector_stores.files.retrieve(file_id, \*, vector_store_id) -> VectorStoreFileObject
+- client.vector_stores.files.update(file_id, \*, vector_store_id, \*\*params) -> VectorStoreFileObject
+- client.vector_stores.files.list(vector_store_id, \*\*params) -> ListVectorStoreFilesResponse
+- client.vector_stores.files.delete(file_id, \*, vector_store_id) -> FileDeleteResponse
+- client.vector_stores.files.retrieve_content(file_id, \*, vector_store_id) -> FileRetrieveContentResponse
diff --git a/mypy.ini b/mypy.ini
index 54f4282a..47cc978f 100644
--- a/mypy.ini
+++ b/mypy.ini
@@ -8,7 +8,7 @@ show_error_codes = True
#
# We also exclude our `tests` as mypy doesn't always infer
# types correctly and Pyright will still catch any type errors.
-exclude = ^(src/digitalocean_genai_sdk/_files\.py|_dev/.*\.py|tests/.*)$
+exclude = ^(src/serverless_inference_sdk_prod/_files\.py|_dev/.*\.py|tests/.*)$
strict_equality = True
implicit_reexport = True
diff --git a/pyproject.toml b/pyproject.toml
index 33ffc05d..bab5b45c 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,11 +1,11 @@
[project]
-name = "digitalocean_genai_sdk"
+name = "serverless_inference_sdk_prod"
version = "0.0.1-alpha.0"
-description = "The official Python library for the digitalocean-genai-sdk API"
+description = "The official Python library for the serverless-inference-sdk-prod API"
dynamic = ["readme"]
license = "MIT"
authors = [
-{ name = "Digitalocean Genai SDK", email = "" },
+{ name = "Serverless Inference SDK Prod", email = "" },
]
dependencies = [
"httpx>=0.23.0, <1",
@@ -34,8 +34,8 @@ classifiers = [
]
[project.urls]
-Homepage = "https://github.com/stainless-sdks/digitalocean-genai-sdk-python"
-Repository = "https://github.com/stainless-sdks/digitalocean-genai-sdk-python"
+Homepage = "https://github.com/stainless-sdks/serverless-inference-sdk-prod-python"
+Repository = "https://github.com/stainless-sdks/serverless-inference-sdk-prod-python"
[tool.rye]
@@ -75,14 +75,14 @@ format = { chain = [
"check:ruff" = "ruff check ."
"fix:ruff" = "ruff check --fix ."
-"check:importable" = "python -c 'import digitalocean_genai_sdk'"
+"check:importable" = "python -c 'import serverless_inference_sdk_prod'"
typecheck = { chain = [
"typecheck:pyright",
"typecheck:mypy"
]}
"typecheck:pyright" = "pyright"
-"typecheck:verify-types" = "pyright --verifytypes digitalocean_genai_sdk --ignoreexternal"
+"typecheck:verify-types" = "pyright --verifytypes serverless_inference_sdk_prod --ignoreexternal"
"typecheck:mypy" = "mypy ."
[build-system]
@@ -95,7 +95,7 @@ include = [
]
[tool.hatch.build.targets.wheel]
-packages = ["src/digitalocean_genai_sdk"]
+packages = ["src/serverless_inference_sdk_prod"]
[tool.hatch.build.targets.sdist]
# Basically everything except hidden files/directories (such as .github, .devcontainers, .python-version, etc)
@@ -121,7 +121,7 @@ path = "README.md"
[[tool.hatch.metadata.hooks.fancy-pypi-readme.substitutions]]
# replace relative links with absolute links
pattern = '\[(.+?)\]\(((?!https?://)\S+?)\)'
-replacement = '[\1](https://github.com/stainless-sdks/digitalocean-genai-sdk-python/tree/main/\g<2>)'
+replacement = '[\1](https://github.com/stainless-sdks/serverless-inference-sdk-prod-python/tree/main/\g<2>)'
[tool.pytest.ini_options]
testpaths = ["tests"]
@@ -198,7 +198,7 @@ length-sort = true
length-sort-straight = true
combine-as-imports = true
extra-standard-library = ["typing_extensions"]
-known-first-party = ["digitalocean_genai_sdk", "tests"]
+known-first-party = ["serverless_inference_sdk_prod", "tests"]
[tool.ruff.lint.per-file-ignores]
"bin/**.py" = ["T201", "T203"]
diff --git a/requirements-dev.lock b/requirements-dev.lock
index bf449af3..0c57deb0 100644
--- a/requirements-dev.lock
+++ b/requirements-dev.lock
@@ -13,8 +13,8 @@
annotated-types==0.6.0
# via pydantic
anyio==4.4.0
- # via digitalocean-genai-sdk
# via httpx
+ # via serverless-inference-sdk-prod
argcomplete==3.1.2
# via nox
certifi==2023.7.22
@@ -26,7 +26,7 @@ dirty-equals==0.6.0
distlib==0.3.7
# via virtualenv
distro==1.8.0
- # via digitalocean-genai-sdk
+ # via serverless-inference-sdk-prod
exceptiongroup==1.2.2
# via anyio
# via pytest
@@ -37,8 +37,8 @@ h11==0.14.0
httpcore==1.0.2
# via httpx
httpx==0.28.1
- # via digitalocean-genai-sdk
# via respx
+ # via serverless-inference-sdk-prod
idna==3.4
# via anyio
# via httpx
@@ -64,7 +64,7 @@ platformdirs==3.11.0
pluggy==1.5.0
# via pytest
pydantic==2.10.3
- # via digitalocean-genai-sdk
+ # via serverless-inference-sdk-prod
pydantic-core==2.27.1
# via pydantic
pygments==2.18.0
@@ -86,18 +86,18 @@ six==1.16.0
# via python-dateutil
sniffio==1.3.0
# via anyio
- # via digitalocean-genai-sdk
+ # via serverless-inference-sdk-prod
time-machine==2.9.0
tomli==2.0.2
# via mypy
# via pytest
typing-extensions==4.12.2
# via anyio
- # via digitalocean-genai-sdk
# via mypy
# via pydantic
# via pydantic-core
# via pyright
+ # via serverless-inference-sdk-prod
virtualenv==20.24.5
# via nox
zipp==3.17.0
diff --git a/requirements.lock b/requirements.lock
index e655776d..44c96759 100644
--- a/requirements.lock
+++ b/requirements.lock
@@ -13,13 +13,13 @@
annotated-types==0.6.0
# via pydantic
anyio==4.4.0
- # via digitalocean-genai-sdk
# via httpx
+ # via serverless-inference-sdk-prod
certifi==2023.7.22
# via httpcore
# via httpx
distro==1.8.0
- # via digitalocean-genai-sdk
+ # via serverless-inference-sdk-prod
exceptiongroup==1.2.2
# via anyio
h11==0.14.0
@@ -27,19 +27,19 @@ h11==0.14.0
httpcore==1.0.2
# via httpx
httpx==0.28.1
- # via digitalocean-genai-sdk
+ # via serverless-inference-sdk-prod
idna==3.4
# via anyio
# via httpx
pydantic==2.10.3
- # via digitalocean-genai-sdk
+ # via serverless-inference-sdk-prod
pydantic-core==2.27.1
# via pydantic
sniffio==1.3.0
# via anyio
- # via digitalocean-genai-sdk
+ # via serverless-inference-sdk-prod
typing-extensions==4.12.2
# via anyio
- # via digitalocean-genai-sdk
# via pydantic
# via pydantic-core
+ # via serverless-inference-sdk-prod
diff --git a/scripts/lint b/scripts/lint
index 3f725f2d..f1f50ed3 100755
--- a/scripts/lint
+++ b/scripts/lint
@@ -8,4 +8,4 @@ echo "==> Running lints"
rye run lint
echo "==> Making sure it imports"
-rye run python -c 'import digitalocean_genai_sdk'
+rye run python -c 'import serverless_inference_sdk_prod'
diff --git a/scripts/utils/upload-artifact.sh b/scripts/utils/upload-artifact.sh
index c1019559..099c206f 100755
--- a/scripts/utils/upload-artifact.sh
+++ b/scripts/utils/upload-artifact.sh
@@ -18,7 +18,7 @@ UPLOAD_RESPONSE=$(tar -cz . | curl -v -X PUT \
if echo "$UPLOAD_RESPONSE" | grep -q "HTTP/[0-9.]* 200"; then
echo -e "\033[32mUploaded build to Stainless storage.\033[0m"
- echo -e "\033[32mInstallation: pip install --pre 'https://pkg.stainless.com/s/digitalocean-genai-sdk-python/$SHA'\033[0m"
+ echo -e "\033[32mInstallation: pip install --pre 'https://pkg.stainless.com/s/serverless-inference-sdk-prod-python/$SHA'\033[0m"
else
echo -e "\033[31mFailed to upload artifact.\033[0m"
exit 1
diff --git a/src/digitalocean_genai_sdk/_utils/_resources_proxy.py b/src/digitalocean_genai_sdk/_utils/_resources_proxy.py
deleted file mode 100644
index 4ebaf7a4..00000000
--- a/src/digitalocean_genai_sdk/_utils/_resources_proxy.py
+++ /dev/null
@@ -1,24 +0,0 @@
-from __future__ import annotations
-
-from typing import Any
-from typing_extensions import override
-
-from ._proxy import LazyProxy
-
-
-class ResourcesProxy(LazyProxy[Any]):
- """A proxy for the `digitalocean_genai_sdk.resources` module.
-
- This is used so that we can lazily import `digitalocean_genai_sdk.resources` only when
- needed *and* so that users can just import `digitalocean_genai_sdk` and reference `digitalocean_genai_sdk.resources`
- """
-
- @override
- def __load__(self) -> Any:
- import importlib
-
- mod = importlib.import_module("digitalocean_genai_sdk.resources")
- return mod
-
-
-resources = ResourcesProxy().__as_proxied__()
diff --git a/src/digitalocean_genai_sdk/__init__.py b/src/serverless_inference_sdk_prod/__init__.py
similarity index 85%
rename from src/digitalocean_genai_sdk/__init__.py
rename to src/serverless_inference_sdk_prod/__init__.py
index fc240d83..7e08d33d 100644
--- a/src/digitalocean_genai_sdk/__init__.py
+++ b/src/serverless_inference_sdk_prod/__init__.py
@@ -13,8 +13,8 @@
AsyncClient,
AsyncStream,
RequestOptions,
- DigitaloceanGenaiSDK,
- AsyncDigitaloceanGenaiSDK,
+ ServerlessInferenceSDKProd,
+ AsyncServerlessInferenceSDKProd,
)
from ._models import BaseModel
from ._version import __title__, __version__
@@ -33,8 +33,8 @@
InternalServerError,
PermissionDeniedError,
UnprocessableEntityError,
- DigitaloceanGenaiSDKError,
APIResponseValidationError,
+ ServerlessInferenceSDKProdError,
)
from ._base_client import DefaultHttpxClient, DefaultAsyncHttpxClient
from ._utils._logs import setup_logging as _setup_logging
@@ -49,7 +49,7 @@
"NotGiven",
"NOT_GIVEN",
"Omit",
- "DigitaloceanGenaiSDKError",
+ "ServerlessInferenceSDKProdError",
"APIError",
"APIStatusError",
"APITimeoutError",
@@ -69,8 +69,8 @@
"AsyncClient",
"Stream",
"AsyncStream",
- "DigitaloceanGenaiSDK",
- "AsyncDigitaloceanGenaiSDK",
+ "ServerlessInferenceSDKProd",
+ "AsyncServerlessInferenceSDKProd",
"file_from_path",
"BaseModel",
"DEFAULT_TIMEOUT",
@@ -88,12 +88,12 @@
# Update the __module__ attribute for exported symbols so that
# error messages point to this module instead of the module
# it was originally defined in, e.g.
-# digitalocean_genai_sdk._exceptions.NotFoundError -> digitalocean_genai_sdk.NotFoundError
+# serverless_inference_sdk_prod._exceptions.NotFoundError -> serverless_inference_sdk_prod.NotFoundError
__locals = locals()
for __name in __all__:
if not __name.startswith("__"):
try:
- __locals[__name].__module__ = "digitalocean_genai_sdk"
+ __locals[__name].__module__ = "serverless_inference_sdk_prod"
except (TypeError, AttributeError):
# Some of our exported symbols are builtins which we can't set attributes for.
pass
diff --git a/src/digitalocean_genai_sdk/_base_client.py b/src/serverless_inference_sdk_prod/_base_client.py
similarity index 99%
rename from src/digitalocean_genai_sdk/_base_client.py
rename to src/serverless_inference_sdk_prod/_base_client.py
index 9f58b2f9..82e8613e 100644
--- a/src/digitalocean_genai_sdk/_base_client.py
+++ b/src/serverless_inference_sdk_prod/_base_client.py
@@ -389,7 +389,7 @@ def __init__(
if max_retries is None: # pyright: ignore[reportUnnecessaryComparison]
raise TypeError(
- "max_retries cannot be None. If you want to disable retries, pass `0`; if you want unlimited retries, pass `math.inf` or a very high number; if you want the default behavior, pass `digitalocean_genai_sdk.DEFAULT_MAX_RETRIES`"
+ "max_retries cannot be None. If you want to disable retries, pass `0`; if you want unlimited retries, pass `math.inf` or a very high number; if you want the default behavior, pass `serverless_inference_sdk_prod.DEFAULT_MAX_RETRIES`"
)
def _enforce_trailing_slash(self, url: URL) -> URL:
@@ -960,6 +960,9 @@ def request(
if self.custom_auth is not None:
kwargs["auth"] = self.custom_auth
+ if options.follow_redirects is not None:
+ kwargs["follow_redirects"] = options.follow_redirects
+
log.debug("Sending HTTP Request: %s %s", request.method, request.url)
response = None
@@ -1460,6 +1463,9 @@ async def request(
if self.custom_auth is not None:
kwargs["auth"] = self.custom_auth
+ if options.follow_redirects is not None:
+ kwargs["follow_redirects"] = options.follow_redirects
+
log.debug("Sending HTTP Request: %s %s", request.method, request.url)
response = None
diff --git a/src/digitalocean_genai_sdk/_client.py b/src/serverless_inference_sdk_prod/_client.py
similarity index 90%
rename from src/digitalocean_genai_sdk/_client.py
rename to src/serverless_inference_sdk_prod/_client.py
index 99580b5e..9cf54d37 100644
--- a/src/digitalocean_genai_sdk/_client.py
+++ b/src/serverless_inference_sdk_prod/_client.py
@@ -36,7 +36,7 @@
moderations,
)
from ._streaming import Stream as Stream, AsyncStream as AsyncStream
-from ._exceptions import APIStatusError, DigitaloceanGenaiSDKError
+from ._exceptions import APIStatusError, ServerlessInferenceSDKProdError
from ._base_client import (
DEFAULT_MAX_RETRIES,
SyncAPIClient,
@@ -53,14 +53,14 @@
"Transport",
"ProxiesTypes",
"RequestOptions",
- "DigitaloceanGenaiSDK",
- "AsyncDigitaloceanGenaiSDK",
+ "ServerlessInferenceSDKProd",
+ "AsyncServerlessInferenceSDKProd",
"Client",
"AsyncClient",
]
-class DigitaloceanGenaiSDK(SyncAPIClient):
+class ServerlessInferenceSDKProd(SyncAPIClient):
assistants: assistants.AssistantsResource
audio: audio.AudioResource
batches: batches.BatchesResource
@@ -78,8 +78,8 @@ class DigitaloceanGenaiSDK(SyncAPIClient):
threads: threads.ThreadsResource
uploads: uploads.UploadsResource
vector_stores: vector_stores.VectorStoresResource
- with_raw_response: DigitaloceanGenaiSDKWithRawResponse
- with_streaming_response: DigitaloceanGenaiSDKWithStreamedResponse
+ with_raw_response: ServerlessInferenceSDKProdWithRawResponse
+ with_streaming_response: ServerlessInferenceSDKProdWithStreamedResponse
# client options
api_key: str
@@ -107,20 +107,20 @@ def __init__(
# part of our public interface in the future.
_strict_response_validation: bool = False,
) -> None:
- """Construct a new synchronous DigitaloceanGenaiSDK client instance.
+ """Construct a new synchronous ServerlessInferenceSDKProd client instance.
- This automatically infers the `api_key` argument from the `DIGITALOCEAN_GENAI_SDK_API_KEY` environment variable if it is not provided.
+ This automatically infers the `api_key` argument from the `SERVERLESS_INFERENCE_SDK_PROD_API_KEY` environment variable if it is not provided.
"""
if api_key is None:
- api_key = os.environ.get("DIGITALOCEAN_GENAI_SDK_API_KEY")
+ api_key = os.environ.get("SERVERLESS_INFERENCE_SDK_PROD_API_KEY")
if api_key is None:
- raise DigitaloceanGenaiSDKError(
- "The api_key client option must be set either by passing api_key to the client or by setting the DIGITALOCEAN_GENAI_SDK_API_KEY environment variable"
+ raise ServerlessInferenceSDKProdError(
+ "The api_key client option must be set either by passing api_key to the client or by setting the SERVERLESS_INFERENCE_SDK_PROD_API_KEY environment variable"
)
self.api_key = api_key
if base_url is None:
- base_url = os.environ.get("DIGITALOCEAN_GENAI_SDK_BASE_URL")
+ base_url = os.environ.get("SERVERLESS_INFERENCE_SDK_PROD_BASE_URL")
if base_url is None:
base_url = f"https://api.example.com"
@@ -152,8 +152,8 @@ def __init__(
self.threads = threads.ThreadsResource(self)
self.uploads = uploads.UploadsResource(self)
self.vector_stores = vector_stores.VectorStoresResource(self)
- self.with_raw_response = DigitaloceanGenaiSDKWithRawResponse(self)
- self.with_streaming_response = DigitaloceanGenaiSDKWithStreamedResponse(self)
+ self.with_raw_response = ServerlessInferenceSDKProdWithRawResponse(self)
+ self.with_streaming_response = ServerlessInferenceSDKProdWithStreamedResponse(self)
@property
@override
@@ -260,7 +260,7 @@ def _make_status_error(
return APIStatusError(err_msg, response=response, body=body)
-class AsyncDigitaloceanGenaiSDK(AsyncAPIClient):
+class AsyncServerlessInferenceSDKProd(AsyncAPIClient):
assistants: assistants.AsyncAssistantsResource
audio: audio.AsyncAudioResource
batches: batches.AsyncBatchesResource
@@ -278,8 +278,8 @@ class AsyncDigitaloceanGenaiSDK(AsyncAPIClient):
threads: threads.AsyncThreadsResource
uploads: uploads.AsyncUploadsResource
vector_stores: vector_stores.AsyncVectorStoresResource
- with_raw_response: AsyncDigitaloceanGenaiSDKWithRawResponse
- with_streaming_response: AsyncDigitaloceanGenaiSDKWithStreamedResponse
+ with_raw_response: AsyncServerlessInferenceSDKProdWithRawResponse
+ with_streaming_response: AsyncServerlessInferenceSDKProdWithStreamedResponse
# client options
api_key: str
@@ -307,20 +307,20 @@ def __init__(
# part of our public interface in the future.
_strict_response_validation: bool = False,
) -> None:
- """Construct a new async AsyncDigitaloceanGenaiSDK client instance.
+ """Construct a new async AsyncServerlessInferenceSDKProd client instance.
- This automatically infers the `api_key` argument from the `DIGITALOCEAN_GENAI_SDK_API_KEY` environment variable if it is not provided.
+ This automatically infers the `api_key` argument from the `SERVERLESS_INFERENCE_SDK_PROD_API_KEY` environment variable if it is not provided.
"""
if api_key is None:
- api_key = os.environ.get("DIGITALOCEAN_GENAI_SDK_API_KEY")
+ api_key = os.environ.get("SERVERLESS_INFERENCE_SDK_PROD_API_KEY")
if api_key is None:
- raise DigitaloceanGenaiSDKError(
- "The api_key client option must be set either by passing api_key to the client or by setting the DIGITALOCEAN_GENAI_SDK_API_KEY environment variable"
+ raise ServerlessInferenceSDKProdError(
+ "The api_key client option must be set either by passing api_key to the client or by setting the SERVERLESS_INFERENCE_SDK_PROD_API_KEY environment variable"
)
self.api_key = api_key
if base_url is None:
- base_url = os.environ.get("DIGITALOCEAN_GENAI_SDK_BASE_URL")
+ base_url = os.environ.get("SERVERLESS_INFERENCE_SDK_PROD_BASE_URL")
if base_url is None:
base_url = f"https://api.example.com"
@@ -352,8 +352,8 @@ def __init__(
self.threads = threads.AsyncThreadsResource(self)
self.uploads = uploads.AsyncUploadsResource(self)
self.vector_stores = vector_stores.AsyncVectorStoresResource(self)
- self.with_raw_response = AsyncDigitaloceanGenaiSDKWithRawResponse(self)
- self.with_streaming_response = AsyncDigitaloceanGenaiSDKWithStreamedResponse(self)
+ self.with_raw_response = AsyncServerlessInferenceSDKProdWithRawResponse(self)
+ self.with_streaming_response = AsyncServerlessInferenceSDKProdWithStreamedResponse(self)
@property
@override
@@ -460,8 +460,8 @@ def _make_status_error(
return APIStatusError(err_msg, response=response, body=body)
-class DigitaloceanGenaiSDKWithRawResponse:
- def __init__(self, client: DigitaloceanGenaiSDK) -> None:
+class ServerlessInferenceSDKProdWithRawResponse:
+ def __init__(self, client: ServerlessInferenceSDKProd) -> None:
self.assistants = assistants.AssistantsResourceWithRawResponse(client.assistants)
self.audio = audio.AudioResourceWithRawResponse(client.audio)
self.batches = batches.BatchesResourceWithRawResponse(client.batches)
@@ -481,8 +481,8 @@ def __init__(self, client: DigitaloceanGenaiSDK) -> None:
self.vector_stores = vector_stores.VectorStoresResourceWithRawResponse(client.vector_stores)
-class AsyncDigitaloceanGenaiSDKWithRawResponse:
- def __init__(self, client: AsyncDigitaloceanGenaiSDK) -> None:
+class AsyncServerlessInferenceSDKProdWithRawResponse:
+ def __init__(self, client: AsyncServerlessInferenceSDKProd) -> None:
self.assistants = assistants.AsyncAssistantsResourceWithRawResponse(client.assistants)
self.audio = audio.AsyncAudioResourceWithRawResponse(client.audio)
self.batches = batches.AsyncBatchesResourceWithRawResponse(client.batches)
@@ -502,8 +502,8 @@ def __init__(self, client: AsyncDigitaloceanGenaiSDK) -> None:
self.vector_stores = vector_stores.AsyncVectorStoresResourceWithRawResponse(client.vector_stores)
-class DigitaloceanGenaiSDKWithStreamedResponse:
- def __init__(self, client: DigitaloceanGenaiSDK) -> None:
+class ServerlessInferenceSDKProdWithStreamedResponse:
+ def __init__(self, client: ServerlessInferenceSDKProd) -> None:
self.assistants = assistants.AssistantsResourceWithStreamingResponse(client.assistants)
self.audio = audio.AudioResourceWithStreamingResponse(client.audio)
self.batches = batches.BatchesResourceWithStreamingResponse(client.batches)
@@ -523,8 +523,8 @@ def __init__(self, client: DigitaloceanGenaiSDK) -> None:
self.vector_stores = vector_stores.VectorStoresResourceWithStreamingResponse(client.vector_stores)
-class AsyncDigitaloceanGenaiSDKWithStreamedResponse:
- def __init__(self, client: AsyncDigitaloceanGenaiSDK) -> None:
+class AsyncServerlessInferenceSDKProdWithStreamedResponse:
+ def __init__(self, client: AsyncServerlessInferenceSDKProd) -> None:
self.assistants = assistants.AsyncAssistantsResourceWithStreamingResponse(client.assistants)
self.audio = audio.AsyncAudioResourceWithStreamingResponse(client.audio)
self.batches = batches.AsyncBatchesResourceWithStreamingResponse(client.batches)
@@ -544,6 +544,6 @@ def __init__(self, client: AsyncDigitaloceanGenaiSDK) -> None:
self.vector_stores = vector_stores.AsyncVectorStoresResourceWithStreamingResponse(client.vector_stores)
-Client = DigitaloceanGenaiSDK
+Client = ServerlessInferenceSDKProd
-AsyncClient = AsyncDigitaloceanGenaiSDK
+AsyncClient = AsyncServerlessInferenceSDKProd
diff --git a/src/digitalocean_genai_sdk/_compat.py b/src/serverless_inference_sdk_prod/_compat.py
similarity index 100%
rename from src/digitalocean_genai_sdk/_compat.py
rename to src/serverless_inference_sdk_prod/_compat.py
diff --git a/src/digitalocean_genai_sdk/_constants.py b/src/serverless_inference_sdk_prod/_constants.py
similarity index 100%
rename from src/digitalocean_genai_sdk/_constants.py
rename to src/serverless_inference_sdk_prod/_constants.py
diff --git a/src/digitalocean_genai_sdk/_exceptions.py b/src/serverless_inference_sdk_prod/_exceptions.py
similarity index 96%
rename from src/digitalocean_genai_sdk/_exceptions.py
rename to src/serverless_inference_sdk_prod/_exceptions.py
index 755e166e..df3cfcd0 100644
--- a/src/digitalocean_genai_sdk/_exceptions.py
+++ b/src/serverless_inference_sdk_prod/_exceptions.py
@@ -18,11 +18,11 @@
]
-class DigitaloceanGenaiSDKError(Exception):
+class ServerlessInferenceSDKProdError(Exception):
pass
-class APIError(DigitaloceanGenaiSDKError):
+class APIError(ServerlessInferenceSDKProdError):
message: str
request: httpx.Request
diff --git a/src/digitalocean_genai_sdk/_files.py b/src/serverless_inference_sdk_prod/_files.py
similarity index 97%
rename from src/digitalocean_genai_sdk/_files.py
rename to src/serverless_inference_sdk_prod/_files.py
index df28b382..6f32eee2 100644
--- a/src/digitalocean_genai_sdk/_files.py
+++ b/src/serverless_inference_sdk_prod/_files.py
@@ -34,7 +34,7 @@ def assert_is_file_content(obj: object, *, key: str | None = None) -> None:
if not is_file_content(obj):
prefix = f"Expected entry at `{key}`" if key is not None else f"Expected file input `{obj!r}`"
raise RuntimeError(
- f"{prefix} to be bytes, an io.IOBase instance, PathLike or a tuple but received {type(obj)} instead. See https://github.com/stainless-sdks/digitalocean-genai-sdk-python/tree/main#file-uploads"
+ f"{prefix} to be bytes, an io.IOBase instance, PathLike or a tuple but received {type(obj)} instead. See https://github.com/stainless-sdks/serverless-inference-sdk-prod-python/tree/main#file-uploads"
) from None
diff --git a/src/digitalocean_genai_sdk/_models.py b/src/serverless_inference_sdk_prod/_models.py
similarity index 99%
rename from src/digitalocean_genai_sdk/_models.py
rename to src/serverless_inference_sdk_prod/_models.py
index 798956f1..4f214980 100644
--- a/src/digitalocean_genai_sdk/_models.py
+++ b/src/serverless_inference_sdk_prod/_models.py
@@ -737,6 +737,7 @@ class FinalRequestOptionsInput(TypedDict, total=False):
idempotency_key: str
json_data: Body
extra_json: AnyMapping
+ follow_redirects: bool
@final
@@ -750,6 +751,7 @@ class FinalRequestOptions(pydantic.BaseModel):
files: Union[HttpxRequestFiles, None] = None
idempotency_key: Union[str, None] = None
post_parser: Union[Callable[[Any], Any], NotGiven] = NotGiven()
+ follow_redirects: Union[bool, None] = None
# It should be noted that we cannot use `json` here as that would override
# a BaseModel method in an incompatible fashion.
diff --git a/src/digitalocean_genai_sdk/_qs.py b/src/serverless_inference_sdk_prod/_qs.py
similarity index 100%
rename from src/digitalocean_genai_sdk/_qs.py
rename to src/serverless_inference_sdk_prod/_qs.py
diff --git a/src/digitalocean_genai_sdk/_resource.py b/src/serverless_inference_sdk_prod/_resource.py
similarity index 74%
rename from src/digitalocean_genai_sdk/_resource.py
rename to src/serverless_inference_sdk_prod/_resource.py
index fe43ec28..f7d62815 100644
--- a/src/digitalocean_genai_sdk/_resource.py
+++ b/src/serverless_inference_sdk_prod/_resource.py
@@ -8,13 +8,13 @@
import anyio
if TYPE_CHECKING:
- from ._client import DigitaloceanGenaiSDK, AsyncDigitaloceanGenaiSDK
+ from ._client import ServerlessInferenceSDKProd, AsyncServerlessInferenceSDKProd
class SyncAPIResource:
- _client: DigitaloceanGenaiSDK
+ _client: ServerlessInferenceSDKProd
- def __init__(self, client: DigitaloceanGenaiSDK) -> None:
+ def __init__(self, client: ServerlessInferenceSDKProd) -> None:
self._client = client
self._get = client.get
self._post = client.post
@@ -28,9 +28,9 @@ def _sleep(self, seconds: float) -> None:
class AsyncAPIResource:
- _client: AsyncDigitaloceanGenaiSDK
+ _client: AsyncServerlessInferenceSDKProd
- def __init__(self, client: AsyncDigitaloceanGenaiSDK) -> None:
+ def __init__(self, client: AsyncServerlessInferenceSDKProd) -> None:
self._client = client
self._get = client.get
self._post = client.post
diff --git a/src/digitalocean_genai_sdk/_response.py b/src/serverless_inference_sdk_prod/_response.py
similarity index 98%
rename from src/digitalocean_genai_sdk/_response.py
rename to src/serverless_inference_sdk_prod/_response.py
index 7f1fff1d..55c6f066 100644
--- a/src/digitalocean_genai_sdk/_response.py
+++ b/src/serverless_inference_sdk_prod/_response.py
@@ -29,7 +29,7 @@
from ._models import BaseModel, is_basemodel
from ._constants import RAW_RESPONSE_HEADER, OVERRIDE_CAST_TO_HEADER
from ._streaming import Stream, AsyncStream, is_stream_class_type, extract_stream_chunk_type
-from ._exceptions import DigitaloceanGenaiSDKError, APIResponseValidationError
+from ._exceptions import APIResponseValidationError, ServerlessInferenceSDKProdError
if TYPE_CHECKING:
from ._models import FinalRequestOptions
@@ -218,7 +218,7 @@ def _parse(self, *, to: type[_T] | None = None) -> R | _T:
and issubclass(origin, pydantic.BaseModel)
):
raise TypeError(
- "Pydantic models must subclass our base model type, e.g. `from digitalocean_genai_sdk import BaseModel`"
+ "Pydantic models must subclass our base model type, e.g. `from serverless_inference_sdk_prod import BaseModel`"
)
if (
@@ -285,7 +285,7 @@ def parse(self, *, to: type[_T] | None = None) -> R | _T:
the `to` argument, e.g.
```py
- from digitalocean_genai_sdk import BaseModel
+ from serverless_inference_sdk_prod import BaseModel
class MyModel(BaseModel):
@@ -387,7 +387,7 @@ async def parse(self, *, to: type[_T] | None = None) -> R | _T:
the `to` argument, e.g.
```py
- from digitalocean_genai_sdk import BaseModel
+ from serverless_inference_sdk_prod import BaseModel
class MyModel(BaseModel):
@@ -558,11 +558,11 @@ async def stream_to_file(
class MissingStreamClassError(TypeError):
def __init__(self) -> None:
super().__init__(
- "The `stream` argument was set to `True` but the `stream_cls` argument was not given. See `digitalocean_genai_sdk._streaming` for reference",
+ "The `stream` argument was set to `True` but the `stream_cls` argument was not given. See `serverless_inference_sdk_prod._streaming` for reference",
)
-class StreamAlreadyConsumed(DigitaloceanGenaiSDKError):
+class StreamAlreadyConsumed(ServerlessInferenceSDKProdError):
"""
Attempted to read or stream content, but the content has already
been streamed.
diff --git a/src/digitalocean_genai_sdk/_streaming.py b/src/serverless_inference_sdk_prod/_streaming.py
similarity index 98%
rename from src/digitalocean_genai_sdk/_streaming.py
rename to src/serverless_inference_sdk_prod/_streaming.py
index 96c3f3d3..77baaec1 100644
--- a/src/digitalocean_genai_sdk/_streaming.py
+++ b/src/serverless_inference_sdk_prod/_streaming.py
@@ -12,7 +12,7 @@
from ._utils import extract_type_var_from_base
if TYPE_CHECKING:
- from ._client import DigitaloceanGenaiSDK, AsyncDigitaloceanGenaiSDK
+ from ._client import ServerlessInferenceSDKProd, AsyncServerlessInferenceSDKProd
_T = TypeVar("_T")
@@ -30,7 +30,7 @@ def __init__(
*,
cast_to: type[_T],
response: httpx.Response,
- client: DigitaloceanGenaiSDK,
+ client: ServerlessInferenceSDKProd,
) -> None:
self.response = response
self._cast_to = cast_to
@@ -93,7 +93,7 @@ def __init__(
*,
cast_to: type[_T],
response: httpx.Response,
- client: AsyncDigitaloceanGenaiSDK,
+ client: AsyncServerlessInferenceSDKProd,
) -> None:
self.response = response
self._cast_to = cast_to
diff --git a/src/digitalocean_genai_sdk/_types.py b/src/serverless_inference_sdk_prod/_types.py
similarity index 98%
rename from src/digitalocean_genai_sdk/_types.py
rename to src/serverless_inference_sdk_prod/_types.py
index b2bfbbec..d450b01a 100644
--- a/src/digitalocean_genai_sdk/_types.py
+++ b/src/serverless_inference_sdk_prod/_types.py
@@ -81,7 +81,7 @@
# This unfortunately means that you will either have
# to import this type and pass it explicitly:
#
-# from digitalocean_genai_sdk import NoneType
+# from serverless_inference_sdk_prod import NoneType
# client.get('/foo', cast_to=NoneType)
#
# or build it yourself:
@@ -100,6 +100,7 @@ class RequestOptions(TypedDict, total=False):
params: Query
extra_json: AnyMapping
idempotency_key: str
+ follow_redirects: bool
# Sentinel class used until PEP 0661 is accepted
@@ -215,3 +216,4 @@ class _GenericAlias(Protocol):
class HttpxSendArgs(TypedDict, total=False):
auth: httpx.Auth
+ follow_redirects: bool
diff --git a/src/digitalocean_genai_sdk/_utils/__init__.py b/src/serverless_inference_sdk_prod/_utils/__init__.py
similarity index 100%
rename from src/digitalocean_genai_sdk/_utils/__init__.py
rename to src/serverless_inference_sdk_prod/_utils/__init__.py
diff --git a/src/digitalocean_genai_sdk/_utils/_logs.py b/src/serverless_inference_sdk_prod/_utils/_logs.py
similarity index 66%
rename from src/digitalocean_genai_sdk/_utils/_logs.py
rename to src/serverless_inference_sdk_prod/_utils/_logs.py
index e0c1fee5..ff42f9e5 100644
--- a/src/digitalocean_genai_sdk/_utils/_logs.py
+++ b/src/serverless_inference_sdk_prod/_utils/_logs.py
@@ -1,12 +1,12 @@
import os
import logging
-logger: logging.Logger = logging.getLogger("digitalocean_genai_sdk")
+logger: logging.Logger = logging.getLogger("serverless_inference_sdk_prod")
httpx_logger: logging.Logger = logging.getLogger("httpx")
def _basic_config() -> None:
- # e.g. [2023-10-05 14:12:26 - digitalocean_genai_sdk._base_client:818 - DEBUG] HTTP Request: POST http://127.0.0.1:4010/foo/bar "200 OK"
+ # e.g. [2023-10-05 14:12:26 - serverless_inference_sdk_prod._base_client:818 - DEBUG] HTTP Request: POST http://127.0.0.1:4010/foo/bar "200 OK"
logging.basicConfig(
format="[%(asctime)s - %(name)s:%(lineno)d - %(levelname)s] %(message)s",
datefmt="%Y-%m-%d %H:%M:%S",
@@ -14,7 +14,7 @@ def _basic_config() -> None:
def setup_logging() -> None:
- env = os.environ.get("DIGITALOCEAN_GENAI_SDK_LOG")
+ env = os.environ.get("SERVERLESS_INFERENCE_SDK_PROD_LOG")
if env == "debug":
_basic_config()
logger.setLevel(logging.DEBUG)
diff --git a/src/digitalocean_genai_sdk/_utils/_proxy.py b/src/serverless_inference_sdk_prod/_utils/_proxy.py
similarity index 100%
rename from src/digitalocean_genai_sdk/_utils/_proxy.py
rename to src/serverless_inference_sdk_prod/_utils/_proxy.py
diff --git a/src/digitalocean_genai_sdk/_utils/_reflection.py b/src/serverless_inference_sdk_prod/_utils/_reflection.py
similarity index 100%
rename from src/digitalocean_genai_sdk/_utils/_reflection.py
rename to src/serverless_inference_sdk_prod/_utils/_reflection.py
diff --git a/src/serverless_inference_sdk_prod/_utils/_resources_proxy.py b/src/serverless_inference_sdk_prod/_utils/_resources_proxy.py
new file mode 100644
index 00000000..4048d288
--- /dev/null
+++ b/src/serverless_inference_sdk_prod/_utils/_resources_proxy.py
@@ -0,0 +1,24 @@
+from __future__ import annotations
+
+from typing import Any
+from typing_extensions import override
+
+from ._proxy import LazyProxy
+
+
+class ResourcesProxy(LazyProxy[Any]):
+ """A proxy for the `serverless_inference_sdk_prod.resources` module.
+
+ This is used so that we can lazily import `serverless_inference_sdk_prod.resources` only when
+ needed *and* so that users can just import `serverless_inference_sdk_prod` and reference `serverless_inference_sdk_prod.resources`
+ """
+
+ @override
+ def __load__(self) -> Any:
+ import importlib
+
+ mod = importlib.import_module("serverless_inference_sdk_prod.resources")
+ return mod
+
+
+resources = ResourcesProxy().__as_proxied__()
diff --git a/src/digitalocean_genai_sdk/_utils/_streams.py b/src/serverless_inference_sdk_prod/_utils/_streams.py
similarity index 100%
rename from src/digitalocean_genai_sdk/_utils/_streams.py
rename to src/serverless_inference_sdk_prod/_utils/_streams.py
diff --git a/src/digitalocean_genai_sdk/_utils/_sync.py b/src/serverless_inference_sdk_prod/_utils/_sync.py
similarity index 100%
rename from src/digitalocean_genai_sdk/_utils/_sync.py
rename to src/serverless_inference_sdk_prod/_utils/_sync.py
diff --git a/src/digitalocean_genai_sdk/_utils/_transform.py b/src/serverless_inference_sdk_prod/_utils/_transform.py
similarity index 100%
rename from src/digitalocean_genai_sdk/_utils/_transform.py
rename to src/serverless_inference_sdk_prod/_utils/_transform.py
diff --git a/src/digitalocean_genai_sdk/_utils/_typing.py b/src/serverless_inference_sdk_prod/_utils/_typing.py
similarity index 100%
rename from src/digitalocean_genai_sdk/_utils/_typing.py
rename to src/serverless_inference_sdk_prod/_utils/_typing.py
diff --git a/src/digitalocean_genai_sdk/_utils/_utils.py b/src/serverless_inference_sdk_prod/_utils/_utils.py
similarity index 100%
rename from src/digitalocean_genai_sdk/_utils/_utils.py
rename to src/serverless_inference_sdk_prod/_utils/_utils.py
diff --git a/src/digitalocean_genai_sdk/_version.py b/src/serverless_inference_sdk_prod/_version.py
similarity index 72%
rename from src/digitalocean_genai_sdk/_version.py
rename to src/serverless_inference_sdk_prod/_version.py
index 5c4fa53a..c5337335 100644
--- a/src/digitalocean_genai_sdk/_version.py
+++ b/src/serverless_inference_sdk_prod/_version.py
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-__title__ = "digitalocean_genai_sdk"
+__title__ = "serverless_inference_sdk_prod"
__version__ = "0.0.1-alpha.0"
diff --git a/src/digitalocean_genai_sdk/lib/.keep b/src/serverless_inference_sdk_prod/lib/.keep
similarity index 100%
rename from src/digitalocean_genai_sdk/lib/.keep
rename to src/serverless_inference_sdk_prod/lib/.keep
diff --git a/src/digitalocean_genai_sdk/py.typed b/src/serverless_inference_sdk_prod/py.typed
similarity index 100%
rename from src/digitalocean_genai_sdk/py.typed
rename to src/serverless_inference_sdk_prod/py.typed
diff --git a/src/digitalocean_genai_sdk/resources/__init__.py b/src/serverless_inference_sdk_prod/resources/__init__.py
similarity index 100%
rename from src/digitalocean_genai_sdk/resources/__init__.py
rename to src/serverless_inference_sdk_prod/resources/__init__.py
diff --git a/src/digitalocean_genai_sdk/resources/assistants.py b/src/serverless_inference_sdk_prod/resources/assistants.py
similarity index 98%
rename from src/digitalocean_genai_sdk/resources/assistants.py
rename to src/serverless_inference_sdk_prod/resources/assistants.py
index c6ae36f5..7a10cf0b 100644
--- a/src/digitalocean_genai_sdk/resources/assistants.py
+++ b/src/serverless_inference_sdk_prod/resources/assistants.py
@@ -29,7 +29,7 @@
from ..types.assistant_list_response import AssistantListResponse
from ..types.assistant_delete_response import AssistantDeleteResponse
from ..types.assistant_supported_models import AssistantSupportedModels
-from ..types.assistants_api_response_format_option_param import AssistantsAPIResponseFormatOptionParam
+from ..types.api_response_format_option_param import APIResponseFormatOptionParam
__all__ = ["AssistantsResource", "AsyncAssistantsResource"]
@@ -41,7 +41,7 @@ def with_raw_response(self) -> AssistantsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
"""
return AssistantsResourceWithRawResponse(self)
@@ -50,7 +50,7 @@ def with_streaming_response(self) -> AssistantsResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#with_streaming_response
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
"""
return AssistantsResourceWithStreamingResponse(self)
@@ -63,7 +63,7 @@ def create(
metadata: Optional[Dict[str, str]] | NotGiven = NOT_GIVEN,
name: Optional[str] | NotGiven = NOT_GIVEN,
reasoning_effort: Optional[ReasoningEffort] | NotGiven = NOT_GIVEN,
- response_format: Optional[AssistantsAPIResponseFormatOptionParam] | NotGiven = NOT_GIVEN,
+ response_format: Optional[APIResponseFormatOptionParam] | NotGiven = NOT_GIVEN,
temperature: Optional[float] | NotGiven = NOT_GIVEN,
tool_resources: Optional[assistant_create_params.ToolResources] | NotGiven = NOT_GIVEN,
tools: Iterable[assistant_create_params.Tool] | NotGiven = NOT_GIVEN,
@@ -218,7 +218,7 @@ def update(
model: Union[str, AssistantSupportedModels] | NotGiven = NOT_GIVEN,
name: Optional[str] | NotGiven = NOT_GIVEN,
reasoning_effort: Optional[ReasoningEffort] | NotGiven = NOT_GIVEN,
- response_format: Optional[AssistantsAPIResponseFormatOptionParam] | NotGiven = NOT_GIVEN,
+ response_format: Optional[APIResponseFormatOptionParam] | NotGiven = NOT_GIVEN,
temperature: Optional[float] | NotGiven = NOT_GIVEN,
tool_resources: Optional[assistant_update_params.ToolResources] | NotGiven = NOT_GIVEN,
tools: Iterable[assistant_update_params.Tool] | NotGiven = NOT_GIVEN,
@@ -437,7 +437,7 @@ def with_raw_response(self) -> AsyncAssistantsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
"""
return AsyncAssistantsResourceWithRawResponse(self)
@@ -446,7 +446,7 @@ def with_streaming_response(self) -> AsyncAssistantsResourceWithStreamingRespons
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#with_streaming_response
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
"""
return AsyncAssistantsResourceWithStreamingResponse(self)
@@ -459,7 +459,7 @@ async def create(
metadata: Optional[Dict[str, str]] | NotGiven = NOT_GIVEN,
name: Optional[str] | NotGiven = NOT_GIVEN,
reasoning_effort: Optional[ReasoningEffort] | NotGiven = NOT_GIVEN,
- response_format: Optional[AssistantsAPIResponseFormatOptionParam] | NotGiven = NOT_GIVEN,
+ response_format: Optional[APIResponseFormatOptionParam] | NotGiven = NOT_GIVEN,
temperature: Optional[float] | NotGiven = NOT_GIVEN,
tool_resources: Optional[assistant_create_params.ToolResources] | NotGiven = NOT_GIVEN,
tools: Iterable[assistant_create_params.Tool] | NotGiven = NOT_GIVEN,
@@ -614,7 +614,7 @@ async def update(
model: Union[str, AssistantSupportedModels] | NotGiven = NOT_GIVEN,
name: Optional[str] | NotGiven = NOT_GIVEN,
reasoning_effort: Optional[ReasoningEffort] | NotGiven = NOT_GIVEN,
- response_format: Optional[AssistantsAPIResponseFormatOptionParam] | NotGiven = NOT_GIVEN,
+ response_format: Optional[APIResponseFormatOptionParam] | NotGiven = NOT_GIVEN,
temperature: Optional[float] | NotGiven = NOT_GIVEN,
tool_resources: Optional[assistant_update_params.ToolResources] | NotGiven = NOT_GIVEN,
tools: Iterable[assistant_update_params.Tool] | NotGiven = NOT_GIVEN,
diff --git a/src/digitalocean_genai_sdk/resources/audio.py b/src/serverless_inference_sdk_prod/resources/audio.py
similarity index 98%
rename from src/digitalocean_genai_sdk/resources/audio.py
rename to src/serverless_inference_sdk_prod/resources/audio.py
index 7cecbe6d..47cdb900 100644
--- a/src/digitalocean_genai_sdk/resources/audio.py
+++ b/src/serverless_inference_sdk_prod/resources/audio.py
@@ -45,7 +45,7 @@ def with_raw_response(self) -> AudioResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
"""
return AudioResourceWithRawResponse(self)
@@ -54,7 +54,7 @@ def with_streaming_response(self) -> AudioResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#with_streaming_response
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
"""
return AudioResourceWithStreamingResponse(self)
@@ -319,7 +319,7 @@ def with_raw_response(self) -> AsyncAudioResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
"""
return AsyncAudioResourceWithRawResponse(self)
@@ -328,7 +328,7 @@ def with_streaming_response(self) -> AsyncAudioResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#with_streaming_response
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
"""
return AsyncAudioResourceWithStreamingResponse(self)
diff --git a/src/digitalocean_genai_sdk/resources/batches.py b/src/serverless_inference_sdk_prod/resources/batches.py
similarity index 98%
rename from src/digitalocean_genai_sdk/resources/batches.py
rename to src/serverless_inference_sdk_prod/resources/batches.py
index a2b1fedf..ec681d5c 100644
--- a/src/digitalocean_genai_sdk/resources/batches.py
+++ b/src/serverless_inference_sdk_prod/resources/batches.py
@@ -32,7 +32,7 @@ def with_raw_response(self) -> BatchesResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
"""
return BatchesResourceWithRawResponse(self)
@@ -41,7 +41,7 @@ def with_streaming_response(self) -> BatchesResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#with_streaming_response
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
"""
return BatchesResourceWithStreamingResponse(self)
@@ -240,7 +240,7 @@ def with_raw_response(self) -> AsyncBatchesResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
"""
return AsyncBatchesResourceWithRawResponse(self)
@@ -249,7 +249,7 @@ def with_streaming_response(self) -> AsyncBatchesResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#with_streaming_response
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
"""
return AsyncBatchesResourceWithStreamingResponse(self)
diff --git a/src/digitalocean_genai_sdk/resources/chat/__init__.py b/src/serverless_inference_sdk_prod/resources/chat/__init__.py
similarity index 100%
rename from src/digitalocean_genai_sdk/resources/chat/__init__.py
rename to src/serverless_inference_sdk_prod/resources/chat/__init__.py
diff --git a/src/digitalocean_genai_sdk/resources/chat/chat.py b/src/serverless_inference_sdk_prod/resources/chat/chat.py
similarity index 91%
rename from src/digitalocean_genai_sdk/resources/chat/chat.py
rename to src/serverless_inference_sdk_prod/resources/chat/chat.py
index df1f356c..a64bbc3b 100644
--- a/src/digitalocean_genai_sdk/resources/chat/chat.py
+++ b/src/serverless_inference_sdk_prod/resources/chat/chat.py
@@ -27,7 +27,7 @@ def with_raw_response(self) -> ChatResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
"""
return ChatResourceWithRawResponse(self)
@@ -36,7 +36,7 @@ def with_streaming_response(self) -> ChatResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#with_streaming_response
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
"""
return ChatResourceWithStreamingResponse(self)
@@ -52,7 +52,7 @@ def with_raw_response(self) -> AsyncChatResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
"""
return AsyncChatResourceWithRawResponse(self)
@@ -61,7 +61,7 @@ def with_streaming_response(self) -> AsyncChatResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#with_streaming_response
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
"""
return AsyncChatResourceWithStreamingResponse(self)
diff --git a/src/digitalocean_genai_sdk/resources/chat/completions.py b/src/serverless_inference_sdk_prod/resources/chat/completions.py
similarity index 97%
rename from src/digitalocean_genai_sdk/resources/chat/completions.py
rename to src/serverless_inference_sdk_prod/resources/chat/completions.py
index c0908a57..0c7f15cf 100644
--- a/src/digitalocean_genai_sdk/resources/chat/completions.py
+++ b/src/serverless_inference_sdk_prod/resources/chat/completions.py
@@ -22,7 +22,7 @@
completion_list_params,
completion_create_params,
completion_update_params,
- completion_list_messages_params,
+ completion_retrieve_messages_params,
)
from ..._base_client import make_request_options
from ...types.reasoning_effort import ReasoningEffort
@@ -32,7 +32,7 @@
from ...types.chat.completion_list_response import CompletionListResponse
from ...types.chat.completion_delete_response import CompletionDeleteResponse
from ...types.chat_completion_stream_options_param import ChatCompletionStreamOptionsParam
-from ...types.chat.completion_list_messages_response import CompletionListMessagesResponse
+from ...types.chat.completion_retrieve_messages_response import CompletionRetrieveMessagesResponse
__all__ = ["CompletionsResource", "AsyncCompletionsResource"]
@@ -44,7 +44,7 @@ def with_raw_response(self) -> CompletionsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
"""
return CompletionsResourceWithRawResponse(self)
@@ -53,7 +53,7 @@ def with_streaming_response(self) -> CompletionsResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#with_streaming_response
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
"""
return CompletionsResourceWithStreamingResponse(self)
@@ -530,7 +530,7 @@ def delete(
cast_to=CompletionDeleteResponse,
)
- def list_messages(
+ def retrieve_messages(
self,
completion_id: str,
*,
@@ -543,7 +543,7 @@ def list_messages(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> CompletionListMessagesResponse:
+ ) -> CompletionRetrieveMessagesResponse:
"""Get the messages in a stored chat completion.
Only Chat Completions that have
@@ -580,10 +580,10 @@ def list_messages(
"limit": limit,
"order": order,
},
- completion_list_messages_params.CompletionListMessagesParams,
+ completion_retrieve_messages_params.CompletionRetrieveMessagesParams,
),
),
- cast_to=CompletionListMessagesResponse,
+ cast_to=CompletionRetrieveMessagesResponse,
)
@@ -594,7 +594,7 @@ def with_raw_response(self) -> AsyncCompletionsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
"""
return AsyncCompletionsResourceWithRawResponse(self)
@@ -603,7 +603,7 @@ def with_streaming_response(self) -> AsyncCompletionsResourceWithStreamingRespon
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#with_streaming_response
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
"""
return AsyncCompletionsResourceWithStreamingResponse(self)
@@ -1080,7 +1080,7 @@ async def delete(
cast_to=CompletionDeleteResponse,
)
- async def list_messages(
+ async def retrieve_messages(
self,
completion_id: str,
*,
@@ -1093,7 +1093,7 @@ async def list_messages(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> CompletionListMessagesResponse:
+ ) -> CompletionRetrieveMessagesResponse:
"""Get the messages in a stored chat completion.
Only Chat Completions that have
@@ -1130,10 +1130,10 @@ async def list_messages(
"limit": limit,
"order": order,
},
- completion_list_messages_params.CompletionListMessagesParams,
+ completion_retrieve_messages_params.CompletionRetrieveMessagesParams,
),
),
- cast_to=CompletionListMessagesResponse,
+ cast_to=CompletionRetrieveMessagesResponse,
)
@@ -1156,8 +1156,8 @@ def __init__(self, completions: CompletionsResource) -> None:
self.delete = to_raw_response_wrapper(
completions.delete,
)
- self.list_messages = to_raw_response_wrapper(
- completions.list_messages,
+ self.retrieve_messages = to_raw_response_wrapper(
+ completions.retrieve_messages,
)
@@ -1180,8 +1180,8 @@ def __init__(self, completions: AsyncCompletionsResource) -> None:
self.delete = async_to_raw_response_wrapper(
completions.delete,
)
- self.list_messages = async_to_raw_response_wrapper(
- completions.list_messages,
+ self.retrieve_messages = async_to_raw_response_wrapper(
+ completions.retrieve_messages,
)
@@ -1204,8 +1204,8 @@ def __init__(self, completions: CompletionsResource) -> None:
self.delete = to_streamed_response_wrapper(
completions.delete,
)
- self.list_messages = to_streamed_response_wrapper(
- completions.list_messages,
+ self.retrieve_messages = to_streamed_response_wrapper(
+ completions.retrieve_messages,
)
@@ -1228,6 +1228,6 @@ def __init__(self, completions: AsyncCompletionsResource) -> None:
self.delete = async_to_streamed_response_wrapper(
completions.delete,
)
- self.list_messages = async_to_streamed_response_wrapper(
- completions.list_messages,
+ self.retrieve_messages = async_to_streamed_response_wrapper(
+ completions.retrieve_messages,
)
diff --git a/src/digitalocean_genai_sdk/resources/completions.py b/src/serverless_inference_sdk_prod/resources/completions.py
similarity index 98%
rename from src/digitalocean_genai_sdk/resources/completions.py
rename to src/serverless_inference_sdk_prod/resources/completions.py
index ff495166..28e0e371 100644
--- a/src/digitalocean_genai_sdk/resources/completions.py
+++ b/src/serverless_inference_sdk_prod/resources/completions.py
@@ -33,7 +33,7 @@ def with_raw_response(self) -> CompletionsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
"""
return CompletionsResourceWithRawResponse(self)
@@ -42,7 +42,7 @@ def with_streaming_response(self) -> CompletionsResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#with_streaming_response
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
"""
return CompletionsResourceWithStreamingResponse(self)
@@ -232,7 +232,7 @@ def with_raw_response(self) -> AsyncCompletionsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
"""
return AsyncCompletionsResourceWithRawResponse(self)
@@ -241,7 +241,7 @@ def with_streaming_response(self) -> AsyncCompletionsResourceWithStreamingRespon
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#with_streaming_response
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
"""
return AsyncCompletionsResourceWithStreamingResponse(self)
diff --git a/src/digitalocean_genai_sdk/resources/embeddings.py b/src/serverless_inference_sdk_prod/resources/embeddings.py
similarity index 97%
rename from src/digitalocean_genai_sdk/resources/embeddings.py
rename to src/serverless_inference_sdk_prod/resources/embeddings.py
index 92552f62..67fc8434 100644
--- a/src/digitalocean_genai_sdk/resources/embeddings.py
+++ b/src/serverless_inference_sdk_prod/resources/embeddings.py
@@ -31,7 +31,7 @@ def with_raw_response(self) -> EmbeddingsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
"""
return EmbeddingsResourceWithRawResponse(self)
@@ -40,7 +40,7 @@ def with_streaming_response(self) -> EmbeddingsResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#with_streaming_response
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
"""
return EmbeddingsResourceWithStreamingResponse(self)
@@ -119,7 +119,7 @@ def with_raw_response(self) -> AsyncEmbeddingsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
"""
return AsyncEmbeddingsResourceWithRawResponse(self)
@@ -128,7 +128,7 @@ def with_streaming_response(self) -> AsyncEmbeddingsResourceWithStreamingRespons
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#with_streaming_response
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
"""
return AsyncEmbeddingsResourceWithStreamingResponse(self)
diff --git a/src/digitalocean_genai_sdk/resources/files.py b/src/serverless_inference_sdk_prod/resources/files.py
similarity index 98%
rename from src/digitalocean_genai_sdk/resources/files.py
rename to src/serverless_inference_sdk_prod/resources/files.py
index 65e459f4..cd363104 100644
--- a/src/digitalocean_genai_sdk/resources/files.py
+++ b/src/serverless_inference_sdk_prod/resources/files.py
@@ -33,7 +33,7 @@ def with_raw_response(self) -> FilesResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
"""
return FilesResourceWithRawResponse(self)
@@ -42,7 +42,7 @@ def with_streaming_response(self) -> FilesResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#with_streaming_response
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
"""
return FilesResourceWithStreamingResponse(self)
@@ -282,7 +282,7 @@ def with_raw_response(self) -> AsyncFilesResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
"""
return AsyncFilesResourceWithRawResponse(self)
@@ -291,7 +291,7 @@ def with_streaming_response(self) -> AsyncFilesResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#with_streaming_response
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
"""
return AsyncFilesResourceWithStreamingResponse(self)
diff --git a/src/digitalocean_genai_sdk/resources/fine_tuning/__init__.py b/src/serverless_inference_sdk_prod/resources/fine_tuning/__init__.py
similarity index 100%
rename from src/digitalocean_genai_sdk/resources/fine_tuning/__init__.py
rename to src/serverless_inference_sdk_prod/resources/fine_tuning/__init__.py
diff --git a/src/digitalocean_genai_sdk/resources/fine_tuning/checkpoints/__init__.py b/src/serverless_inference_sdk_prod/resources/fine_tuning/checkpoints/__init__.py
similarity index 100%
rename from src/digitalocean_genai_sdk/resources/fine_tuning/checkpoints/__init__.py
rename to src/serverless_inference_sdk_prod/resources/fine_tuning/checkpoints/__init__.py
diff --git a/src/digitalocean_genai_sdk/resources/fine_tuning/checkpoints/checkpoints.py b/src/serverless_inference_sdk_prod/resources/fine_tuning/checkpoints/checkpoints.py
similarity index 92%
rename from src/digitalocean_genai_sdk/resources/fine_tuning/checkpoints/checkpoints.py
rename to src/serverless_inference_sdk_prod/resources/fine_tuning/checkpoints/checkpoints.py
index b1a85058..c89c6c51 100644
--- a/src/digitalocean_genai_sdk/resources/fine_tuning/checkpoints/checkpoints.py
+++ b/src/serverless_inference_sdk_prod/resources/fine_tuning/checkpoints/checkpoints.py
@@ -27,7 +27,7 @@ def with_raw_response(self) -> CheckpointsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
"""
return CheckpointsResourceWithRawResponse(self)
@@ -36,7 +36,7 @@ def with_streaming_response(self) -> CheckpointsResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#with_streaming_response
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
"""
return CheckpointsResourceWithStreamingResponse(self)
@@ -52,7 +52,7 @@ def with_raw_response(self) -> AsyncCheckpointsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
"""
return AsyncCheckpointsResourceWithRawResponse(self)
@@ -61,7 +61,7 @@ def with_streaming_response(self) -> AsyncCheckpointsResourceWithStreamingRespon
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#with_streaming_response
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
"""
return AsyncCheckpointsResourceWithStreamingResponse(self)
diff --git a/src/digitalocean_genai_sdk/resources/fine_tuning/checkpoints/permissions.py b/src/serverless_inference_sdk_prod/resources/fine_tuning/checkpoints/permissions.py
similarity index 98%
rename from src/digitalocean_genai_sdk/resources/fine_tuning/checkpoints/permissions.py
rename to src/serverless_inference_sdk_prod/resources/fine_tuning/checkpoints/permissions.py
index 0dee4435..42f8d6b8 100644
--- a/src/digitalocean_genai_sdk/resources/fine_tuning/checkpoints/permissions.py
+++ b/src/serverless_inference_sdk_prod/resources/fine_tuning/checkpoints/permissions.py
@@ -32,7 +32,7 @@ def with_raw_response(self) -> PermissionsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
"""
return PermissionsResourceWithRawResponse(self)
@@ -41,7 +41,7 @@ def with_streaming_response(self) -> PermissionsResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#with_streaming_response
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
"""
return PermissionsResourceWithStreamingResponse(self)
@@ -189,7 +189,7 @@ def with_raw_response(self) -> AsyncPermissionsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
"""
return AsyncPermissionsResourceWithRawResponse(self)
@@ -198,7 +198,7 @@ def with_streaming_response(self) -> AsyncPermissionsResourceWithStreamingRespon
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#with_streaming_response
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
"""
return AsyncPermissionsResourceWithStreamingResponse(self)
diff --git a/src/digitalocean_genai_sdk/resources/fine_tuning/fine_tuning.py b/src/serverless_inference_sdk_prod/resources/fine_tuning/fine_tuning.py
similarity index 93%
rename from src/digitalocean_genai_sdk/resources/fine_tuning/fine_tuning.py
rename to src/serverless_inference_sdk_prod/resources/fine_tuning/fine_tuning.py
index 8b4956b1..7dc2b367 100644
--- a/src/digitalocean_genai_sdk/resources/fine_tuning/fine_tuning.py
+++ b/src/serverless_inference_sdk_prod/resources/fine_tuning/fine_tuning.py
@@ -39,7 +39,7 @@ def with_raw_response(self) -> FineTuningResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
"""
return FineTuningResourceWithRawResponse(self)
@@ -48,7 +48,7 @@ def with_streaming_response(self) -> FineTuningResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#with_streaming_response
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
"""
return FineTuningResourceWithStreamingResponse(self)
@@ -68,7 +68,7 @@ def with_raw_response(self) -> AsyncFineTuningResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
"""
return AsyncFineTuningResourceWithRawResponse(self)
@@ -77,7 +77,7 @@ def with_streaming_response(self) -> AsyncFineTuningResourceWithStreamingRespons
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#with_streaming_response
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
"""
return AsyncFineTuningResourceWithStreamingResponse(self)
diff --git a/src/digitalocean_genai_sdk/resources/fine_tuning/jobs/__init__.py b/src/serverless_inference_sdk_prod/resources/fine_tuning/jobs/__init__.py
similarity index 100%
rename from src/digitalocean_genai_sdk/resources/fine_tuning/jobs/__init__.py
rename to src/serverless_inference_sdk_prod/resources/fine_tuning/jobs/__init__.py
diff --git a/src/digitalocean_genai_sdk/resources/fine_tuning/jobs/checkpoints.py b/src/serverless_inference_sdk_prod/resources/fine_tuning/jobs/checkpoints.py
similarity index 95%
rename from src/digitalocean_genai_sdk/resources/fine_tuning/jobs/checkpoints.py
rename to src/serverless_inference_sdk_prod/resources/fine_tuning/jobs/checkpoints.py
index d9ade070..aa99e4e4 100644
--- a/src/digitalocean_genai_sdk/resources/fine_tuning/jobs/checkpoints.py
+++ b/src/serverless_inference_sdk_prod/resources/fine_tuning/jobs/checkpoints.py
@@ -28,7 +28,7 @@ def with_raw_response(self) -> CheckpointsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
"""
return CheckpointsResourceWithRawResponse(self)
@@ -37,7 +37,7 @@ def with_streaming_response(self) -> CheckpointsResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#with_streaming_response
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
"""
return CheckpointsResourceWithStreamingResponse(self)
@@ -98,7 +98,7 @@ def with_raw_response(self) -> AsyncCheckpointsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
"""
return AsyncCheckpointsResourceWithRawResponse(self)
@@ -107,7 +107,7 @@ def with_streaming_response(self) -> AsyncCheckpointsResourceWithStreamingRespon
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#with_streaming_response
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
"""
return AsyncCheckpointsResourceWithStreamingResponse(self)
diff --git a/src/digitalocean_genai_sdk/resources/fine_tuning/jobs/events.py b/src/serverless_inference_sdk_prod/resources/fine_tuning/jobs/events.py
similarity index 95%
rename from src/digitalocean_genai_sdk/resources/fine_tuning/jobs/events.py
rename to src/serverless_inference_sdk_prod/resources/fine_tuning/jobs/events.py
index 6005084f..db06a0b5 100644
--- a/src/digitalocean_genai_sdk/resources/fine_tuning/jobs/events.py
+++ b/src/serverless_inference_sdk_prod/resources/fine_tuning/jobs/events.py
@@ -28,7 +28,7 @@ def with_raw_response(self) -> EventsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
"""
return EventsResourceWithRawResponse(self)
@@ -37,7 +37,7 @@ def with_streaming_response(self) -> EventsResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#with_streaming_response
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
"""
return EventsResourceWithStreamingResponse(self)
@@ -98,7 +98,7 @@ def with_raw_response(self) -> AsyncEventsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
"""
return AsyncEventsResourceWithRawResponse(self)
@@ -107,7 +107,7 @@ def with_streaming_response(self) -> AsyncEventsResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#with_streaming_response
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
"""
return AsyncEventsResourceWithStreamingResponse(self)
diff --git a/src/digitalocean_genai_sdk/resources/fine_tuning/jobs/jobs.py b/src/serverless_inference_sdk_prod/resources/fine_tuning/jobs/jobs.py
similarity index 98%
rename from src/digitalocean_genai_sdk/resources/fine_tuning/jobs/jobs.py
rename to src/serverless_inference_sdk_prod/resources/fine_tuning/jobs/jobs.py
index 86a7ae4b..bc592094 100644
--- a/src/digitalocean_genai_sdk/resources/fine_tuning/jobs/jobs.py
+++ b/src/serverless_inference_sdk_prod/resources/fine_tuning/jobs/jobs.py
@@ -57,7 +57,7 @@ def with_raw_response(self) -> JobsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
"""
return JobsResourceWithRawResponse(self)
@@ -66,7 +66,7 @@ def with_streaming_response(self) -> JobsResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#with_streaming_response
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
"""
return JobsResourceWithStreamingResponse(self)
@@ -318,7 +318,7 @@ def with_raw_response(self) -> AsyncJobsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
"""
return AsyncJobsResourceWithRawResponse(self)
@@ -327,7 +327,7 @@ def with_streaming_response(self) -> AsyncJobsResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#with_streaming_response
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
"""
return AsyncJobsResourceWithStreamingResponse(self)
diff --git a/src/digitalocean_genai_sdk/resources/images.py b/src/serverless_inference_sdk_prod/resources/images.py
similarity index 98%
rename from src/digitalocean_genai_sdk/resources/images.py
rename to src/serverless_inference_sdk_prod/resources/images.py
index 56a52184..35fbc3b9 100644
--- a/src/digitalocean_genai_sdk/resources/images.py
+++ b/src/serverless_inference_sdk_prod/resources/images.py
@@ -31,7 +31,7 @@ def with_raw_response(self) -> ImagesResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
"""
return ImagesResourceWithRawResponse(self)
@@ -40,7 +40,7 @@ def with_streaming_response(self) -> ImagesResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#with_streaming_response
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
"""
return ImagesResourceWithStreamingResponse(self)
@@ -285,7 +285,7 @@ def with_raw_response(self) -> AsyncImagesResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
"""
return AsyncImagesResourceWithRawResponse(self)
@@ -294,7 +294,7 @@ def with_streaming_response(self) -> AsyncImagesResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#with_streaming_response
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
"""
return AsyncImagesResourceWithStreamingResponse(self)
diff --git a/src/digitalocean_genai_sdk/resources/models.py b/src/serverless_inference_sdk_prod/resources/models.py
similarity index 97%
rename from src/digitalocean_genai_sdk/resources/models.py
rename to src/serverless_inference_sdk_prod/resources/models.py
index 53775057..bf1ff3a3 100644
--- a/src/digitalocean_genai_sdk/resources/models.py
+++ b/src/serverless_inference_sdk_prod/resources/models.py
@@ -28,7 +28,7 @@ def with_raw_response(self) -> ModelsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
"""
return ModelsResourceWithRawResponse(self)
@@ -37,7 +37,7 @@ def with_streaming_response(self) -> ModelsResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#with_streaming_response
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
"""
return ModelsResourceWithStreamingResponse(self)
@@ -140,7 +140,7 @@ def with_raw_response(self) -> AsyncModelsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
"""
return AsyncModelsResourceWithRawResponse(self)
@@ -149,7 +149,7 @@ def with_streaming_response(self) -> AsyncModelsResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#with_streaming_response
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
"""
return AsyncModelsResourceWithStreamingResponse(self)
diff --git a/src/digitalocean_genai_sdk/resources/moderations.py b/src/serverless_inference_sdk_prod/resources/moderations.py
similarity index 96%
rename from src/digitalocean_genai_sdk/resources/moderations.py
rename to src/serverless_inference_sdk_prod/resources/moderations.py
index e9404243..fd7fc49a 100644
--- a/src/digitalocean_genai_sdk/resources/moderations.py
+++ b/src/serverless_inference_sdk_prod/resources/moderations.py
@@ -31,7 +31,7 @@ def with_raw_response(self) -> ModerationsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
"""
return ModerationsResourceWithRawResponse(self)
@@ -40,7 +40,7 @@ def with_streaming_response(self) -> ModerationsResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#with_streaming_response
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
"""
return ModerationsResourceWithStreamingResponse(self)
@@ -109,7 +109,7 @@ def with_raw_response(self) -> AsyncModerationsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
"""
return AsyncModerationsResourceWithRawResponse(self)
@@ -118,7 +118,7 @@ def with_streaming_response(self) -> AsyncModerationsResourceWithStreamingRespon
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#with_streaming_response
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
"""
return AsyncModerationsResourceWithStreamingResponse(self)
diff --git a/src/digitalocean_genai_sdk/resources/organization/__init__.py b/src/serverless_inference_sdk_prod/resources/organization/__init__.py
similarity index 100%
rename from src/digitalocean_genai_sdk/resources/organization/__init__.py
rename to src/serverless_inference_sdk_prod/resources/organization/__init__.py
diff --git a/src/digitalocean_genai_sdk/resources/organization/admin_api_keys.py b/src/serverless_inference_sdk_prod/resources/organization/admin_api_keys.py
similarity index 98%
rename from src/digitalocean_genai_sdk/resources/organization/admin_api_keys.py
rename to src/serverless_inference_sdk_prod/resources/organization/admin_api_keys.py
index 7224871f..664c5e64 100644
--- a/src/digitalocean_genai_sdk/resources/organization/admin_api_keys.py
+++ b/src/serverless_inference_sdk_prod/resources/organization/admin_api_keys.py
@@ -33,7 +33,7 @@ def with_raw_response(self) -> AdminAPIKeysResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
"""
return AdminAPIKeysResourceWithRawResponse(self)
@@ -42,7 +42,7 @@ def with_streaming_response(self) -> AdminAPIKeysResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#with_streaming_response
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
"""
return AdminAPIKeysResourceWithStreamingResponse(self)
@@ -206,7 +206,7 @@ def with_raw_response(self) -> AsyncAdminAPIKeysResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
"""
return AsyncAdminAPIKeysResourceWithRawResponse(self)
@@ -215,7 +215,7 @@ def with_streaming_response(self) -> AsyncAdminAPIKeysResourceWithStreamingRespo
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#with_streaming_response
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
"""
return AsyncAdminAPIKeysResourceWithStreamingResponse(self)
diff --git a/src/digitalocean_genai_sdk/resources/organization/invites.py b/src/serverless_inference_sdk_prod/resources/organization/invites.py
similarity index 98%
rename from src/digitalocean_genai_sdk/resources/organization/invites.py
rename to src/serverless_inference_sdk_prod/resources/organization/invites.py
index 16bd17bc..ce6b6feb 100644
--- a/src/digitalocean_genai_sdk/resources/organization/invites.py
+++ b/src/serverless_inference_sdk_prod/resources/organization/invites.py
@@ -33,7 +33,7 @@ def with_raw_response(self) -> InvitesResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
"""
return InvitesResourceWithRawResponse(self)
@@ -42,7 +42,7 @@ def with_streaming_response(self) -> InvitesResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#with_streaming_response
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
"""
return InvitesResourceWithStreamingResponse(self)
@@ -222,7 +222,7 @@ def with_raw_response(self) -> AsyncInvitesResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
"""
return AsyncInvitesResourceWithRawResponse(self)
@@ -231,7 +231,7 @@ def with_streaming_response(self) -> AsyncInvitesResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#with_streaming_response
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
"""
return AsyncInvitesResourceWithStreamingResponse(self)
diff --git a/src/digitalocean_genai_sdk/resources/organization/organization.py b/src/serverless_inference_sdk_prod/resources/organization/organization.py
similarity index 98%
rename from src/digitalocean_genai_sdk/resources/organization/organization.py
rename to src/serverless_inference_sdk_prod/resources/organization/organization.py
index 4a9aa4fb..892ac56f 100644
--- a/src/digitalocean_genai_sdk/resources/organization/organization.py
+++ b/src/serverless_inference_sdk_prod/resources/organization/organization.py
@@ -93,7 +93,7 @@ def with_raw_response(self) -> OrganizationResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
"""
return OrganizationResourceWithRawResponse(self)
@@ -102,7 +102,7 @@ def with_streaming_response(self) -> OrganizationResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#with_streaming_response
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
"""
return OrganizationResourceWithStreamingResponse(self)
@@ -289,7 +289,7 @@ def with_raw_response(self) -> AsyncOrganizationResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
"""
return AsyncOrganizationResourceWithRawResponse(self)
@@ -298,7 +298,7 @@ def with_streaming_response(self) -> AsyncOrganizationResourceWithStreamingRespo
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#with_streaming_response
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
"""
return AsyncOrganizationResourceWithStreamingResponse(self)
diff --git a/src/digitalocean_genai_sdk/resources/organization/projects/__init__.py b/src/serverless_inference_sdk_prod/resources/organization/projects/__init__.py
similarity index 100%
rename from src/digitalocean_genai_sdk/resources/organization/projects/__init__.py
rename to src/serverless_inference_sdk_prod/resources/organization/projects/__init__.py
diff --git a/src/digitalocean_genai_sdk/resources/organization/projects/api_keys.py b/src/serverless_inference_sdk_prod/resources/organization/projects/api_keys.py
similarity index 96%
rename from src/digitalocean_genai_sdk/resources/organization/projects/api_keys.py
rename to src/serverless_inference_sdk_prod/resources/organization/projects/api_keys.py
index c5907765..299f166a 100644
--- a/src/digitalocean_genai_sdk/resources/organization/projects/api_keys.py
+++ b/src/serverless_inference_sdk_prod/resources/organization/projects/api_keys.py
@@ -16,7 +16,7 @@
)
from ...._base_client import make_request_options
from ....types.organization.projects import api_key_list_params
-from ....types.organization.projects.api_key import APIKey
+from ....types.organization.projects.project_api_key import ProjectAPIKey
from ....types.organization.projects.api_key_list_response import APIKeyListResponse
from ....types.organization.projects.api_key_delete_response import APIKeyDeleteResponse
@@ -30,7 +30,7 @@ def with_raw_response(self) -> APIKeysResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
"""
return APIKeysResourceWithRawResponse(self)
@@ -39,7 +39,7 @@ def with_streaming_response(self) -> APIKeysResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#with_streaming_response
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
"""
return APIKeysResourceWithStreamingResponse(self)
@@ -54,7 +54,7 @@ def retrieve(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> APIKey:
+ ) -> ProjectAPIKey:
"""
Retrieves an API key in the project.
@@ -76,7 +76,7 @@ def retrieve(
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
- cast_to=APIKey,
+ cast_to=ProjectAPIKey,
)
def list(
@@ -176,7 +176,7 @@ def with_raw_response(self) -> AsyncAPIKeysResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
"""
return AsyncAPIKeysResourceWithRawResponse(self)
@@ -185,7 +185,7 @@ def with_streaming_response(self) -> AsyncAPIKeysResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#with_streaming_response
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
"""
return AsyncAPIKeysResourceWithStreamingResponse(self)
@@ -200,7 +200,7 @@ async def retrieve(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> APIKey:
+ ) -> ProjectAPIKey:
"""
Retrieves an API key in the project.
@@ -222,7 +222,7 @@ async def retrieve(
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
- cast_to=APIKey,
+ cast_to=ProjectAPIKey,
)
async def list(
diff --git a/src/digitalocean_genai_sdk/resources/organization/projects/projects.py b/src/serverless_inference_sdk_prod/resources/organization/projects/projects.py
similarity index 98%
rename from src/digitalocean_genai_sdk/resources/organization/projects/projects.py
rename to src/serverless_inference_sdk_prod/resources/organization/projects/projects.py
index 93e42de8..2ab4aee6 100644
--- a/src/digitalocean_genai_sdk/resources/organization/projects/projects.py
+++ b/src/serverless_inference_sdk_prod/resources/organization/projects/projects.py
@@ -77,7 +77,7 @@ def with_raw_response(self) -> ProjectsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
"""
return ProjectsResourceWithRawResponse(self)
@@ -86,7 +86,7 @@ def with_streaming_response(self) -> ProjectsResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#with_streaming_response
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
"""
return ProjectsResourceWithStreamingResponse(self)
@@ -311,7 +311,7 @@ def with_raw_response(self) -> AsyncProjectsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
"""
return AsyncProjectsResourceWithRawResponse(self)
@@ -320,7 +320,7 @@ def with_streaming_response(self) -> AsyncProjectsResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#with_streaming_response
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
"""
return AsyncProjectsResourceWithStreamingResponse(self)
diff --git a/src/digitalocean_genai_sdk/resources/organization/projects/rate_limits.py b/src/serverless_inference_sdk_prod/resources/organization/projects/rate_limits.py
similarity index 96%
rename from src/digitalocean_genai_sdk/resources/organization/projects/rate_limits.py
rename to src/serverless_inference_sdk_prod/resources/organization/projects/rate_limits.py
index 9c9dce7b..9ea0b180 100644
--- a/src/digitalocean_genai_sdk/resources/organization/projects/rate_limits.py
+++ b/src/serverless_inference_sdk_prod/resources/organization/projects/rate_limits.py
@@ -16,7 +16,7 @@
)
from ...._base_client import make_request_options
from ....types.organization.projects import rate_limit_list_params, rate_limit_update_params
-from ....types.organization.projects.rate_limit import RateLimit
+from ....types.organization.projects.project_rate_limit import ProjectRateLimit
from ....types.organization.projects.rate_limit_list_response import RateLimitListResponse
__all__ = ["RateLimitsResource", "AsyncRateLimitsResource"]
@@ -29,7 +29,7 @@ def with_raw_response(self) -> RateLimitsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
"""
return RateLimitsResourceWithRawResponse(self)
@@ -38,7 +38,7 @@ def with_streaming_response(self) -> RateLimitsResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#with_streaming_response
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
"""
return RateLimitsResourceWithStreamingResponse(self)
@@ -59,7 +59,7 @@ def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> RateLimit:
+ ) -> ProjectRateLimit:
"""
Updates a project rate limit.
@@ -104,7 +104,7 @@ def update(
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
- cast_to=RateLimit,
+ cast_to=ProjectRateLimit,
)
def list(
@@ -174,7 +174,7 @@ def with_raw_response(self) -> AsyncRateLimitsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
"""
return AsyncRateLimitsResourceWithRawResponse(self)
@@ -183,7 +183,7 @@ def with_streaming_response(self) -> AsyncRateLimitsResourceWithStreamingRespons
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#with_streaming_response
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
"""
return AsyncRateLimitsResourceWithStreamingResponse(self)
@@ -204,7 +204,7 @@ async def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> RateLimit:
+ ) -> ProjectRateLimit:
"""
Updates a project rate limit.
@@ -249,7 +249,7 @@ async def update(
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
- cast_to=RateLimit,
+ cast_to=ProjectRateLimit,
)
async def list(
diff --git a/src/digitalocean_genai_sdk/resources/organization/projects/service_accounts.py b/src/serverless_inference_sdk_prod/resources/organization/projects/service_accounts.py
similarity index 97%
rename from src/digitalocean_genai_sdk/resources/organization/projects/service_accounts.py
rename to src/serverless_inference_sdk_prod/resources/organization/projects/service_accounts.py
index 8957a81d..fb68758a 100644
--- a/src/digitalocean_genai_sdk/resources/organization/projects/service_accounts.py
+++ b/src/serverless_inference_sdk_prod/resources/organization/projects/service_accounts.py
@@ -16,7 +16,7 @@
)
from ...._base_client import make_request_options
from ....types.organization.projects import service_account_list_params, service_account_create_params
-from ....types.organization.projects.service_account import ServiceAccount
+from ....types.organization.projects.project_service_account import ProjectServiceAccount
from ....types.organization.projects.service_account_list_response import ServiceAccountListResponse
from ....types.organization.projects.service_account_create_response import ServiceAccountCreateResponse
from ....types.organization.projects.service_account_delete_response import ServiceAccountDeleteResponse
@@ -31,7 +31,7 @@ def with_raw_response(self) -> ServiceAccountsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
"""
return ServiceAccountsResourceWithRawResponse(self)
@@ -40,7 +40,7 @@ def with_streaming_response(self) -> ServiceAccountsResourceWithStreamingRespons
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#with_streaming_response
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
"""
return ServiceAccountsResourceWithStreamingResponse(self)
@@ -94,7 +94,7 @@ def retrieve(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> ServiceAccount:
+ ) -> ProjectServiceAccount:
"""
Retrieves a service account in the project.
@@ -116,7 +116,7 @@ def retrieve(
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
- cast_to=ServiceAccount,
+ cast_to=ProjectServiceAccount,
)
def list(
@@ -216,7 +216,7 @@ def with_raw_response(self) -> AsyncServiceAccountsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
"""
return AsyncServiceAccountsResourceWithRawResponse(self)
@@ -225,7 +225,7 @@ def with_streaming_response(self) -> AsyncServiceAccountsResourceWithStreamingRe
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#with_streaming_response
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
"""
return AsyncServiceAccountsResourceWithStreamingResponse(self)
@@ -279,7 +279,7 @@ async def retrieve(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> ServiceAccount:
+ ) -> ProjectServiceAccount:
"""
Retrieves a service account in the project.
@@ -301,7 +301,7 @@ async def retrieve(
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
- cast_to=ServiceAccount,
+ cast_to=ProjectServiceAccount,
)
async def list(
diff --git a/src/digitalocean_genai_sdk/resources/organization/projects/users.py b/src/serverless_inference_sdk_prod/resources/organization/projects/users.py
similarity index 98%
rename from src/digitalocean_genai_sdk/resources/organization/projects/users.py
rename to src/serverless_inference_sdk_prod/resources/organization/projects/users.py
index e35ff0cf..1e5f3e86 100644
--- a/src/digitalocean_genai_sdk/resources/organization/projects/users.py
+++ b/src/serverless_inference_sdk_prod/resources/organization/projects/users.py
@@ -32,7 +32,7 @@ def with_raw_response(self) -> UsersResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
"""
return UsersResourceWithRawResponse(self)
@@ -41,7 +41,7 @@ def with_streaming_response(self) -> UsersResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#with_streaming_response
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
"""
return UsersResourceWithStreamingResponse(self)
@@ -266,7 +266,7 @@ def with_raw_response(self) -> AsyncUsersResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
"""
return AsyncUsersResourceWithRawResponse(self)
@@ -275,7 +275,7 @@ def with_streaming_response(self) -> AsyncUsersResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#with_streaming_response
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
"""
return AsyncUsersResourceWithStreamingResponse(self)
diff --git a/src/digitalocean_genai_sdk/resources/organization/usage.py b/src/serverless_inference_sdk_prod/resources/organization/usage.py
similarity index 99%
rename from src/digitalocean_genai_sdk/resources/organization/usage.py
rename to src/serverless_inference_sdk_prod/resources/organization/usage.py
index 37d11956..318bac7c 100644
--- a/src/digitalocean_genai_sdk/resources/organization/usage.py
+++ b/src/serverless_inference_sdk_prod/resources/organization/usage.py
@@ -40,7 +40,7 @@ def with_raw_response(self) -> UsageResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
"""
return UsageResourceWithRawResponse(self)
@@ -49,7 +49,7 @@ def with_streaming_response(self) -> UsageResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#with_streaming_response
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
"""
return UsageResourceWithStreamingResponse(self)
@@ -735,7 +735,7 @@ def with_raw_response(self) -> AsyncUsageResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
"""
return AsyncUsageResourceWithRawResponse(self)
@@ -744,7 +744,7 @@ def with_streaming_response(self) -> AsyncUsageResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#with_streaming_response
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
"""
return AsyncUsageResourceWithStreamingResponse(self)
diff --git a/src/digitalocean_genai_sdk/resources/organization/users.py b/src/serverless_inference_sdk_prod/resources/organization/users.py
similarity index 96%
rename from src/digitalocean_genai_sdk/resources/organization/users.py
rename to src/serverless_inference_sdk_prod/resources/organization/users.py
index 536e4396..d7457d87 100644
--- a/src/digitalocean_genai_sdk/resources/organization/users.py
+++ b/src/serverless_inference_sdk_prod/resources/organization/users.py
@@ -19,7 +19,7 @@
)
from ..._base_client import make_request_options
from ...types.organization import user_list_params, user_update_params
-from ...types.organization.organization_user import OrganizationUser
+from ...types.organization.user import User
from ...types.organization.user_list_response import UserListResponse
from ...types.organization.user_delete_response import UserDeleteResponse
@@ -33,7 +33,7 @@ def with_raw_response(self) -> UsersResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
"""
return UsersResourceWithRawResponse(self)
@@ -42,7 +42,7 @@ def with_streaming_response(self) -> UsersResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#with_streaming_response
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
"""
return UsersResourceWithStreamingResponse(self)
@@ -56,7 +56,7 @@ def retrieve(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> OrganizationUser:
+ ) -> User:
"""
Retrieves a user by their identifier.
@@ -76,7 +76,7 @@ def retrieve(
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
- cast_to=OrganizationUser,
+ cast_to=User,
)
def update(
@@ -90,7 +90,7 @@ def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> OrganizationUser:
+ ) -> User:
"""
Modifies a user's role in the organization.
@@ -113,7 +113,7 @@ def update(
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
- cast_to=OrganizationUser,
+ cast_to=User,
)
def list(
@@ -211,7 +211,7 @@ def with_raw_response(self) -> AsyncUsersResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
"""
return AsyncUsersResourceWithRawResponse(self)
@@ -220,7 +220,7 @@ def with_streaming_response(self) -> AsyncUsersResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#with_streaming_response
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
"""
return AsyncUsersResourceWithStreamingResponse(self)
@@ -234,7 +234,7 @@ async def retrieve(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> OrganizationUser:
+ ) -> User:
"""
Retrieves a user by their identifier.
@@ -254,7 +254,7 @@ async def retrieve(
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
- cast_to=OrganizationUser,
+ cast_to=User,
)
async def update(
@@ -268,7 +268,7 @@ async def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> OrganizationUser:
+ ) -> User:
"""
Modifies a user's role in the organization.
@@ -291,7 +291,7 @@ async def update(
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
- cast_to=OrganizationUser,
+ cast_to=User,
)
async def list(
diff --git a/src/digitalocean_genai_sdk/resources/realtime.py b/src/serverless_inference_sdk_prod/resources/realtime.py
similarity index 99%
rename from src/digitalocean_genai_sdk/resources/realtime.py
rename to src/serverless_inference_sdk_prod/resources/realtime.py
index 4c70a798..23fdc244 100644
--- a/src/digitalocean_genai_sdk/resources/realtime.py
+++ b/src/serverless_inference_sdk_prod/resources/realtime.py
@@ -33,7 +33,7 @@ def with_raw_response(self) -> RealtimeResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
"""
return RealtimeResourceWithRawResponse(self)
@@ -42,7 +42,7 @@ def with_streaming_response(self) -> RealtimeResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#with_streaming_response
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
"""
return RealtimeResourceWithStreamingResponse(self)
@@ -283,7 +283,7 @@ def with_raw_response(self) -> AsyncRealtimeResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
"""
return AsyncRealtimeResourceWithRawResponse(self)
@@ -292,7 +292,7 @@ def with_streaming_response(self) -> AsyncRealtimeResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#with_streaming_response
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
"""
return AsyncRealtimeResourceWithStreamingResponse(self)
diff --git a/src/digitalocean_genai_sdk/resources/responses.py b/src/serverless_inference_sdk_prod/resources/responses.py
similarity index 99%
rename from src/digitalocean_genai_sdk/resources/responses.py
rename to src/serverless_inference_sdk_prod/resources/responses.py
index 03445cdc..ddf33834 100644
--- a/src/digitalocean_genai_sdk/resources/responses.py
+++ b/src/serverless_inference_sdk_prod/resources/responses.py
@@ -33,7 +33,7 @@ def with_raw_response(self) -> ResponsesResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
"""
return ResponsesResourceWithRawResponse(self)
@@ -42,7 +42,7 @@ def with_streaming_response(self) -> ResponsesResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#with_streaming_response
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
"""
return ResponsesResourceWithStreamingResponse(self)
@@ -434,7 +434,7 @@ def with_raw_response(self) -> AsyncResponsesResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
"""
return AsyncResponsesResourceWithRawResponse(self)
@@ -443,7 +443,7 @@ def with_streaming_response(self) -> AsyncResponsesResourceWithStreamingResponse
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#with_streaming_response
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
"""
return AsyncResponsesResourceWithStreamingResponse(self)
diff --git a/src/digitalocean_genai_sdk/resources/threads/__init__.py b/src/serverless_inference_sdk_prod/resources/threads/__init__.py
similarity index 100%
rename from src/digitalocean_genai_sdk/resources/threads/__init__.py
rename to src/serverless_inference_sdk_prod/resources/threads/__init__.py
diff --git a/src/digitalocean_genai_sdk/resources/threads/messages.py b/src/serverless_inference_sdk_prod/resources/threads/messages.py
similarity index 98%
rename from src/digitalocean_genai_sdk/resources/threads/messages.py
rename to src/serverless_inference_sdk_prod/resources/threads/messages.py
index e62eb94c..6cdf9202 100644
--- a/src/digitalocean_genai_sdk/resources/threads/messages.py
+++ b/src/serverless_inference_sdk_prod/resources/threads/messages.py
@@ -33,7 +33,7 @@ def with_raw_response(self) -> MessagesResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
"""
return MessagesResourceWithRawResponse(self)
@@ -42,7 +42,7 @@ def with_streaming_response(self) -> MessagesResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#with_streaming_response
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
"""
return MessagesResourceWithStreamingResponse(self)
@@ -305,7 +305,7 @@ def with_raw_response(self) -> AsyncMessagesResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
"""
return AsyncMessagesResourceWithRawResponse(self)
@@ -314,7 +314,7 @@ def with_streaming_response(self) -> AsyncMessagesResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#with_streaming_response
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
"""
return AsyncMessagesResourceWithStreamingResponse(self)
diff --git a/src/digitalocean_genai_sdk/resources/threads/runs/__init__.py b/src/serverless_inference_sdk_prod/resources/threads/runs/__init__.py
similarity index 100%
rename from src/digitalocean_genai_sdk/resources/threads/runs/__init__.py
rename to src/serverless_inference_sdk_prod/resources/threads/runs/__init__.py
diff --git a/src/digitalocean_genai_sdk/resources/threads/runs/runs.py b/src/serverless_inference_sdk_prod/resources/threads/runs/runs.py
similarity index 98%
rename from src/digitalocean_genai_sdk/resources/threads/runs/runs.py
rename to src/serverless_inference_sdk_prod/resources/threads/runs/runs.py
index a270b7a9..122aaf8d 100644
--- a/src/digitalocean_genai_sdk/resources/threads/runs/runs.py
+++ b/src/serverless_inference_sdk_prod/resources/threads/runs/runs.py
@@ -40,8 +40,8 @@
from ....types.assistant_supported_models import AssistantSupportedModels
from ....types.create_thread_request_param import CreateThreadRequestParam
from ....types.threads.truncation_object_param import TruncationObjectParam
+from ....types.api_response_format_option_param import APIResponseFormatOptionParam
from ....types.threads.create_message_request_param import CreateMessageRequestParam
-from ....types.assistants_api_response_format_option_param import AssistantsAPIResponseFormatOptionParam
from ....types.threads.assistants_api_tool_choice_option_param import AssistantsAPIToolChoiceOptionParam
__all__ = ["RunsResource", "AsyncRunsResource"]
@@ -58,7 +58,7 @@ def with_raw_response(self) -> RunsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
"""
return RunsResourceWithRawResponse(self)
@@ -67,7 +67,7 @@ def with_streaming_response(self) -> RunsResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#with_streaming_response
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
"""
return RunsResourceWithStreamingResponse(self)
@@ -113,7 +113,7 @@ def create(
]
| NotGiven = NOT_GIVEN,
parallel_tool_calls: bool | NotGiven = NOT_GIVEN,
- response_format: Optional[AssistantsAPIResponseFormatOptionParam] | NotGiven = NOT_GIVEN,
+ response_format: Optional[APIResponseFormatOptionParam] | NotGiven = NOT_GIVEN,
stream: Optional[bool] | NotGiven = NOT_GIVEN,
temperature: Optional[float] | NotGiven = NOT_GIVEN,
thread: CreateThreadRequestParam | NotGiven = NOT_GIVEN,
@@ -456,7 +456,7 @@ def create_run(
model: Union[str, AssistantSupportedModels, None] | NotGiven = NOT_GIVEN,
parallel_tool_calls: bool | NotGiven = NOT_GIVEN,
reasoning_effort: Optional[ReasoningEffort] | NotGiven = NOT_GIVEN,
- response_format: Optional[AssistantsAPIResponseFormatOptionParam] | NotGiven = NOT_GIVEN,
+ response_format: Optional[APIResponseFormatOptionParam] | NotGiven = NOT_GIVEN,
stream: Optional[bool] | NotGiven = NOT_GIVEN,
temperature: Optional[float] | NotGiven = NOT_GIVEN,
tool_choice: Optional[AssistantsAPIToolChoiceOptionParam] | NotGiven = NOT_GIVEN,
@@ -686,7 +686,7 @@ def with_raw_response(self) -> AsyncRunsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
"""
return AsyncRunsResourceWithRawResponse(self)
@@ -695,7 +695,7 @@ def with_streaming_response(self) -> AsyncRunsResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#with_streaming_response
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
"""
return AsyncRunsResourceWithStreamingResponse(self)
@@ -741,7 +741,7 @@ async def create(
]
| NotGiven = NOT_GIVEN,
parallel_tool_calls: bool | NotGiven = NOT_GIVEN,
- response_format: Optional[AssistantsAPIResponseFormatOptionParam] | NotGiven = NOT_GIVEN,
+ response_format: Optional[APIResponseFormatOptionParam] | NotGiven = NOT_GIVEN,
stream: Optional[bool] | NotGiven = NOT_GIVEN,
temperature: Optional[float] | NotGiven = NOT_GIVEN,
thread: CreateThreadRequestParam | NotGiven = NOT_GIVEN,
@@ -1084,7 +1084,7 @@ async def create_run(
model: Union[str, AssistantSupportedModels, None] | NotGiven = NOT_GIVEN,
parallel_tool_calls: bool | NotGiven = NOT_GIVEN,
reasoning_effort: Optional[ReasoningEffort] | NotGiven = NOT_GIVEN,
- response_format: Optional[AssistantsAPIResponseFormatOptionParam] | NotGiven = NOT_GIVEN,
+ response_format: Optional[APIResponseFormatOptionParam] | NotGiven = NOT_GIVEN,
stream: Optional[bool] | NotGiven = NOT_GIVEN,
temperature: Optional[float] | NotGiven = NOT_GIVEN,
tool_choice: Optional[AssistantsAPIToolChoiceOptionParam] | NotGiven = NOT_GIVEN,
diff --git a/src/digitalocean_genai_sdk/resources/threads/runs/steps.py b/src/serverless_inference_sdk_prod/resources/threads/runs/steps.py
similarity index 98%
rename from src/digitalocean_genai_sdk/resources/threads/runs/steps.py
rename to src/serverless_inference_sdk_prod/resources/threads/runs/steps.py
index 2b5ffd09..c5ef1c22 100644
--- a/src/digitalocean_genai_sdk/resources/threads/runs/steps.py
+++ b/src/serverless_inference_sdk_prod/resources/threads/runs/steps.py
@@ -32,7 +32,7 @@ def with_raw_response(self) -> StepsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
"""
return StepsResourceWithRawResponse(self)
@@ -41,7 +41,7 @@ def with_streaming_response(self) -> StepsResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#with_streaming_response
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
"""
return StepsResourceWithStreamingResponse(self)
@@ -183,7 +183,7 @@ def with_raw_response(self) -> AsyncStepsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
"""
return AsyncStepsResourceWithRawResponse(self)
@@ -192,7 +192,7 @@ def with_streaming_response(self) -> AsyncStepsResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#with_streaming_response
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
"""
return AsyncStepsResourceWithStreamingResponse(self)
diff --git a/src/digitalocean_genai_sdk/resources/threads/threads.py b/src/serverless_inference_sdk_prod/resources/threads/threads.py
similarity index 98%
rename from src/digitalocean_genai_sdk/resources/threads/threads.py
rename to src/serverless_inference_sdk_prod/resources/threads/threads.py
index 64062ffb..676f970e 100644
--- a/src/digitalocean_genai_sdk/resources/threads/threads.py
+++ b/src/serverless_inference_sdk_prod/resources/threads/threads.py
@@ -56,7 +56,7 @@ def with_raw_response(self) -> ThreadsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
"""
return ThreadsResourceWithRawResponse(self)
@@ -65,7 +65,7 @@ def with_streaming_response(self) -> ThreadsResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#with_streaming_response
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
"""
return ThreadsResourceWithStreamingResponse(self)
@@ -260,7 +260,7 @@ def with_raw_response(self) -> AsyncThreadsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
"""
return AsyncThreadsResourceWithRawResponse(self)
@@ -269,7 +269,7 @@ def with_streaming_response(self) -> AsyncThreadsResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#with_streaming_response
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
"""
return AsyncThreadsResourceWithStreamingResponse(self)
diff --git a/src/digitalocean_genai_sdk/resources/uploads.py b/src/serverless_inference_sdk_prod/resources/uploads.py
similarity index 98%
rename from src/digitalocean_genai_sdk/resources/uploads.py
rename to src/serverless_inference_sdk_prod/resources/uploads.py
index 30ba91b5..774b31c9 100644
--- a/src/digitalocean_genai_sdk/resources/uploads.py
+++ b/src/serverless_inference_sdk_prod/resources/uploads.py
@@ -32,7 +32,7 @@ def with_raw_response(self) -> UploadsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
"""
return UploadsResourceWithRawResponse(self)
@@ -41,7 +41,7 @@ def with_streaming_response(self) -> UploadsResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#with_streaming_response
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
"""
return UploadsResourceWithStreamingResponse(self)
@@ -270,7 +270,7 @@ def with_raw_response(self) -> AsyncUploadsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
"""
return AsyncUploadsResourceWithRawResponse(self)
@@ -279,7 +279,7 @@ def with_streaming_response(self) -> AsyncUploadsResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#with_streaming_response
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
"""
return AsyncUploadsResourceWithStreamingResponse(self)
diff --git a/src/digitalocean_genai_sdk/resources/vector_stores/__init__.py b/src/serverless_inference_sdk_prod/resources/vector_stores/__init__.py
similarity index 100%
rename from src/digitalocean_genai_sdk/resources/vector_stores/__init__.py
rename to src/serverless_inference_sdk_prod/resources/vector_stores/__init__.py
diff --git a/src/digitalocean_genai_sdk/resources/vector_stores/file_batches.py b/src/serverless_inference_sdk_prod/resources/vector_stores/file_batches.py
similarity index 98%
rename from src/digitalocean_genai_sdk/resources/vector_stores/file_batches.py
rename to src/serverless_inference_sdk_prod/resources/vector_stores/file_batches.py
index 0c4334ce..100e3f5b 100644
--- a/src/digitalocean_genai_sdk/resources/vector_stores/file_batches.py
+++ b/src/serverless_inference_sdk_prod/resources/vector_stores/file_batches.py
@@ -33,7 +33,7 @@ def with_raw_response(self) -> FileBatchesResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
"""
return FileBatchesResourceWithRawResponse(self)
@@ -42,7 +42,7 @@ def with_streaming_response(self) -> FileBatchesResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#with_streaming_response
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
"""
return FileBatchesResourceWithStreamingResponse(self)
@@ -256,7 +256,7 @@ def with_raw_response(self) -> AsyncFileBatchesResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
"""
return AsyncFileBatchesResourceWithRawResponse(self)
@@ -265,7 +265,7 @@ def with_streaming_response(self) -> AsyncFileBatchesResourceWithStreamingRespon
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#with_streaming_response
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
"""
return AsyncFileBatchesResourceWithStreamingResponse(self)
diff --git a/src/digitalocean_genai_sdk/resources/vector_stores/files.py b/src/serverless_inference_sdk_prod/resources/vector_stores/files.py
similarity index 99%
rename from src/digitalocean_genai_sdk/resources/vector_stores/files.py
rename to src/serverless_inference_sdk_prod/resources/vector_stores/files.py
index c40d5b11..617c5267 100644
--- a/src/digitalocean_genai_sdk/resources/vector_stores/files.py
+++ b/src/serverless_inference_sdk_prod/resources/vector_stores/files.py
@@ -40,7 +40,7 @@ def with_raw_response(self) -> FilesResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
"""
return FilesResourceWithRawResponse(self)
@@ -49,7 +49,7 @@ def with_streaming_response(self) -> FilesResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#with_streaming_response
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
"""
return FilesResourceWithStreamingResponse(self)
@@ -342,7 +342,7 @@ def with_raw_response(self) -> AsyncFilesResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
"""
return AsyncFilesResourceWithRawResponse(self)
@@ -351,7 +351,7 @@ def with_streaming_response(self) -> AsyncFilesResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#with_streaming_response
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
"""
return AsyncFilesResourceWithStreamingResponse(self)
diff --git a/src/digitalocean_genai_sdk/resources/vector_stores/vector_stores.py b/src/serverless_inference_sdk_prod/resources/vector_stores/vector_stores.py
similarity index 99%
rename from src/digitalocean_genai_sdk/resources/vector_stores/vector_stores.py
rename to src/serverless_inference_sdk_prod/resources/vector_stores/vector_stores.py
index 8ad572ea..fb5dd4dc 100644
--- a/src/digitalocean_genai_sdk/resources/vector_stores/vector_stores.py
+++ b/src/serverless_inference_sdk_prod/resources/vector_stores/vector_stores.py
@@ -64,7 +64,7 @@ def with_raw_response(self) -> VectorStoresResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
"""
return VectorStoresResourceWithRawResponse(self)
@@ -73,7 +73,7 @@ def with_streaming_response(self) -> VectorStoresResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#with_streaming_response
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
"""
return VectorStoresResourceWithStreamingResponse(self)
@@ -399,7 +399,7 @@ def with_raw_response(self) -> AsyncVectorStoresResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
"""
return AsyncVectorStoresResourceWithRawResponse(self)
@@ -408,7 +408,7 @@ def with_streaming_response(self) -> AsyncVectorStoresResourceWithStreamingRespo
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/digitalocean-genai-sdk-python#with_streaming_response
+ For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
"""
return AsyncVectorStoresResourceWithStreamingResponse(self)
diff --git a/src/digitalocean_genai_sdk/types/__init__.py b/src/serverless_inference_sdk_prod/types/__init__.py
similarity index 97%
rename from src/digitalocean_genai_sdk/types/__init__.py
rename to src/serverless_inference_sdk_prod/types/__init__.py
index 49c8d424..522163f9 100644
--- a/src/digitalocean_genai_sdk/types/__init__.py
+++ b/src/serverless_inference_sdk_prod/types/__init__.py
@@ -76,6 +76,7 @@
from .embedding_create_response import EmbeddingCreateResponse as EmbeddingCreateResponse
from .function_tool_call_output import FunctionToolCallOutput as FunctionToolCallOutput
from .model_response_properties import ModelResponseProperties as ModelResponseProperties
+from .api_response_format_option import APIResponseFormatOption as APIResponseFormatOption
from .assistant_supported_models import AssistantSupportedModels as AssistantSupportedModels
from .assistant_tools_code_param import AssistantToolsCodeParam as AssistantToolsCodeParam
from .completion_create_response import CompletionCreateResponse as CompletionCreateResponse
@@ -107,6 +108,7 @@
from .computer_tool_call_output_param import ComputerToolCallOutputParam as ComputerToolCallOutputParam
from .computer_tool_call_safety_check import ComputerToolCallSafetyCheck as ComputerToolCallSafetyCheck
from .function_tool_call_output_param import FunctionToolCallOutputParam as FunctionToolCallOutputParam
+from .api_response_format_option_param import APIResponseFormatOptionParam as APIResponseFormatOptionParam
from .realtime_create_session_response import RealtimeCreateSessionResponse as RealtimeCreateSessionResponse
from .response_list_input_items_params import ResponseListInputItemsParams as ResponseListInputItemsParams
from .assistant_tools_file_search_param import AssistantToolsFileSearchParam as AssistantToolsFileSearchParam
@@ -115,9 +117,6 @@
from .vector_store_expiration_after_param import VectorStoreExpirationAfterParam as VectorStoreExpirationAfterParam
from .auto_chunking_strategy_request_param import AutoChunkingStrategyRequestParam as AutoChunkingStrategyRequestParam
from .chat_completion_stream_options_param import ChatCompletionStreamOptionsParam as ChatCompletionStreamOptionsParam
-from .assistants_api_response_format_option import (
- AssistantsAPIResponseFormatOption as AssistantsAPIResponseFormatOption,
-)
from .computer_tool_call_safety_check_param import ComputerToolCallSafetyCheckParam as ComputerToolCallSafetyCheckParam
from .organization_list_audit_logs_response import (
OrganizationListAuditLogsResponse as OrganizationListAuditLogsResponse,
@@ -125,9 +124,6 @@
from .static_chunking_strategy_request_param import (
StaticChunkingStrategyRequestParam as StaticChunkingStrategyRequestParam,
)
-from .assistants_api_response_format_option_param import (
- AssistantsAPIResponseFormatOptionParam as AssistantsAPIResponseFormatOptionParam,
-)
from .realtime_create_transcription_session_params import (
RealtimeCreateTranscriptionSessionParams as RealtimeCreateTranscriptionSessionParams,
)
diff --git a/src/digitalocean_genai_sdk/types/assistants_api_response_format_option.py b/src/serverless_inference_sdk_prod/types/api_response_format_option.py
similarity index 81%
rename from src/digitalocean_genai_sdk/types/assistants_api_response_format_option.py
rename to src/serverless_inference_sdk_prod/types/api_response_format_option.py
index 07c4f71e..dbe9e888 100644
--- a/src/digitalocean_genai_sdk/types/assistants_api_response_format_option.py
+++ b/src/serverless_inference_sdk_prod/types/api_response_format_option.py
@@ -7,8 +7,8 @@
from .chat.response_format_json_object import ResponseFormatJsonObject
from .chat.response_format_json_schema import ResponseFormatJsonSchema
-__all__ = ["AssistantsAPIResponseFormatOption"]
+__all__ = ["APIResponseFormatOption"]
-AssistantsAPIResponseFormatOption: TypeAlias = Union[
+APIResponseFormatOption: TypeAlias = Union[
Literal["auto"], ResponseFormatText, ResponseFormatJsonObject, ResponseFormatJsonSchema
]
diff --git a/src/digitalocean_genai_sdk/types/assistants_api_response_format_option_param.py b/src/serverless_inference_sdk_prod/types/api_response_format_option_param.py
similarity index 82%
rename from src/digitalocean_genai_sdk/types/assistants_api_response_format_option_param.py
rename to src/serverless_inference_sdk_prod/types/api_response_format_option_param.py
index 7dbf967f..b4ae0107 100644
--- a/src/digitalocean_genai_sdk/types/assistants_api_response_format_option_param.py
+++ b/src/serverless_inference_sdk_prod/types/api_response_format_option_param.py
@@ -9,8 +9,8 @@
from .chat.response_format_json_object_param import ResponseFormatJsonObjectParam
from .chat.response_format_json_schema_param import ResponseFormatJsonSchemaParam
-__all__ = ["AssistantsAPIResponseFormatOptionParam"]
+__all__ = ["APIResponseFormatOptionParam"]
-AssistantsAPIResponseFormatOptionParam: TypeAlias = Union[
+APIResponseFormatOptionParam: TypeAlias = Union[
Literal["auto"], ResponseFormatTextParam, ResponseFormatJsonObjectParam, ResponseFormatJsonSchemaParam
]
diff --git a/src/digitalocean_genai_sdk/types/assistant_create_params.py b/src/serverless_inference_sdk_prod/types/assistant_create_params.py
similarity index 97%
rename from src/digitalocean_genai_sdk/types/assistant_create_params.py
rename to src/serverless_inference_sdk_prod/types/assistant_create_params.py
index b89e4742..31b1eb5f 100644
--- a/src/digitalocean_genai_sdk/types/assistant_create_params.py
+++ b/src/serverless_inference_sdk_prod/types/assistant_create_params.py
@@ -9,8 +9,8 @@
from .assistant_supported_models import AssistantSupportedModels
from .assistant_tools_code_param import AssistantToolsCodeParam
from .assistant_tools_function_param import AssistantToolsFunctionParam
+from .api_response_format_option_param import APIResponseFormatOptionParam
from .assistant_tools_file_search_param import AssistantToolsFileSearchParam
-from .assistants_api_response_format_option_param import AssistantsAPIResponseFormatOptionParam
__all__ = [
"AssistantCreateParams",
@@ -66,7 +66,7 @@ class AssistantCreateParams(TypedDict, total=False):
result in faster responses and fewer tokens used on reasoning in a response.
"""
- response_format: Optional[AssistantsAPIResponseFormatOptionParam]
+ response_format: Optional[APIResponseFormatOptionParam]
"""Specifies the format that the model must output.
Compatible with [GPT-4o](/docs/models#gpt-4o),
diff --git a/src/digitalocean_genai_sdk/types/assistant_delete_response.py b/src/serverless_inference_sdk_prod/types/assistant_delete_response.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/assistant_delete_response.py
rename to src/serverless_inference_sdk_prod/types/assistant_delete_response.py
diff --git a/src/digitalocean_genai_sdk/types/assistant_list_params.py b/src/serverless_inference_sdk_prod/types/assistant_list_params.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/assistant_list_params.py
rename to src/serverless_inference_sdk_prod/types/assistant_list_params.py
diff --git a/src/digitalocean_genai_sdk/types/assistant_list_response.py b/src/serverless_inference_sdk_prod/types/assistant_list_response.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/assistant_list_response.py
rename to src/serverless_inference_sdk_prod/types/assistant_list_response.py
diff --git a/src/digitalocean_genai_sdk/types/assistant_object.py b/src/serverless_inference_sdk_prod/types/assistant_object.py
similarity index 96%
rename from src/digitalocean_genai_sdk/types/assistant_object.py
rename to src/serverless_inference_sdk_prod/types/assistant_object.py
index 4aa71ab9..9ad12d71 100644
--- a/src/digitalocean_genai_sdk/types/assistant_object.py
+++ b/src/serverless_inference_sdk_prod/types/assistant_object.py
@@ -6,8 +6,8 @@
from .._models import BaseModel
from .assistant_tools_code import AssistantToolsCode
from .assistant_tools_function import AssistantToolsFunction
+from .api_response_format_option import APIResponseFormatOption
from .assistant_tools_file_search import AssistantToolsFileSearch
-from .assistants_api_response_format_option import AssistantsAPIResponseFormatOption
__all__ = ["AssistantObject", "Tool", "ToolResources", "ToolResourcesCodeInterpreter", "ToolResourcesFileSearch"]
@@ -85,7 +85,7 @@ class AssistantObject(BaseModel):
`code_interpreter`, `file_search`, or `function`.
"""
- response_format: Optional[AssistantsAPIResponseFormatOption] = None
+ response_format: Optional[APIResponseFormatOption] = None
"""Specifies the format that the model must output.
Compatible with [GPT-4o](/docs/models#gpt-4o),
diff --git a/src/digitalocean_genai_sdk/types/assistant_supported_models.py b/src/serverless_inference_sdk_prod/types/assistant_supported_models.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/assistant_supported_models.py
rename to src/serverless_inference_sdk_prod/types/assistant_supported_models.py
diff --git a/src/digitalocean_genai_sdk/types/assistant_tools_code.py b/src/serverless_inference_sdk_prod/types/assistant_tools_code.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/assistant_tools_code.py
rename to src/serverless_inference_sdk_prod/types/assistant_tools_code.py
diff --git a/src/digitalocean_genai_sdk/types/assistant_tools_code_param.py b/src/serverless_inference_sdk_prod/types/assistant_tools_code_param.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/assistant_tools_code_param.py
rename to src/serverless_inference_sdk_prod/types/assistant_tools_code_param.py
diff --git a/src/digitalocean_genai_sdk/types/assistant_tools_file_search.py b/src/serverless_inference_sdk_prod/types/assistant_tools_file_search.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/assistant_tools_file_search.py
rename to src/serverless_inference_sdk_prod/types/assistant_tools_file_search.py
diff --git a/src/digitalocean_genai_sdk/types/assistant_tools_file_search_param.py b/src/serverless_inference_sdk_prod/types/assistant_tools_file_search_param.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/assistant_tools_file_search_param.py
rename to src/serverless_inference_sdk_prod/types/assistant_tools_file_search_param.py
diff --git a/src/digitalocean_genai_sdk/types/assistant_tools_function.py b/src/serverless_inference_sdk_prod/types/assistant_tools_function.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/assistant_tools_function.py
rename to src/serverless_inference_sdk_prod/types/assistant_tools_function.py
diff --git a/src/digitalocean_genai_sdk/types/assistant_tools_function_param.py b/src/serverless_inference_sdk_prod/types/assistant_tools_function_param.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/assistant_tools_function_param.py
rename to src/serverless_inference_sdk_prod/types/assistant_tools_function_param.py
diff --git a/src/digitalocean_genai_sdk/types/assistant_update_params.py b/src/serverless_inference_sdk_prod/types/assistant_update_params.py
similarity index 96%
rename from src/digitalocean_genai_sdk/types/assistant_update_params.py
rename to src/serverless_inference_sdk_prod/types/assistant_update_params.py
index cf301dd4..56f71820 100644
--- a/src/digitalocean_genai_sdk/types/assistant_update_params.py
+++ b/src/serverless_inference_sdk_prod/types/assistant_update_params.py
@@ -9,8 +9,8 @@
from .assistant_supported_models import AssistantSupportedModels
from .assistant_tools_code_param import AssistantToolsCodeParam
from .assistant_tools_function_param import AssistantToolsFunctionParam
+from .api_response_format_option_param import APIResponseFormatOptionParam
from .assistant_tools_file_search_param import AssistantToolsFileSearchParam
-from .assistants_api_response_format_option_param import AssistantsAPIResponseFormatOptionParam
__all__ = ["AssistantUpdateParams", "ToolResources", "ToolResourcesCodeInterpreter", "ToolResourcesFileSearch", "Tool"]
@@ -55,7 +55,7 @@ class AssistantUpdateParams(TypedDict, total=False):
result in faster responses and fewer tokens used on reasoning in a response.
"""
- response_format: Optional[AssistantsAPIResponseFormatOptionParam]
+ response_format: Optional[APIResponseFormatOptionParam]
"""Specifies the format that the model must output.
Compatible with [GPT-4o](/docs/models#gpt-4o),
diff --git a/src/digitalocean_genai_sdk/types/audio_generate_speech_params.py b/src/serverless_inference_sdk_prod/types/audio_generate_speech_params.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/audio_generate_speech_params.py
rename to src/serverless_inference_sdk_prod/types/audio_generate_speech_params.py
diff --git a/src/digitalocean_genai_sdk/types/audio_transcribe_audio_params.py b/src/serverless_inference_sdk_prod/types/audio_transcribe_audio_params.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/audio_transcribe_audio_params.py
rename to src/serverless_inference_sdk_prod/types/audio_transcribe_audio_params.py
diff --git a/src/digitalocean_genai_sdk/types/audio_transcribe_audio_response.py b/src/serverless_inference_sdk_prod/types/audio_transcribe_audio_response.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/audio_transcribe_audio_response.py
rename to src/serverless_inference_sdk_prod/types/audio_transcribe_audio_response.py
diff --git a/src/digitalocean_genai_sdk/types/audio_translate_audio_params.py b/src/serverless_inference_sdk_prod/types/audio_translate_audio_params.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/audio_translate_audio_params.py
rename to src/serverless_inference_sdk_prod/types/audio_translate_audio_params.py
diff --git a/src/digitalocean_genai_sdk/types/audio_translate_audio_response.py b/src/serverless_inference_sdk_prod/types/audio_translate_audio_response.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/audio_translate_audio_response.py
rename to src/serverless_inference_sdk_prod/types/audio_translate_audio_response.py
diff --git a/src/digitalocean_genai_sdk/types/audit_log_actor_user.py b/src/serverless_inference_sdk_prod/types/audit_log_actor_user.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/audit_log_actor_user.py
rename to src/serverless_inference_sdk_prod/types/audit_log_actor_user.py
diff --git a/src/digitalocean_genai_sdk/types/audit_log_event_type.py b/src/serverless_inference_sdk_prod/types/audit_log_event_type.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/audit_log_event_type.py
rename to src/serverless_inference_sdk_prod/types/audit_log_event_type.py
diff --git a/src/digitalocean_genai_sdk/types/auto_chunking_strategy_request_param.py b/src/serverless_inference_sdk_prod/types/auto_chunking_strategy_request_param.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/auto_chunking_strategy_request_param.py
rename to src/serverless_inference_sdk_prod/types/auto_chunking_strategy_request_param.py
diff --git a/src/digitalocean_genai_sdk/types/batch.py b/src/serverless_inference_sdk_prod/types/batch.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/batch.py
rename to src/serverless_inference_sdk_prod/types/batch.py
diff --git a/src/digitalocean_genai_sdk/types/batch_create_params.py b/src/serverless_inference_sdk_prod/types/batch_create_params.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/batch_create_params.py
rename to src/serverless_inference_sdk_prod/types/batch_create_params.py
diff --git a/src/digitalocean_genai_sdk/types/batch_list_params.py b/src/serverless_inference_sdk_prod/types/batch_list_params.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/batch_list_params.py
rename to src/serverless_inference_sdk_prod/types/batch_list_params.py
diff --git a/src/digitalocean_genai_sdk/types/batch_list_response.py b/src/serverless_inference_sdk_prod/types/batch_list_response.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/batch_list_response.py
rename to src/serverless_inference_sdk_prod/types/batch_list_response.py
diff --git a/src/digitalocean_genai_sdk/types/chat/__init__.py b/src/serverless_inference_sdk_prod/types/chat/__init__.py
similarity index 88%
rename from src/digitalocean_genai_sdk/types/chat/__init__.py
rename to src/serverless_inference_sdk_prod/types/chat/__init__.py
index cfa8c56a..455643d4 100644
--- a/src/digitalocean_genai_sdk/types/chat/__init__.py
+++ b/src/serverless_inference_sdk_prod/types/chat/__init__.py
@@ -21,10 +21,12 @@
from .response_format_text_param import ResponseFormatTextParam as ResponseFormatTextParam
from .response_format_json_object import ResponseFormatJsonObject as ResponseFormatJsonObject
from .response_format_json_schema import ResponseFormatJsonSchema as ResponseFormatJsonSchema
-from .completion_list_messages_params import CompletionListMessagesParams as CompletionListMessagesParams
-from .completion_list_messages_response import CompletionListMessagesResponse as CompletionListMessagesResponse
from .response_format_json_object_param import ResponseFormatJsonObjectParam as ResponseFormatJsonObjectParam
from .response_format_json_schema_param import ResponseFormatJsonSchemaParam as ResponseFormatJsonSchemaParam
+from .completion_retrieve_messages_params import CompletionRetrieveMessagesParams as CompletionRetrieveMessagesParams
+from .completion_retrieve_messages_response import (
+ CompletionRetrieveMessagesResponse as CompletionRetrieveMessagesResponse,
+)
from .request_message_content_part_text_param import (
RequestMessageContentPartTextParam as RequestMessageContentPartTextParam,
)
diff --git a/src/digitalocean_genai_sdk/types/chat/completion_create_params.py b/src/serverless_inference_sdk_prod/types/chat/completion_create_params.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/chat/completion_create_params.py
rename to src/serverless_inference_sdk_prod/types/chat/completion_create_params.py
diff --git a/src/digitalocean_genai_sdk/types/chat/completion_delete_response.py b/src/serverless_inference_sdk_prod/types/chat/completion_delete_response.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/chat/completion_delete_response.py
rename to src/serverless_inference_sdk_prod/types/chat/completion_delete_response.py
diff --git a/src/digitalocean_genai_sdk/types/chat/completion_list_params.py b/src/serverless_inference_sdk_prod/types/chat/completion_list_params.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/chat/completion_list_params.py
rename to src/serverless_inference_sdk_prod/types/chat/completion_list_params.py
diff --git a/src/digitalocean_genai_sdk/types/chat/completion_list_response.py b/src/serverless_inference_sdk_prod/types/chat/completion_list_response.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/chat/completion_list_response.py
rename to src/serverless_inference_sdk_prod/types/chat/completion_list_response.py
diff --git a/src/digitalocean_genai_sdk/types/chat/completion_list_messages_params.py b/src/serverless_inference_sdk_prod/types/chat/completion_retrieve_messages_params.py
similarity index 81%
rename from src/digitalocean_genai_sdk/types/chat/completion_list_messages_params.py
rename to src/serverless_inference_sdk_prod/types/chat/completion_retrieve_messages_params.py
index 43f4a7cc..11af8d6a 100644
--- a/src/digitalocean_genai_sdk/types/chat/completion_list_messages_params.py
+++ b/src/serverless_inference_sdk_prod/types/chat/completion_retrieve_messages_params.py
@@ -4,10 +4,10 @@
from typing_extensions import Literal, TypedDict
-__all__ = ["CompletionListMessagesParams"]
+__all__ = ["CompletionRetrieveMessagesParams"]
-class CompletionListMessagesParams(TypedDict, total=False):
+class CompletionRetrieveMessagesParams(TypedDict, total=False):
after: str
"""Identifier for the last message from the previous pagination request."""
diff --git a/src/digitalocean_genai_sdk/types/chat/completion_list_messages_response.py b/src/serverless_inference_sdk_prod/types/chat/completion_retrieve_messages_response.py
similarity index 87%
rename from src/digitalocean_genai_sdk/types/chat/completion_list_messages_response.py
rename to src/serverless_inference_sdk_prod/types/chat/completion_retrieve_messages_response.py
index 57087a63..c9a43253 100644
--- a/src/digitalocean_genai_sdk/types/chat/completion_list_messages_response.py
+++ b/src/serverless_inference_sdk_prod/types/chat/completion_retrieve_messages_response.py
@@ -6,7 +6,7 @@
from ..._models import BaseModel
from .response_message import ResponseMessage
-__all__ = ["CompletionListMessagesResponse", "Data"]
+__all__ = ["CompletionRetrieveMessagesResponse", "Data"]
class Data(ResponseMessage):
@@ -14,7 +14,7 @@ class Data(ResponseMessage):
"""The identifier of the chat message."""
-class CompletionListMessagesResponse(BaseModel):
+class CompletionRetrieveMessagesResponse(BaseModel):
data: List[Data]
"""An array of chat completion message objects."""
diff --git a/src/digitalocean_genai_sdk/types/chat/completion_update_params.py b/src/serverless_inference_sdk_prod/types/chat/completion_update_params.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/chat/completion_update_params.py
rename to src/serverless_inference_sdk_prod/types/chat/completion_update_params.py
diff --git a/src/digitalocean_genai_sdk/types/chat/create_response.py b/src/serverless_inference_sdk_prod/types/chat/create_response.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/chat/create_response.py
rename to src/serverless_inference_sdk_prod/types/chat/create_response.py
diff --git a/src/digitalocean_genai_sdk/types/chat/message_tool_call.py b/src/serverless_inference_sdk_prod/types/chat/message_tool_call.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/chat/message_tool_call.py
rename to src/serverless_inference_sdk_prod/types/chat/message_tool_call.py
diff --git a/src/digitalocean_genai_sdk/types/chat/message_tool_call_param.py b/src/serverless_inference_sdk_prod/types/chat/message_tool_call_param.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/chat/message_tool_call_param.py
rename to src/serverless_inference_sdk_prod/types/chat/message_tool_call_param.py
diff --git a/src/digitalocean_genai_sdk/types/chat/model_ids_shared_param.py b/src/serverless_inference_sdk_prod/types/chat/model_ids_shared_param.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/chat/model_ids_shared_param.py
rename to src/serverless_inference_sdk_prod/types/chat/model_ids_shared_param.py
diff --git a/src/digitalocean_genai_sdk/types/chat/request_message_content_part_text_param.py b/src/serverless_inference_sdk_prod/types/chat/request_message_content_part_text_param.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/chat/request_message_content_part_text_param.py
rename to src/serverless_inference_sdk_prod/types/chat/request_message_content_part_text_param.py
diff --git a/src/digitalocean_genai_sdk/types/chat/response_format_json_object.py b/src/serverless_inference_sdk_prod/types/chat/response_format_json_object.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/chat/response_format_json_object.py
rename to src/serverless_inference_sdk_prod/types/chat/response_format_json_object.py
diff --git a/src/digitalocean_genai_sdk/types/chat/response_format_json_object_param.py b/src/serverless_inference_sdk_prod/types/chat/response_format_json_object_param.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/chat/response_format_json_object_param.py
rename to src/serverless_inference_sdk_prod/types/chat/response_format_json_object_param.py
diff --git a/src/digitalocean_genai_sdk/types/chat/response_format_json_schema.py b/src/serverless_inference_sdk_prod/types/chat/response_format_json_schema.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/chat/response_format_json_schema.py
rename to src/serverless_inference_sdk_prod/types/chat/response_format_json_schema.py
diff --git a/src/digitalocean_genai_sdk/types/chat/response_format_json_schema_param.py b/src/serverless_inference_sdk_prod/types/chat/response_format_json_schema_param.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/chat/response_format_json_schema_param.py
rename to src/serverless_inference_sdk_prod/types/chat/response_format_json_schema_param.py
diff --git a/src/digitalocean_genai_sdk/types/chat/response_format_text.py b/src/serverless_inference_sdk_prod/types/chat/response_format_text.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/chat/response_format_text.py
rename to src/serverless_inference_sdk_prod/types/chat/response_format_text.py
diff --git a/src/digitalocean_genai_sdk/types/chat/response_format_text_param.py b/src/serverless_inference_sdk_prod/types/chat/response_format_text_param.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/chat/response_format_text_param.py
rename to src/serverless_inference_sdk_prod/types/chat/response_format_text_param.py
diff --git a/src/digitalocean_genai_sdk/types/chat/response_message.py b/src/serverless_inference_sdk_prod/types/chat/response_message.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/chat/response_message.py
rename to src/serverless_inference_sdk_prod/types/chat/response_message.py
diff --git a/src/digitalocean_genai_sdk/types/chat/token_logprob.py b/src/serverless_inference_sdk_prod/types/chat/token_logprob.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/chat/token_logprob.py
rename to src/serverless_inference_sdk_prod/types/chat/token_logprob.py
diff --git a/src/digitalocean_genai_sdk/types/chat/usage.py b/src/serverless_inference_sdk_prod/types/chat/usage.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/chat/usage.py
rename to src/serverless_inference_sdk_prod/types/chat/usage.py
diff --git a/src/digitalocean_genai_sdk/types/chat/web_search_context_size.py b/src/serverless_inference_sdk_prod/types/chat/web_search_context_size.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/chat/web_search_context_size.py
rename to src/serverless_inference_sdk_prod/types/chat/web_search_context_size.py
diff --git a/src/digitalocean_genai_sdk/types/chat/web_search_location.py b/src/serverless_inference_sdk_prod/types/chat/web_search_location.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/chat/web_search_location.py
rename to src/serverless_inference_sdk_prod/types/chat/web_search_location.py
diff --git a/src/digitalocean_genai_sdk/types/chat/web_search_location_param.py b/src/serverless_inference_sdk_prod/types/chat/web_search_location_param.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/chat/web_search_location_param.py
rename to src/serverless_inference_sdk_prod/types/chat/web_search_location_param.py
diff --git a/src/digitalocean_genai_sdk/types/chat_completion_stream_options_param.py b/src/serverless_inference_sdk_prod/types/chat_completion_stream_options_param.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/chat_completion_stream_options_param.py
rename to src/serverless_inference_sdk_prod/types/chat_completion_stream_options_param.py
diff --git a/src/digitalocean_genai_sdk/types/comparison_filter.py b/src/serverless_inference_sdk_prod/types/comparison_filter.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/comparison_filter.py
rename to src/serverless_inference_sdk_prod/types/comparison_filter.py
diff --git a/src/digitalocean_genai_sdk/types/comparison_filter_param.py b/src/serverless_inference_sdk_prod/types/comparison_filter_param.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/comparison_filter_param.py
rename to src/serverless_inference_sdk_prod/types/comparison_filter_param.py
diff --git a/src/digitalocean_genai_sdk/types/completion_create_params.py b/src/serverless_inference_sdk_prod/types/completion_create_params.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/completion_create_params.py
rename to src/serverless_inference_sdk_prod/types/completion_create_params.py
diff --git a/src/digitalocean_genai_sdk/types/completion_create_response.py b/src/serverless_inference_sdk_prod/types/completion_create_response.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/completion_create_response.py
rename to src/serverless_inference_sdk_prod/types/completion_create_response.py
diff --git a/src/digitalocean_genai_sdk/types/compound_filter.py b/src/serverless_inference_sdk_prod/types/compound_filter.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/compound_filter.py
rename to src/serverless_inference_sdk_prod/types/compound_filter.py
diff --git a/src/digitalocean_genai_sdk/types/compound_filter_param.py b/src/serverless_inference_sdk_prod/types/compound_filter_param.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/compound_filter_param.py
rename to src/serverless_inference_sdk_prod/types/compound_filter_param.py
diff --git a/src/digitalocean_genai_sdk/types/computer_tool_call.py b/src/serverless_inference_sdk_prod/types/computer_tool_call.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/computer_tool_call.py
rename to src/serverless_inference_sdk_prod/types/computer_tool_call.py
diff --git a/src/digitalocean_genai_sdk/types/computer_tool_call_output.py b/src/serverless_inference_sdk_prod/types/computer_tool_call_output.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/computer_tool_call_output.py
rename to src/serverless_inference_sdk_prod/types/computer_tool_call_output.py
diff --git a/src/digitalocean_genai_sdk/types/computer_tool_call_output_param.py b/src/serverless_inference_sdk_prod/types/computer_tool_call_output_param.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/computer_tool_call_output_param.py
rename to src/serverless_inference_sdk_prod/types/computer_tool_call_output_param.py
diff --git a/src/digitalocean_genai_sdk/types/computer_tool_call_param.py b/src/serverless_inference_sdk_prod/types/computer_tool_call_param.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/computer_tool_call_param.py
rename to src/serverless_inference_sdk_prod/types/computer_tool_call_param.py
diff --git a/src/digitalocean_genai_sdk/types/computer_tool_call_safety_check.py b/src/serverless_inference_sdk_prod/types/computer_tool_call_safety_check.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/computer_tool_call_safety_check.py
rename to src/serverless_inference_sdk_prod/types/computer_tool_call_safety_check.py
diff --git a/src/digitalocean_genai_sdk/types/computer_tool_call_safety_check_param.py b/src/serverless_inference_sdk_prod/types/computer_tool_call_safety_check_param.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/computer_tool_call_safety_check_param.py
rename to src/serverless_inference_sdk_prod/types/computer_tool_call_safety_check_param.py
diff --git a/src/digitalocean_genai_sdk/types/create_thread_request_param.py b/src/serverless_inference_sdk_prod/types/create_thread_request_param.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/create_thread_request_param.py
rename to src/serverless_inference_sdk_prod/types/create_thread_request_param.py
diff --git a/src/digitalocean_genai_sdk/types/embedding_create_params.py b/src/serverless_inference_sdk_prod/types/embedding_create_params.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/embedding_create_params.py
rename to src/serverless_inference_sdk_prod/types/embedding_create_params.py
diff --git a/src/digitalocean_genai_sdk/types/embedding_create_response.py b/src/serverless_inference_sdk_prod/types/embedding_create_response.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/embedding_create_response.py
rename to src/serverless_inference_sdk_prod/types/embedding_create_response.py
diff --git a/src/digitalocean_genai_sdk/types/file_delete_response.py b/src/serverless_inference_sdk_prod/types/file_delete_response.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/file_delete_response.py
rename to src/serverless_inference_sdk_prod/types/file_delete_response.py
diff --git a/src/digitalocean_genai_sdk/types/file_list_params.py b/src/serverless_inference_sdk_prod/types/file_list_params.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/file_list_params.py
rename to src/serverless_inference_sdk_prod/types/file_list_params.py
diff --git a/src/digitalocean_genai_sdk/types/file_list_response.py b/src/serverless_inference_sdk_prod/types/file_list_response.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/file_list_response.py
rename to src/serverless_inference_sdk_prod/types/file_list_response.py
diff --git a/src/digitalocean_genai_sdk/types/file_retrieve_content_response.py b/src/serverless_inference_sdk_prod/types/file_retrieve_content_response.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/file_retrieve_content_response.py
rename to src/serverless_inference_sdk_prod/types/file_retrieve_content_response.py
diff --git a/src/digitalocean_genai_sdk/types/file_search_ranker.py b/src/serverless_inference_sdk_prod/types/file_search_ranker.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/file_search_ranker.py
rename to src/serverless_inference_sdk_prod/types/file_search_ranker.py
diff --git a/src/digitalocean_genai_sdk/types/file_search_tool_call.py b/src/serverless_inference_sdk_prod/types/file_search_tool_call.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/file_search_tool_call.py
rename to src/serverless_inference_sdk_prod/types/file_search_tool_call.py
diff --git a/src/digitalocean_genai_sdk/types/file_search_tool_call_param.py b/src/serverless_inference_sdk_prod/types/file_search_tool_call_param.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/file_search_tool_call_param.py
rename to src/serverless_inference_sdk_prod/types/file_search_tool_call_param.py
diff --git a/src/digitalocean_genai_sdk/types/file_upload_params.py b/src/serverless_inference_sdk_prod/types/file_upload_params.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/file_upload_params.py
rename to src/serverless_inference_sdk_prod/types/file_upload_params.py
diff --git a/src/digitalocean_genai_sdk/types/fine_tuning/__init__.py b/src/serverless_inference_sdk_prod/types/fine_tuning/__init__.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/fine_tuning/__init__.py
rename to src/serverless_inference_sdk_prod/types/fine_tuning/__init__.py
diff --git a/src/digitalocean_genai_sdk/types/fine_tuning/checkpoints/__init__.py b/src/serverless_inference_sdk_prod/types/fine_tuning/checkpoints/__init__.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/fine_tuning/checkpoints/__init__.py
rename to src/serverless_inference_sdk_prod/types/fine_tuning/checkpoints/__init__.py
diff --git a/src/digitalocean_genai_sdk/types/fine_tuning/checkpoints/list_fine_tuning_checkpoint_permission.py b/src/serverless_inference_sdk_prod/types/fine_tuning/checkpoints/list_fine_tuning_checkpoint_permission.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/fine_tuning/checkpoints/list_fine_tuning_checkpoint_permission.py
rename to src/serverless_inference_sdk_prod/types/fine_tuning/checkpoints/list_fine_tuning_checkpoint_permission.py
diff --git a/src/digitalocean_genai_sdk/types/fine_tuning/checkpoints/permission_create_params.py b/src/serverless_inference_sdk_prod/types/fine_tuning/checkpoints/permission_create_params.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/fine_tuning/checkpoints/permission_create_params.py
rename to src/serverless_inference_sdk_prod/types/fine_tuning/checkpoints/permission_create_params.py
diff --git a/src/digitalocean_genai_sdk/types/fine_tuning/checkpoints/permission_delete_response.py b/src/serverless_inference_sdk_prod/types/fine_tuning/checkpoints/permission_delete_response.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/fine_tuning/checkpoints/permission_delete_response.py
rename to src/serverless_inference_sdk_prod/types/fine_tuning/checkpoints/permission_delete_response.py
diff --git a/src/digitalocean_genai_sdk/types/fine_tuning/checkpoints/permission_retrieve_params.py b/src/serverless_inference_sdk_prod/types/fine_tuning/checkpoints/permission_retrieve_params.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/fine_tuning/checkpoints/permission_retrieve_params.py
rename to src/serverless_inference_sdk_prod/types/fine_tuning/checkpoints/permission_retrieve_params.py
diff --git a/src/digitalocean_genai_sdk/types/fine_tuning/fine_tune_method.py b/src/serverless_inference_sdk_prod/types/fine_tuning/fine_tune_method.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/fine_tuning/fine_tune_method.py
rename to src/serverless_inference_sdk_prod/types/fine_tuning/fine_tune_method.py
diff --git a/src/digitalocean_genai_sdk/types/fine_tuning/fine_tune_method_param.py b/src/serverless_inference_sdk_prod/types/fine_tuning/fine_tune_method_param.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/fine_tuning/fine_tune_method_param.py
rename to src/serverless_inference_sdk_prod/types/fine_tuning/fine_tune_method_param.py
diff --git a/src/digitalocean_genai_sdk/types/fine_tuning/fine_tuning_job.py b/src/serverless_inference_sdk_prod/types/fine_tuning/fine_tuning_job.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/fine_tuning/fine_tuning_job.py
rename to src/serverless_inference_sdk_prod/types/fine_tuning/fine_tuning_job.py
diff --git a/src/digitalocean_genai_sdk/types/fine_tuning/job_create_params.py b/src/serverless_inference_sdk_prod/types/fine_tuning/job_create_params.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/fine_tuning/job_create_params.py
rename to src/serverless_inference_sdk_prod/types/fine_tuning/job_create_params.py
diff --git a/src/digitalocean_genai_sdk/types/fine_tuning/job_list_params.py b/src/serverless_inference_sdk_prod/types/fine_tuning/job_list_params.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/fine_tuning/job_list_params.py
rename to src/serverless_inference_sdk_prod/types/fine_tuning/job_list_params.py
diff --git a/src/digitalocean_genai_sdk/types/fine_tuning/job_list_response.py b/src/serverless_inference_sdk_prod/types/fine_tuning/job_list_response.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/fine_tuning/job_list_response.py
rename to src/serverless_inference_sdk_prod/types/fine_tuning/job_list_response.py
diff --git a/src/digitalocean_genai_sdk/types/fine_tuning/jobs/__init__.py b/src/serverless_inference_sdk_prod/types/fine_tuning/jobs/__init__.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/fine_tuning/jobs/__init__.py
rename to src/serverless_inference_sdk_prod/types/fine_tuning/jobs/__init__.py
diff --git a/src/digitalocean_genai_sdk/types/fine_tuning/jobs/checkpoint_retrieve_params.py b/src/serverless_inference_sdk_prod/types/fine_tuning/jobs/checkpoint_retrieve_params.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/fine_tuning/jobs/checkpoint_retrieve_params.py
rename to src/serverless_inference_sdk_prod/types/fine_tuning/jobs/checkpoint_retrieve_params.py
diff --git a/src/digitalocean_genai_sdk/types/fine_tuning/jobs/checkpoint_retrieve_response.py b/src/serverless_inference_sdk_prod/types/fine_tuning/jobs/checkpoint_retrieve_response.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/fine_tuning/jobs/checkpoint_retrieve_response.py
rename to src/serverless_inference_sdk_prod/types/fine_tuning/jobs/checkpoint_retrieve_response.py
diff --git a/src/digitalocean_genai_sdk/types/fine_tuning/jobs/event_retrieve_params.py b/src/serverless_inference_sdk_prod/types/fine_tuning/jobs/event_retrieve_params.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/fine_tuning/jobs/event_retrieve_params.py
rename to src/serverless_inference_sdk_prod/types/fine_tuning/jobs/event_retrieve_params.py
diff --git a/src/digitalocean_genai_sdk/types/fine_tuning/jobs/event_retrieve_response.py b/src/serverless_inference_sdk_prod/types/fine_tuning/jobs/event_retrieve_response.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/fine_tuning/jobs/event_retrieve_response.py
rename to src/serverless_inference_sdk_prod/types/fine_tuning/jobs/event_retrieve_response.py
diff --git a/src/digitalocean_genai_sdk/types/function_object.py b/src/serverless_inference_sdk_prod/types/function_object.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/function_object.py
rename to src/serverless_inference_sdk_prod/types/function_object.py
diff --git a/src/digitalocean_genai_sdk/types/function_object_param.py b/src/serverless_inference_sdk_prod/types/function_object_param.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/function_object_param.py
rename to src/serverless_inference_sdk_prod/types/function_object_param.py
diff --git a/src/digitalocean_genai_sdk/types/function_tool_call.py b/src/serverless_inference_sdk_prod/types/function_tool_call.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/function_tool_call.py
rename to src/serverless_inference_sdk_prod/types/function_tool_call.py
diff --git a/src/digitalocean_genai_sdk/types/function_tool_call_output.py b/src/serverless_inference_sdk_prod/types/function_tool_call_output.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/function_tool_call_output.py
rename to src/serverless_inference_sdk_prod/types/function_tool_call_output.py
diff --git a/src/digitalocean_genai_sdk/types/function_tool_call_output_param.py b/src/serverless_inference_sdk_prod/types/function_tool_call_output_param.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/function_tool_call_output_param.py
rename to src/serverless_inference_sdk_prod/types/function_tool_call_output_param.py
diff --git a/src/digitalocean_genai_sdk/types/function_tool_call_param.py b/src/serverless_inference_sdk_prod/types/function_tool_call_param.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/function_tool_call_param.py
rename to src/serverless_inference_sdk_prod/types/function_tool_call_param.py
diff --git a/src/digitalocean_genai_sdk/types/image_create_edit_params.py b/src/serverless_inference_sdk_prod/types/image_create_edit_params.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/image_create_edit_params.py
rename to src/serverless_inference_sdk_prod/types/image_create_edit_params.py
diff --git a/src/digitalocean_genai_sdk/types/image_create_generation_params.py b/src/serverless_inference_sdk_prod/types/image_create_generation_params.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/image_create_generation_params.py
rename to src/serverless_inference_sdk_prod/types/image_create_generation_params.py
diff --git a/src/digitalocean_genai_sdk/types/image_create_variation_params.py b/src/serverless_inference_sdk_prod/types/image_create_variation_params.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/image_create_variation_params.py
rename to src/serverless_inference_sdk_prod/types/image_create_variation_params.py
diff --git a/src/digitalocean_genai_sdk/types/images_response.py b/src/serverless_inference_sdk_prod/types/images_response.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/images_response.py
rename to src/serverless_inference_sdk_prod/types/images_response.py
diff --git a/src/digitalocean_genai_sdk/types/includable.py b/src/serverless_inference_sdk_prod/types/includable.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/includable.py
rename to src/serverless_inference_sdk_prod/types/includable.py
diff --git a/src/digitalocean_genai_sdk/types/input_content.py b/src/serverless_inference_sdk_prod/types/input_content.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/input_content.py
rename to src/serverless_inference_sdk_prod/types/input_content.py
diff --git a/src/digitalocean_genai_sdk/types/input_content_param.py b/src/serverless_inference_sdk_prod/types/input_content_param.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/input_content_param.py
rename to src/serverless_inference_sdk_prod/types/input_content_param.py
diff --git a/src/digitalocean_genai_sdk/types/input_message.py b/src/serverless_inference_sdk_prod/types/input_message.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/input_message.py
rename to src/serverless_inference_sdk_prod/types/input_message.py
diff --git a/src/digitalocean_genai_sdk/types/input_message_param.py b/src/serverless_inference_sdk_prod/types/input_message_param.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/input_message_param.py
rename to src/serverless_inference_sdk_prod/types/input_message_param.py
diff --git a/src/digitalocean_genai_sdk/types/model.py b/src/serverless_inference_sdk_prod/types/model.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/model.py
rename to src/serverless_inference_sdk_prod/types/model.py
diff --git a/src/digitalocean_genai_sdk/types/model_delete_response.py b/src/serverless_inference_sdk_prod/types/model_delete_response.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/model_delete_response.py
rename to src/serverless_inference_sdk_prod/types/model_delete_response.py
diff --git a/src/digitalocean_genai_sdk/types/model_list_response.py b/src/serverless_inference_sdk_prod/types/model_list_response.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/model_list_response.py
rename to src/serverless_inference_sdk_prod/types/model_list_response.py
diff --git a/src/digitalocean_genai_sdk/types/model_response_properties.py b/src/serverless_inference_sdk_prod/types/model_response_properties.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/model_response_properties.py
rename to src/serverless_inference_sdk_prod/types/model_response_properties.py
diff --git a/src/digitalocean_genai_sdk/types/moderation_classify_params.py b/src/serverless_inference_sdk_prod/types/moderation_classify_params.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/moderation_classify_params.py
rename to src/serverless_inference_sdk_prod/types/moderation_classify_params.py
diff --git a/src/digitalocean_genai_sdk/types/moderation_classify_response.py b/src/serverless_inference_sdk_prod/types/moderation_classify_response.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/moderation_classify_response.py
rename to src/serverless_inference_sdk_prod/types/moderation_classify_response.py
diff --git a/src/digitalocean_genai_sdk/types/openai_file.py b/src/serverless_inference_sdk_prod/types/openai_file.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/openai_file.py
rename to src/serverless_inference_sdk_prod/types/openai_file.py
diff --git a/src/digitalocean_genai_sdk/types/organization/__init__.py b/src/serverless_inference_sdk_prod/types/organization/__init__.py
similarity index 97%
rename from src/digitalocean_genai_sdk/types/organization/__init__.py
rename to src/serverless_inference_sdk_prod/types/organization/__init__.py
index 5b34f495..69c6e575 100644
--- a/src/digitalocean_genai_sdk/types/organization/__init__.py
+++ b/src/serverless_inference_sdk_prod/types/organization/__init__.py
@@ -2,11 +2,11 @@
from __future__ import annotations
+from .user import User as User
from .invite import Invite as Invite
from .project import Project as Project
from .admin_api_key import AdminAPIKey as AdminAPIKey
from .user_list_params import UserListParams as UserListParams
-from .organization_user import OrganizationUser as OrganizationUser
from .invite_list_params import InviteListParams as InviteListParams
from .user_list_response import UserListResponse as UserListResponse
from .user_update_params import UserUpdateParams as UserUpdateParams
diff --git a/src/digitalocean_genai_sdk/types/organization/admin_api_key.py b/src/serverless_inference_sdk_prod/types/organization/admin_api_key.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/organization/admin_api_key.py
rename to src/serverless_inference_sdk_prod/types/organization/admin_api_key.py
diff --git a/src/digitalocean_genai_sdk/types/organization/admin_api_key_create_params.py b/src/serverless_inference_sdk_prod/types/organization/admin_api_key_create_params.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/organization/admin_api_key_create_params.py
rename to src/serverless_inference_sdk_prod/types/organization/admin_api_key_create_params.py
diff --git a/src/digitalocean_genai_sdk/types/organization/admin_api_key_delete_response.py b/src/serverless_inference_sdk_prod/types/organization/admin_api_key_delete_response.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/organization/admin_api_key_delete_response.py
rename to src/serverless_inference_sdk_prod/types/organization/admin_api_key_delete_response.py
diff --git a/src/digitalocean_genai_sdk/types/organization/admin_api_key_list_params.py b/src/serverless_inference_sdk_prod/types/organization/admin_api_key_list_params.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/organization/admin_api_key_list_params.py
rename to src/serverless_inference_sdk_prod/types/organization/admin_api_key_list_params.py
diff --git a/src/digitalocean_genai_sdk/types/organization/admin_api_key_list_response.py b/src/serverless_inference_sdk_prod/types/organization/admin_api_key_list_response.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/organization/admin_api_key_list_response.py
rename to src/serverless_inference_sdk_prod/types/organization/admin_api_key_list_response.py
diff --git a/src/digitalocean_genai_sdk/types/organization/invite.py b/src/serverless_inference_sdk_prod/types/organization/invite.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/organization/invite.py
rename to src/serverless_inference_sdk_prod/types/organization/invite.py
diff --git a/src/digitalocean_genai_sdk/types/organization/invite_create_params.py b/src/serverless_inference_sdk_prod/types/organization/invite_create_params.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/organization/invite_create_params.py
rename to src/serverless_inference_sdk_prod/types/organization/invite_create_params.py
diff --git a/src/digitalocean_genai_sdk/types/organization/invite_delete_response.py b/src/serverless_inference_sdk_prod/types/organization/invite_delete_response.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/organization/invite_delete_response.py
rename to src/serverless_inference_sdk_prod/types/organization/invite_delete_response.py
diff --git a/src/digitalocean_genai_sdk/types/organization/invite_list_params.py b/src/serverless_inference_sdk_prod/types/organization/invite_list_params.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/organization/invite_list_params.py
rename to src/serverless_inference_sdk_prod/types/organization/invite_list_params.py
diff --git a/src/digitalocean_genai_sdk/types/organization/invite_list_response.py b/src/serverless_inference_sdk_prod/types/organization/invite_list_response.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/organization/invite_list_response.py
rename to src/serverless_inference_sdk_prod/types/organization/invite_list_response.py
diff --git a/src/digitalocean_genai_sdk/types/organization/project.py b/src/serverless_inference_sdk_prod/types/organization/project.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/organization/project.py
rename to src/serverless_inference_sdk_prod/types/organization/project.py
diff --git a/src/digitalocean_genai_sdk/types/organization/project_create_params.py b/src/serverless_inference_sdk_prod/types/organization/project_create_params.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/organization/project_create_params.py
rename to src/serverless_inference_sdk_prod/types/organization/project_create_params.py
diff --git a/src/digitalocean_genai_sdk/types/organization/project_list_params.py b/src/serverless_inference_sdk_prod/types/organization/project_list_params.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/organization/project_list_params.py
rename to src/serverless_inference_sdk_prod/types/organization/project_list_params.py
diff --git a/src/digitalocean_genai_sdk/types/organization/project_list_response.py b/src/serverless_inference_sdk_prod/types/organization/project_list_response.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/organization/project_list_response.py
rename to src/serverless_inference_sdk_prod/types/organization/project_list_response.py
diff --git a/src/digitalocean_genai_sdk/types/organization/project_update_params.py b/src/serverless_inference_sdk_prod/types/organization/project_update_params.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/organization/project_update_params.py
rename to src/serverless_inference_sdk_prod/types/organization/project_update_params.py
diff --git a/src/digitalocean_genai_sdk/types/organization/projects/__init__.py b/src/serverless_inference_sdk_prod/types/organization/projects/__init__.py
similarity index 87%
rename from src/digitalocean_genai_sdk/types/organization/projects/__init__.py
rename to src/serverless_inference_sdk_prod/types/organization/projects/__init__.py
index 4b0e0f9b..5fd9185d 100644
--- a/src/digitalocean_genai_sdk/types/organization/projects/__init__.py
+++ b/src/serverless_inference_sdk_prod/types/organization/projects/__init__.py
@@ -2,12 +2,11 @@
from __future__ import annotations
-from .api_key import APIKey as APIKey
-from .rate_limit import RateLimit as RateLimit
from .project_user import ProjectUser as ProjectUser
-from .service_account import ServiceAccount as ServiceAccount
+from .project_api_key import ProjectAPIKey as ProjectAPIKey
from .user_add_params import UserAddParams as UserAddParams
from .user_list_params import UserListParams as UserListParams
+from .project_rate_limit import ProjectRateLimit as ProjectRateLimit
from .user_list_response import UserListResponse as UserListResponse
from .user_update_params import UserUpdateParams as UserUpdateParams
from .api_key_list_params import APIKeyListParams as APIKeyListParams
@@ -15,6 +14,7 @@
from .api_key_list_response import APIKeyListResponse as APIKeyListResponse
from .rate_limit_list_params import RateLimitListParams as RateLimitListParams
from .api_key_delete_response import APIKeyDeleteResponse as APIKeyDeleteResponse
+from .project_service_account import ProjectServiceAccount as ProjectServiceAccount
from .rate_limit_list_response import RateLimitListResponse as RateLimitListResponse
from .rate_limit_update_params import RateLimitUpdateParams as RateLimitUpdateParams
from .service_account_list_params import ServiceAccountListParams as ServiceAccountListParams
diff --git a/src/digitalocean_genai_sdk/types/organization/projects/api_key_delete_response.py b/src/serverless_inference_sdk_prod/types/organization/projects/api_key_delete_response.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/organization/projects/api_key_delete_response.py
rename to src/serverless_inference_sdk_prod/types/organization/projects/api_key_delete_response.py
diff --git a/src/digitalocean_genai_sdk/types/organization/projects/api_key_list_params.py b/src/serverless_inference_sdk_prod/types/organization/projects/api_key_list_params.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/organization/projects/api_key_list_params.py
rename to src/serverless_inference_sdk_prod/types/organization/projects/api_key_list_params.py
diff --git a/src/digitalocean_genai_sdk/types/organization/projects/api_key_list_response.py b/src/serverless_inference_sdk_prod/types/organization/projects/api_key_list_response.py
similarity index 82%
rename from src/digitalocean_genai_sdk/types/organization/projects/api_key_list_response.py
rename to src/serverless_inference_sdk_prod/types/organization/projects/api_key_list_response.py
index 669de6c6..1d3b0ba6 100644
--- a/src/digitalocean_genai_sdk/types/organization/projects/api_key_list_response.py
+++ b/src/serverless_inference_sdk_prod/types/organization/projects/api_key_list_response.py
@@ -3,14 +3,14 @@
from typing import List
from typing_extensions import Literal
-from .api_key import APIKey
from ...._models import BaseModel
+from .project_api_key import ProjectAPIKey
__all__ = ["APIKeyListResponse"]
class APIKeyListResponse(BaseModel):
- data: List[APIKey]
+ data: List[ProjectAPIKey]
first_id: str
diff --git a/src/digitalocean_genai_sdk/types/organization/projects/api_key.py b/src/serverless_inference_sdk_prod/types/organization/projects/project_api_key.py
similarity index 83%
rename from src/digitalocean_genai_sdk/types/organization/projects/api_key.py
rename to src/serverless_inference_sdk_prod/types/organization/projects/project_api_key.py
index 276f6d9b..2c7522a6 100644
--- a/src/digitalocean_genai_sdk/types/organization/projects/api_key.py
+++ b/src/serverless_inference_sdk_prod/types/organization/projects/project_api_key.py
@@ -5,13 +5,13 @@
from ...._models import BaseModel
from .project_user import ProjectUser
-from .service_account import ServiceAccount
+from .project_service_account import ProjectServiceAccount
-__all__ = ["APIKey", "Owner"]
+__all__ = ["ProjectAPIKey", "Owner"]
class Owner(BaseModel):
- service_account: Optional[ServiceAccount] = None
+ service_account: Optional[ProjectServiceAccount] = None
"""Represents an individual service account in a project."""
type: Optional[Literal["user", "service_account"]] = None
@@ -21,7 +21,7 @@ class Owner(BaseModel):
"""Represents an individual user in a project."""
-class APIKey(BaseModel):
+class ProjectAPIKey(BaseModel):
id: str
"""The identifier, which can be referenced in API endpoints"""
diff --git a/src/digitalocean_genai_sdk/types/organization/projects/rate_limit.py b/src/serverless_inference_sdk_prod/types/organization/projects/project_rate_limit.py
similarity index 94%
rename from src/digitalocean_genai_sdk/types/organization/projects/rate_limit.py
rename to src/serverless_inference_sdk_prod/types/organization/projects/project_rate_limit.py
index 1a9795f5..5db865ea 100644
--- a/src/digitalocean_genai_sdk/types/organization/projects/rate_limit.py
+++ b/src/serverless_inference_sdk_prod/types/organization/projects/project_rate_limit.py
@@ -5,10 +5,10 @@
from ...._models import BaseModel
-__all__ = ["RateLimit"]
+__all__ = ["ProjectRateLimit"]
-class RateLimit(BaseModel):
+class ProjectRateLimit(BaseModel):
id: str
"""The identifier, which can be referenced in API endpoints."""
diff --git a/src/digitalocean_genai_sdk/types/organization/projects/service_account.py b/src/serverless_inference_sdk_prod/types/organization/projects/project_service_account.py
similarity index 88%
rename from src/digitalocean_genai_sdk/types/organization/projects/service_account.py
rename to src/serverless_inference_sdk_prod/types/organization/projects/project_service_account.py
index 9200ba11..369b3df3 100644
--- a/src/digitalocean_genai_sdk/types/organization/projects/service_account.py
+++ b/src/serverless_inference_sdk_prod/types/organization/projects/project_service_account.py
@@ -4,10 +4,10 @@
from ...._models import BaseModel
-__all__ = ["ServiceAccount"]
+__all__ = ["ProjectServiceAccount"]
-class ServiceAccount(BaseModel):
+class ProjectServiceAccount(BaseModel):
id: str
"""The identifier, which can be referenced in API endpoints"""
diff --git a/src/digitalocean_genai_sdk/types/organization/projects/project_user.py b/src/serverless_inference_sdk_prod/types/organization/projects/project_user.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/organization/projects/project_user.py
rename to src/serverless_inference_sdk_prod/types/organization/projects/project_user.py
diff --git a/src/digitalocean_genai_sdk/types/organization/projects/rate_limit_list_params.py b/src/serverless_inference_sdk_prod/types/organization/projects/rate_limit_list_params.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/organization/projects/rate_limit_list_params.py
rename to src/serverless_inference_sdk_prod/types/organization/projects/rate_limit_list_params.py
diff --git a/src/digitalocean_genai_sdk/types/organization/projects/rate_limit_list_response.py b/src/serverless_inference_sdk_prod/types/organization/projects/rate_limit_list_response.py
similarity index 80%
rename from src/digitalocean_genai_sdk/types/organization/projects/rate_limit_list_response.py
rename to src/serverless_inference_sdk_prod/types/organization/projects/rate_limit_list_response.py
index f2133f3e..98f3d8b1 100644
--- a/src/digitalocean_genai_sdk/types/organization/projects/rate_limit_list_response.py
+++ b/src/serverless_inference_sdk_prod/types/organization/projects/rate_limit_list_response.py
@@ -4,13 +4,13 @@
from typing_extensions import Literal
from ...._models import BaseModel
-from .rate_limit import RateLimit
+from .project_rate_limit import ProjectRateLimit
__all__ = ["RateLimitListResponse"]
class RateLimitListResponse(BaseModel):
- data: List[RateLimit]
+ data: List[ProjectRateLimit]
first_id: str
diff --git a/src/digitalocean_genai_sdk/types/organization/projects/rate_limit_update_params.py b/src/serverless_inference_sdk_prod/types/organization/projects/rate_limit_update_params.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/organization/projects/rate_limit_update_params.py
rename to src/serverless_inference_sdk_prod/types/organization/projects/rate_limit_update_params.py
diff --git a/src/digitalocean_genai_sdk/types/organization/projects/service_account_create_params.py b/src/serverless_inference_sdk_prod/types/organization/projects/service_account_create_params.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/organization/projects/service_account_create_params.py
rename to src/serverless_inference_sdk_prod/types/organization/projects/service_account_create_params.py
diff --git a/src/digitalocean_genai_sdk/types/organization/projects/service_account_create_response.py b/src/serverless_inference_sdk_prod/types/organization/projects/service_account_create_response.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/organization/projects/service_account_create_response.py
rename to src/serverless_inference_sdk_prod/types/organization/projects/service_account_create_response.py
diff --git a/src/digitalocean_genai_sdk/types/organization/projects/service_account_delete_response.py b/src/serverless_inference_sdk_prod/types/organization/projects/service_account_delete_response.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/organization/projects/service_account_delete_response.py
rename to src/serverless_inference_sdk_prod/types/organization/projects/service_account_delete_response.py
diff --git a/src/digitalocean_genai_sdk/types/organization/projects/service_account_list_params.py b/src/serverless_inference_sdk_prod/types/organization/projects/service_account_list_params.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/organization/projects/service_account_list_params.py
rename to src/serverless_inference_sdk_prod/types/organization/projects/service_account_list_params.py
diff --git a/src/digitalocean_genai_sdk/types/organization/projects/service_account_list_response.py b/src/serverless_inference_sdk_prod/types/organization/projects/service_account_list_response.py
similarity index 78%
rename from src/digitalocean_genai_sdk/types/organization/projects/service_account_list_response.py
rename to src/serverless_inference_sdk_prod/types/organization/projects/service_account_list_response.py
index 0818c8c8..33d04cbc 100644
--- a/src/digitalocean_genai_sdk/types/organization/projects/service_account_list_response.py
+++ b/src/serverless_inference_sdk_prod/types/organization/projects/service_account_list_response.py
@@ -4,13 +4,13 @@
from typing_extensions import Literal
from ...._models import BaseModel
-from .service_account import ServiceAccount
+from .project_service_account import ProjectServiceAccount
__all__ = ["ServiceAccountListResponse"]
class ServiceAccountListResponse(BaseModel):
- data: List[ServiceAccount]
+ data: List[ProjectServiceAccount]
first_id: str
diff --git a/src/digitalocean_genai_sdk/types/organization/projects/user_add_params.py b/src/serverless_inference_sdk_prod/types/organization/projects/user_add_params.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/organization/projects/user_add_params.py
rename to src/serverless_inference_sdk_prod/types/organization/projects/user_add_params.py
diff --git a/src/digitalocean_genai_sdk/types/organization/projects/user_delete_response.py b/src/serverless_inference_sdk_prod/types/organization/projects/user_delete_response.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/organization/projects/user_delete_response.py
rename to src/serverless_inference_sdk_prod/types/organization/projects/user_delete_response.py
diff --git a/src/digitalocean_genai_sdk/types/organization/projects/user_list_params.py b/src/serverless_inference_sdk_prod/types/organization/projects/user_list_params.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/organization/projects/user_list_params.py
rename to src/serverless_inference_sdk_prod/types/organization/projects/user_list_params.py
diff --git a/src/digitalocean_genai_sdk/types/organization/projects/user_list_response.py b/src/serverless_inference_sdk_prod/types/organization/projects/user_list_response.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/organization/projects/user_list_response.py
rename to src/serverless_inference_sdk_prod/types/organization/projects/user_list_response.py
diff --git a/src/digitalocean_genai_sdk/types/organization/projects/user_update_params.py b/src/serverless_inference_sdk_prod/types/organization/projects/user_update_params.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/organization/projects/user_update_params.py
rename to src/serverless_inference_sdk_prod/types/organization/projects/user_update_params.py
diff --git a/src/digitalocean_genai_sdk/types/organization/usage_audio_speeches_params.py b/src/serverless_inference_sdk_prod/types/organization/usage_audio_speeches_params.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/organization/usage_audio_speeches_params.py
rename to src/serverless_inference_sdk_prod/types/organization/usage_audio_speeches_params.py
diff --git a/src/digitalocean_genai_sdk/types/organization/usage_audio_transcriptions_params.py b/src/serverless_inference_sdk_prod/types/organization/usage_audio_transcriptions_params.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/organization/usage_audio_transcriptions_params.py
rename to src/serverless_inference_sdk_prod/types/organization/usage_audio_transcriptions_params.py
diff --git a/src/digitalocean_genai_sdk/types/organization/usage_code_interpreter_sessions_params.py b/src/serverless_inference_sdk_prod/types/organization/usage_code_interpreter_sessions_params.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/organization/usage_code_interpreter_sessions_params.py
rename to src/serverless_inference_sdk_prod/types/organization/usage_code_interpreter_sessions_params.py
diff --git a/src/digitalocean_genai_sdk/types/organization/usage_completions_params.py b/src/serverless_inference_sdk_prod/types/organization/usage_completions_params.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/organization/usage_completions_params.py
rename to src/serverless_inference_sdk_prod/types/organization/usage_completions_params.py
diff --git a/src/digitalocean_genai_sdk/types/organization/usage_embeddings_params.py b/src/serverless_inference_sdk_prod/types/organization/usage_embeddings_params.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/organization/usage_embeddings_params.py
rename to src/serverless_inference_sdk_prod/types/organization/usage_embeddings_params.py
diff --git a/src/digitalocean_genai_sdk/types/organization/usage_images_params.py b/src/serverless_inference_sdk_prod/types/organization/usage_images_params.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/organization/usage_images_params.py
rename to src/serverless_inference_sdk_prod/types/organization/usage_images_params.py
diff --git a/src/digitalocean_genai_sdk/types/organization/usage_moderations_params.py b/src/serverless_inference_sdk_prod/types/organization/usage_moderations_params.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/organization/usage_moderations_params.py
rename to src/serverless_inference_sdk_prod/types/organization/usage_moderations_params.py
diff --git a/src/digitalocean_genai_sdk/types/organization/usage_vector_stores_params.py b/src/serverless_inference_sdk_prod/types/organization/usage_vector_stores_params.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/organization/usage_vector_stores_params.py
rename to src/serverless_inference_sdk_prod/types/organization/usage_vector_stores_params.py
diff --git a/src/digitalocean_genai_sdk/types/organization/organization_user.py b/src/serverless_inference_sdk_prod/types/organization/user.py
similarity index 90%
rename from src/digitalocean_genai_sdk/types/organization/organization_user.py
rename to src/serverless_inference_sdk_prod/types/organization/user.py
index 890833f1..ae407ac3 100644
--- a/src/digitalocean_genai_sdk/types/organization/organization_user.py
+++ b/src/serverless_inference_sdk_prod/types/organization/user.py
@@ -4,10 +4,10 @@
from ..._models import BaseModel
-__all__ = ["OrganizationUser"]
+__all__ = ["User"]
-class OrganizationUser(BaseModel):
+class User(BaseModel):
id: str
"""The identifier, which can be referenced in API endpoints"""
diff --git a/src/digitalocean_genai_sdk/types/organization/user_delete_response.py b/src/serverless_inference_sdk_prod/types/organization/user_delete_response.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/organization/user_delete_response.py
rename to src/serverless_inference_sdk_prod/types/organization/user_delete_response.py
diff --git a/src/digitalocean_genai_sdk/types/organization/user_list_params.py b/src/serverless_inference_sdk_prod/types/organization/user_list_params.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/organization/user_list_params.py
rename to src/serverless_inference_sdk_prod/types/organization/user_list_params.py
diff --git a/src/digitalocean_genai_sdk/types/organization/user_list_response.py b/src/serverless_inference_sdk_prod/types/organization/user_list_response.py
similarity index 80%
rename from src/digitalocean_genai_sdk/types/organization/user_list_response.py
rename to src/serverless_inference_sdk_prod/types/organization/user_list_response.py
index 73aaf45b..61f927f4 100644
--- a/src/digitalocean_genai_sdk/types/organization/user_list_response.py
+++ b/src/serverless_inference_sdk_prod/types/organization/user_list_response.py
@@ -3,14 +3,14 @@
from typing import List
from typing_extensions import Literal
+from .user import User
from ..._models import BaseModel
-from .organization_user import OrganizationUser
__all__ = ["UserListResponse"]
class UserListResponse(BaseModel):
- data: List[OrganizationUser]
+ data: List[User]
first_id: str
diff --git a/src/digitalocean_genai_sdk/types/organization/user_update_params.py b/src/serverless_inference_sdk_prod/types/organization/user_update_params.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/organization/user_update_params.py
rename to src/serverless_inference_sdk_prod/types/organization/user_update_params.py
diff --git a/src/digitalocean_genai_sdk/types/organization_get_costs_params.py b/src/serverless_inference_sdk_prod/types/organization_get_costs_params.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/organization_get_costs_params.py
rename to src/serverless_inference_sdk_prod/types/organization_get_costs_params.py
diff --git a/src/digitalocean_genai_sdk/types/organization_list_audit_logs_params.py b/src/serverless_inference_sdk_prod/types/organization_list_audit_logs_params.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/organization_list_audit_logs_params.py
rename to src/serverless_inference_sdk_prod/types/organization_list_audit_logs_params.py
diff --git a/src/digitalocean_genai_sdk/types/organization_list_audit_logs_response.py b/src/serverless_inference_sdk_prod/types/organization_list_audit_logs_response.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/organization_list_audit_logs_response.py
rename to src/serverless_inference_sdk_prod/types/organization_list_audit_logs_response.py
diff --git a/src/digitalocean_genai_sdk/types/output_message.py b/src/serverless_inference_sdk_prod/types/output_message.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/output_message.py
rename to src/serverless_inference_sdk_prod/types/output_message.py
diff --git a/src/digitalocean_genai_sdk/types/output_message_param.py b/src/serverless_inference_sdk_prod/types/output_message_param.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/output_message_param.py
rename to src/serverless_inference_sdk_prod/types/output_message_param.py
diff --git a/src/digitalocean_genai_sdk/types/realtime_create_session_params.py b/src/serverless_inference_sdk_prod/types/realtime_create_session_params.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/realtime_create_session_params.py
rename to src/serverless_inference_sdk_prod/types/realtime_create_session_params.py
diff --git a/src/digitalocean_genai_sdk/types/realtime_create_session_response.py b/src/serverless_inference_sdk_prod/types/realtime_create_session_response.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/realtime_create_session_response.py
rename to src/serverless_inference_sdk_prod/types/realtime_create_session_response.py
diff --git a/src/digitalocean_genai_sdk/types/realtime_create_transcription_session_params.py b/src/serverless_inference_sdk_prod/types/realtime_create_transcription_session_params.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/realtime_create_transcription_session_params.py
rename to src/serverless_inference_sdk_prod/types/realtime_create_transcription_session_params.py
diff --git a/src/digitalocean_genai_sdk/types/realtime_create_transcription_session_response.py b/src/serverless_inference_sdk_prod/types/realtime_create_transcription_session_response.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/realtime_create_transcription_session_response.py
rename to src/serverless_inference_sdk_prod/types/realtime_create_transcription_session_response.py
diff --git a/src/digitalocean_genai_sdk/types/reasoning_effort.py b/src/serverless_inference_sdk_prod/types/reasoning_effort.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/reasoning_effort.py
rename to src/serverless_inference_sdk_prod/types/reasoning_effort.py
diff --git a/src/digitalocean_genai_sdk/types/reasoning_item.py b/src/serverless_inference_sdk_prod/types/reasoning_item.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/reasoning_item.py
rename to src/serverless_inference_sdk_prod/types/reasoning_item.py
diff --git a/src/digitalocean_genai_sdk/types/reasoning_item_param.py b/src/serverless_inference_sdk_prod/types/reasoning_item_param.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/reasoning_item_param.py
rename to src/serverless_inference_sdk_prod/types/reasoning_item_param.py
diff --git a/src/digitalocean_genai_sdk/types/response.py b/src/serverless_inference_sdk_prod/types/response.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/response.py
rename to src/serverless_inference_sdk_prod/types/response.py
diff --git a/src/digitalocean_genai_sdk/types/response_create_params.py b/src/serverless_inference_sdk_prod/types/response_create_params.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/response_create_params.py
rename to src/serverless_inference_sdk_prod/types/response_create_params.py
diff --git a/src/digitalocean_genai_sdk/types/response_list_input_items_params.py b/src/serverless_inference_sdk_prod/types/response_list_input_items_params.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/response_list_input_items_params.py
rename to src/serverless_inference_sdk_prod/types/response_list_input_items_params.py
diff --git a/src/digitalocean_genai_sdk/types/response_list_input_items_response.py b/src/serverless_inference_sdk_prod/types/response_list_input_items_response.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/response_list_input_items_response.py
rename to src/serverless_inference_sdk_prod/types/response_list_input_items_response.py
diff --git a/src/digitalocean_genai_sdk/types/response_properties.py b/src/serverless_inference_sdk_prod/types/response_properties.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/response_properties.py
rename to src/serverless_inference_sdk_prod/types/response_properties.py
diff --git a/src/digitalocean_genai_sdk/types/response_retrieve_params.py b/src/serverless_inference_sdk_prod/types/response_retrieve_params.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/response_retrieve_params.py
rename to src/serverless_inference_sdk_prod/types/response_retrieve_params.py
diff --git a/src/digitalocean_genai_sdk/types/static_chunking_strategy.py b/src/serverless_inference_sdk_prod/types/static_chunking_strategy.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/static_chunking_strategy.py
rename to src/serverless_inference_sdk_prod/types/static_chunking_strategy.py
diff --git a/src/digitalocean_genai_sdk/types/static_chunking_strategy_param.py b/src/serverless_inference_sdk_prod/types/static_chunking_strategy_param.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/static_chunking_strategy_param.py
rename to src/serverless_inference_sdk_prod/types/static_chunking_strategy_param.py
diff --git a/src/digitalocean_genai_sdk/types/static_chunking_strategy_request_param.py b/src/serverless_inference_sdk_prod/types/static_chunking_strategy_request_param.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/static_chunking_strategy_request_param.py
rename to src/serverless_inference_sdk_prod/types/static_chunking_strategy_request_param.py
diff --git a/src/digitalocean_genai_sdk/types/stop_configuration_param.py b/src/serverless_inference_sdk_prod/types/stop_configuration_param.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/stop_configuration_param.py
rename to src/serverless_inference_sdk_prod/types/stop_configuration_param.py
diff --git a/src/digitalocean_genai_sdk/types/thread_create_params.py b/src/serverless_inference_sdk_prod/types/thread_create_params.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/thread_create_params.py
rename to src/serverless_inference_sdk_prod/types/thread_create_params.py
diff --git a/src/digitalocean_genai_sdk/types/thread_delete_response.py b/src/serverless_inference_sdk_prod/types/thread_delete_response.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/thread_delete_response.py
rename to src/serverless_inference_sdk_prod/types/thread_delete_response.py
diff --git a/src/digitalocean_genai_sdk/types/thread_object.py b/src/serverless_inference_sdk_prod/types/thread_object.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/thread_object.py
rename to src/serverless_inference_sdk_prod/types/thread_object.py
diff --git a/src/digitalocean_genai_sdk/types/thread_update_params.py b/src/serverless_inference_sdk_prod/types/thread_update_params.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/thread_update_params.py
rename to src/serverless_inference_sdk_prod/types/thread_update_params.py
diff --git a/src/digitalocean_genai_sdk/types/threads/__init__.py b/src/serverless_inference_sdk_prod/types/threads/__init__.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/threads/__init__.py
rename to src/serverless_inference_sdk_prod/types/threads/__init__.py
diff --git a/src/digitalocean_genai_sdk/types/threads/assistant_tools_file_search_type_only.py b/src/serverless_inference_sdk_prod/types/threads/assistant_tools_file_search_type_only.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/threads/assistant_tools_file_search_type_only.py
rename to src/serverless_inference_sdk_prod/types/threads/assistant_tools_file_search_type_only.py
diff --git a/src/digitalocean_genai_sdk/types/threads/assistant_tools_file_search_type_only_param.py b/src/serverless_inference_sdk_prod/types/threads/assistant_tools_file_search_type_only_param.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/threads/assistant_tools_file_search_type_only_param.py
rename to src/serverless_inference_sdk_prod/types/threads/assistant_tools_file_search_type_only_param.py
diff --git a/src/digitalocean_genai_sdk/types/threads/assistants_api_tool_choice_option.py b/src/serverless_inference_sdk_prod/types/threads/assistants_api_tool_choice_option.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/threads/assistants_api_tool_choice_option.py
rename to src/serverless_inference_sdk_prod/types/threads/assistants_api_tool_choice_option.py
diff --git a/src/digitalocean_genai_sdk/types/threads/assistants_api_tool_choice_option_param.py b/src/serverless_inference_sdk_prod/types/threads/assistants_api_tool_choice_option_param.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/threads/assistants_api_tool_choice_option_param.py
rename to src/serverless_inference_sdk_prod/types/threads/assistants_api_tool_choice_option_param.py
diff --git a/src/digitalocean_genai_sdk/types/threads/create_message_request_param.py b/src/serverless_inference_sdk_prod/types/threads/create_message_request_param.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/threads/create_message_request_param.py
rename to src/serverless_inference_sdk_prod/types/threads/create_message_request_param.py
diff --git a/src/digitalocean_genai_sdk/types/threads/message_content_image_file_object.py b/src/serverless_inference_sdk_prod/types/threads/message_content_image_file_object.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/threads/message_content_image_file_object.py
rename to src/serverless_inference_sdk_prod/types/threads/message_content_image_file_object.py
diff --git a/src/digitalocean_genai_sdk/types/threads/message_content_image_file_object_param.py b/src/serverless_inference_sdk_prod/types/threads/message_content_image_file_object_param.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/threads/message_content_image_file_object_param.py
rename to src/serverless_inference_sdk_prod/types/threads/message_content_image_file_object_param.py
diff --git a/src/digitalocean_genai_sdk/types/threads/message_content_image_url_object.py b/src/serverless_inference_sdk_prod/types/threads/message_content_image_url_object.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/threads/message_content_image_url_object.py
rename to src/serverless_inference_sdk_prod/types/threads/message_content_image_url_object.py
diff --git a/src/digitalocean_genai_sdk/types/threads/message_content_image_url_object_param.py b/src/serverless_inference_sdk_prod/types/threads/message_content_image_url_object_param.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/threads/message_content_image_url_object_param.py
rename to src/serverless_inference_sdk_prod/types/threads/message_content_image_url_object_param.py
diff --git a/src/digitalocean_genai_sdk/types/threads/message_create_params.py b/src/serverless_inference_sdk_prod/types/threads/message_create_params.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/threads/message_create_params.py
rename to src/serverless_inference_sdk_prod/types/threads/message_create_params.py
diff --git a/src/digitalocean_genai_sdk/types/threads/message_delete_response.py b/src/serverless_inference_sdk_prod/types/threads/message_delete_response.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/threads/message_delete_response.py
rename to src/serverless_inference_sdk_prod/types/threads/message_delete_response.py
diff --git a/src/digitalocean_genai_sdk/types/threads/message_list_params.py b/src/serverless_inference_sdk_prod/types/threads/message_list_params.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/threads/message_list_params.py
rename to src/serverless_inference_sdk_prod/types/threads/message_list_params.py
diff --git a/src/digitalocean_genai_sdk/types/threads/message_list_response.py b/src/serverless_inference_sdk_prod/types/threads/message_list_response.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/threads/message_list_response.py
rename to src/serverless_inference_sdk_prod/types/threads/message_list_response.py
diff --git a/src/digitalocean_genai_sdk/types/threads/message_object.py b/src/serverless_inference_sdk_prod/types/threads/message_object.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/threads/message_object.py
rename to src/serverless_inference_sdk_prod/types/threads/message_object.py
diff --git a/src/digitalocean_genai_sdk/types/threads/message_update_params.py b/src/serverless_inference_sdk_prod/types/threads/message_update_params.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/threads/message_update_params.py
rename to src/serverless_inference_sdk_prod/types/threads/message_update_params.py
diff --git a/src/digitalocean_genai_sdk/types/threads/run_create_params.py b/src/serverless_inference_sdk_prod/types/threads/run_create_params.py
similarity index 97%
rename from src/digitalocean_genai_sdk/types/threads/run_create_params.py
rename to src/serverless_inference_sdk_prod/types/threads/run_create_params.py
index 43d0611a..3322ce9f 100644
--- a/src/digitalocean_genai_sdk/types/threads/run_create_params.py
+++ b/src/serverless_inference_sdk_prod/types/threads/run_create_params.py
@@ -9,9 +9,9 @@
from ..assistant_tools_code_param import AssistantToolsCodeParam
from ..create_thread_request_param import CreateThreadRequestParam
from ..assistant_tools_function_param import AssistantToolsFunctionParam
+from ..api_response_format_option_param import APIResponseFormatOptionParam
from ..assistant_tools_file_search_param import AssistantToolsFileSearchParam
from .assistants_api_tool_choice_option_param import AssistantsAPIToolChoiceOptionParam
-from ..assistants_api_response_format_option_param import AssistantsAPIResponseFormatOptionParam
__all__ = ["RunCreateParams", "ToolResources", "ToolResourcesCodeInterpreter", "ToolResourcesFileSearch", "Tool"]
@@ -103,7 +103,7 @@ class RunCreateParams(TypedDict, total=False):
during tool use.
"""
- response_format: Optional[AssistantsAPIResponseFormatOptionParam]
+ response_format: Optional[APIResponseFormatOptionParam]
"""Specifies the format that the model must output.
Compatible with [GPT-4o](/docs/models#gpt-4o),
diff --git a/src/digitalocean_genai_sdk/types/threads/run_create_run_params.py b/src/serverless_inference_sdk_prod/types/threads/run_create_run_params.py
similarity index 97%
rename from src/digitalocean_genai_sdk/types/threads/run_create_run_params.py
rename to src/serverless_inference_sdk_prod/types/threads/run_create_run_params.py
index 694c7eea..fec5a51c 100644
--- a/src/digitalocean_genai_sdk/types/threads/run_create_run_params.py
+++ b/src/serverless_inference_sdk_prod/types/threads/run_create_run_params.py
@@ -11,9 +11,9 @@
from ..assistant_tools_code_param import AssistantToolsCodeParam
from .create_message_request_param import CreateMessageRequestParam
from ..assistant_tools_function_param import AssistantToolsFunctionParam
+from ..api_response_format_option_param import APIResponseFormatOptionParam
from ..assistant_tools_file_search_param import AssistantToolsFileSearchParam
from .assistants_api_tool_choice_option_param import AssistantsAPIToolChoiceOptionParam
-from ..assistants_api_response_format_option_param import AssistantsAPIResponseFormatOptionParam
__all__ = ["RunCreateRunParams", "Tool"]
@@ -105,7 +105,7 @@ class RunCreateRunParams(TypedDict, total=False):
result in faster responses and fewer tokens used on reasoning in a response.
"""
- response_format: Optional[AssistantsAPIResponseFormatOptionParam]
+ response_format: Optional[APIResponseFormatOptionParam]
"""Specifies the format that the model must output.
Compatible with [GPT-4o](/docs/models#gpt-4o),
diff --git a/src/digitalocean_genai_sdk/types/threads/run_list_params.py b/src/serverless_inference_sdk_prod/types/threads/run_list_params.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/threads/run_list_params.py
rename to src/serverless_inference_sdk_prod/types/threads/run_list_params.py
diff --git a/src/digitalocean_genai_sdk/types/threads/run_list_response.py b/src/serverless_inference_sdk_prod/types/threads/run_list_response.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/threads/run_list_response.py
rename to src/serverless_inference_sdk_prod/types/threads/run_list_response.py
diff --git a/src/digitalocean_genai_sdk/types/threads/run_object.py b/src/serverless_inference_sdk_prod/types/threads/run_object.py
similarity index 98%
rename from src/digitalocean_genai_sdk/types/threads/run_object.py
rename to src/serverless_inference_sdk_prod/types/threads/run_object.py
index fa89f4b4..94a57e57 100644
--- a/src/digitalocean_genai_sdk/types/threads/run_object.py
+++ b/src/serverless_inference_sdk_prod/types/threads/run_object.py
@@ -7,9 +7,9 @@
from .truncation_object import TruncationObject
from ..assistant_tools_code import AssistantToolsCode
from ..assistant_tools_function import AssistantToolsFunction
+from ..api_response_format_option import APIResponseFormatOption
from ..assistant_tools_file_search import AssistantToolsFileSearch
from .assistants_api_tool_choice_option import AssistantsAPIToolChoiceOption
-from ..assistants_api_response_format_option import AssistantsAPIResponseFormatOption
__all__ = [
"RunObject",
@@ -179,7 +179,7 @@ class RunObject(BaseModel):
Will be `null` if no action is required.
"""
- response_format: Optional[AssistantsAPIResponseFormatOption] = None
+ response_format: Optional[APIResponseFormatOption] = None
"""Specifies the format that the model must output.
Compatible with [GPT-4o](/docs/models#gpt-4o),
diff --git a/src/digitalocean_genai_sdk/types/threads/run_submit_tool_outputs_params.py b/src/serverless_inference_sdk_prod/types/threads/run_submit_tool_outputs_params.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/threads/run_submit_tool_outputs_params.py
rename to src/serverless_inference_sdk_prod/types/threads/run_submit_tool_outputs_params.py
diff --git a/src/digitalocean_genai_sdk/types/threads/run_update_params.py b/src/serverless_inference_sdk_prod/types/threads/run_update_params.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/threads/run_update_params.py
rename to src/serverless_inference_sdk_prod/types/threads/run_update_params.py
diff --git a/src/digitalocean_genai_sdk/types/threads/runs/__init__.py b/src/serverless_inference_sdk_prod/types/threads/runs/__init__.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/threads/runs/__init__.py
rename to src/serverless_inference_sdk_prod/types/threads/runs/__init__.py
diff --git a/src/digitalocean_genai_sdk/types/threads/runs/run_step_object.py b/src/serverless_inference_sdk_prod/types/threads/runs/run_step_object.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/threads/runs/run_step_object.py
rename to src/serverless_inference_sdk_prod/types/threads/runs/run_step_object.py
diff --git a/src/digitalocean_genai_sdk/types/threads/runs/step_list_params.py b/src/serverless_inference_sdk_prod/types/threads/runs/step_list_params.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/threads/runs/step_list_params.py
rename to src/serverless_inference_sdk_prod/types/threads/runs/step_list_params.py
diff --git a/src/digitalocean_genai_sdk/types/threads/runs/step_list_response.py b/src/serverless_inference_sdk_prod/types/threads/runs/step_list_response.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/threads/runs/step_list_response.py
rename to src/serverless_inference_sdk_prod/types/threads/runs/step_list_response.py
diff --git a/src/digitalocean_genai_sdk/types/threads/runs/step_retrieve_params.py b/src/serverless_inference_sdk_prod/types/threads/runs/step_retrieve_params.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/threads/runs/step_retrieve_params.py
rename to src/serverless_inference_sdk_prod/types/threads/runs/step_retrieve_params.py
diff --git a/src/digitalocean_genai_sdk/types/threads/truncation_object.py b/src/serverless_inference_sdk_prod/types/threads/truncation_object.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/threads/truncation_object.py
rename to src/serverless_inference_sdk_prod/types/threads/truncation_object.py
diff --git a/src/digitalocean_genai_sdk/types/threads/truncation_object_param.py b/src/serverless_inference_sdk_prod/types/threads/truncation_object_param.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/threads/truncation_object_param.py
rename to src/serverless_inference_sdk_prod/types/threads/truncation_object_param.py
diff --git a/src/digitalocean_genai_sdk/types/transcription_segment.py b/src/serverless_inference_sdk_prod/types/transcription_segment.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/transcription_segment.py
rename to src/serverless_inference_sdk_prod/types/transcription_segment.py
diff --git a/src/digitalocean_genai_sdk/types/upload.py b/src/serverless_inference_sdk_prod/types/upload.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/upload.py
rename to src/serverless_inference_sdk_prod/types/upload.py
diff --git a/src/digitalocean_genai_sdk/types/upload_add_part_params.py b/src/serverless_inference_sdk_prod/types/upload_add_part_params.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/upload_add_part_params.py
rename to src/serverless_inference_sdk_prod/types/upload_add_part_params.py
diff --git a/src/digitalocean_genai_sdk/types/upload_add_part_response.py b/src/serverless_inference_sdk_prod/types/upload_add_part_response.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/upload_add_part_response.py
rename to src/serverless_inference_sdk_prod/types/upload_add_part_response.py
diff --git a/src/digitalocean_genai_sdk/types/upload_complete_params.py b/src/serverless_inference_sdk_prod/types/upload_complete_params.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/upload_complete_params.py
rename to src/serverless_inference_sdk_prod/types/upload_complete_params.py
diff --git a/src/digitalocean_genai_sdk/types/upload_create_params.py b/src/serverless_inference_sdk_prod/types/upload_create_params.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/upload_create_params.py
rename to src/serverless_inference_sdk_prod/types/upload_create_params.py
diff --git a/src/digitalocean_genai_sdk/types/usage_response.py b/src/serverless_inference_sdk_prod/types/usage_response.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/usage_response.py
rename to src/serverless_inference_sdk_prod/types/usage_response.py
diff --git a/src/digitalocean_genai_sdk/types/vector_store_create_params.py b/src/serverless_inference_sdk_prod/types/vector_store_create_params.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/vector_store_create_params.py
rename to src/serverless_inference_sdk_prod/types/vector_store_create_params.py
diff --git a/src/digitalocean_genai_sdk/types/vector_store_delete_response.py b/src/serverless_inference_sdk_prod/types/vector_store_delete_response.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/vector_store_delete_response.py
rename to src/serverless_inference_sdk_prod/types/vector_store_delete_response.py
diff --git a/src/digitalocean_genai_sdk/types/vector_store_expiration_after.py b/src/serverless_inference_sdk_prod/types/vector_store_expiration_after.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/vector_store_expiration_after.py
rename to src/serverless_inference_sdk_prod/types/vector_store_expiration_after.py
diff --git a/src/digitalocean_genai_sdk/types/vector_store_expiration_after_param.py b/src/serverless_inference_sdk_prod/types/vector_store_expiration_after_param.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/vector_store_expiration_after_param.py
rename to src/serverless_inference_sdk_prod/types/vector_store_expiration_after_param.py
diff --git a/src/digitalocean_genai_sdk/types/vector_store_list_params.py b/src/serverless_inference_sdk_prod/types/vector_store_list_params.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/vector_store_list_params.py
rename to src/serverless_inference_sdk_prod/types/vector_store_list_params.py
diff --git a/src/digitalocean_genai_sdk/types/vector_store_list_response.py b/src/serverless_inference_sdk_prod/types/vector_store_list_response.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/vector_store_list_response.py
rename to src/serverless_inference_sdk_prod/types/vector_store_list_response.py
diff --git a/src/digitalocean_genai_sdk/types/vector_store_object.py b/src/serverless_inference_sdk_prod/types/vector_store_object.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/vector_store_object.py
rename to src/serverless_inference_sdk_prod/types/vector_store_object.py
diff --git a/src/digitalocean_genai_sdk/types/vector_store_search_params.py b/src/serverless_inference_sdk_prod/types/vector_store_search_params.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/vector_store_search_params.py
rename to src/serverless_inference_sdk_prod/types/vector_store_search_params.py
diff --git a/src/digitalocean_genai_sdk/types/vector_store_search_response.py b/src/serverless_inference_sdk_prod/types/vector_store_search_response.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/vector_store_search_response.py
rename to src/serverless_inference_sdk_prod/types/vector_store_search_response.py
diff --git a/src/digitalocean_genai_sdk/types/vector_store_update_params.py b/src/serverless_inference_sdk_prod/types/vector_store_update_params.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/vector_store_update_params.py
rename to src/serverless_inference_sdk_prod/types/vector_store_update_params.py
diff --git a/src/digitalocean_genai_sdk/types/vector_stores/__init__.py b/src/serverless_inference_sdk_prod/types/vector_stores/__init__.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/vector_stores/__init__.py
rename to src/serverless_inference_sdk_prod/types/vector_stores/__init__.py
diff --git a/src/digitalocean_genai_sdk/types/vector_stores/chunking_strategy_request_param.py b/src/serverless_inference_sdk_prod/types/vector_stores/chunking_strategy_request_param.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/vector_stores/chunking_strategy_request_param.py
rename to src/serverless_inference_sdk_prod/types/vector_stores/chunking_strategy_request_param.py
diff --git a/src/digitalocean_genai_sdk/types/vector_stores/file_batch_create_params.py b/src/serverless_inference_sdk_prod/types/vector_stores/file_batch_create_params.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/vector_stores/file_batch_create_params.py
rename to src/serverless_inference_sdk_prod/types/vector_stores/file_batch_create_params.py
diff --git a/src/digitalocean_genai_sdk/types/vector_stores/file_batch_list_files_params.py b/src/serverless_inference_sdk_prod/types/vector_stores/file_batch_list_files_params.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/vector_stores/file_batch_list_files_params.py
rename to src/serverless_inference_sdk_prod/types/vector_stores/file_batch_list_files_params.py
diff --git a/src/digitalocean_genai_sdk/types/vector_stores/file_create_params.py b/src/serverless_inference_sdk_prod/types/vector_stores/file_create_params.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/vector_stores/file_create_params.py
rename to src/serverless_inference_sdk_prod/types/vector_stores/file_create_params.py
diff --git a/src/digitalocean_genai_sdk/types/vector_stores/file_delete_response.py b/src/serverless_inference_sdk_prod/types/vector_stores/file_delete_response.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/vector_stores/file_delete_response.py
rename to src/serverless_inference_sdk_prod/types/vector_stores/file_delete_response.py
diff --git a/src/digitalocean_genai_sdk/types/vector_stores/file_list_params.py b/src/serverless_inference_sdk_prod/types/vector_stores/file_list_params.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/vector_stores/file_list_params.py
rename to src/serverless_inference_sdk_prod/types/vector_stores/file_list_params.py
diff --git a/src/digitalocean_genai_sdk/types/vector_stores/file_retrieve_content_response.py b/src/serverless_inference_sdk_prod/types/vector_stores/file_retrieve_content_response.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/vector_stores/file_retrieve_content_response.py
rename to src/serverless_inference_sdk_prod/types/vector_stores/file_retrieve_content_response.py
diff --git a/src/digitalocean_genai_sdk/types/vector_stores/file_update_params.py b/src/serverless_inference_sdk_prod/types/vector_stores/file_update_params.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/vector_stores/file_update_params.py
rename to src/serverless_inference_sdk_prod/types/vector_stores/file_update_params.py
diff --git a/src/digitalocean_genai_sdk/types/vector_stores/list_vector_store_files_response.py b/src/serverless_inference_sdk_prod/types/vector_stores/list_vector_store_files_response.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/vector_stores/list_vector_store_files_response.py
rename to src/serverless_inference_sdk_prod/types/vector_stores/list_vector_store_files_response.py
diff --git a/src/digitalocean_genai_sdk/types/vector_stores/vector_store_file_batch_object.py b/src/serverless_inference_sdk_prod/types/vector_stores/vector_store_file_batch_object.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/vector_stores/vector_store_file_batch_object.py
rename to src/serverless_inference_sdk_prod/types/vector_stores/vector_store_file_batch_object.py
diff --git a/src/digitalocean_genai_sdk/types/vector_stores/vector_store_file_object.py b/src/serverless_inference_sdk_prod/types/vector_stores/vector_store_file_object.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/vector_stores/vector_store_file_object.py
rename to src/serverless_inference_sdk_prod/types/vector_stores/vector_store_file_object.py
diff --git a/src/digitalocean_genai_sdk/types/voice_ids_shared.py b/src/serverless_inference_sdk_prod/types/voice_ids_shared.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/voice_ids_shared.py
rename to src/serverless_inference_sdk_prod/types/voice_ids_shared.py
diff --git a/src/digitalocean_genai_sdk/types/voice_ids_shared_param.py b/src/serverless_inference_sdk_prod/types/voice_ids_shared_param.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/voice_ids_shared_param.py
rename to src/serverless_inference_sdk_prod/types/voice_ids_shared_param.py
diff --git a/src/digitalocean_genai_sdk/types/web_search_tool_call.py b/src/serverless_inference_sdk_prod/types/web_search_tool_call.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/web_search_tool_call.py
rename to src/serverless_inference_sdk_prod/types/web_search_tool_call.py
diff --git a/src/digitalocean_genai_sdk/types/web_search_tool_call_param.py b/src/serverless_inference_sdk_prod/types/web_search_tool_call_param.py
similarity index 100%
rename from src/digitalocean_genai_sdk/types/web_search_tool_call_param.py
rename to src/serverless_inference_sdk_prod/types/web_search_tool_call_param.py
diff --git a/tests/api_resources/chat/test_completions.py b/tests/api_resources/chat/test_completions.py
index b065b83d..fd6cfac6 100644
--- a/tests/api_resources/chat/test_completions.py
+++ b/tests/api_resources/chat/test_completions.py
@@ -8,12 +8,12 @@
import pytest
from tests.utils import assert_matches_type
-from digitalocean_genai_sdk import DigitaloceanGenaiSDK, AsyncDigitaloceanGenaiSDK
-from digitalocean_genai_sdk.types.chat import (
+from serverless_inference_sdk_prod import ServerlessInferenceSDKProd, AsyncServerlessInferenceSDKProd
+from serverless_inference_sdk_prod.types.chat import (
CreateResponse,
CompletionListResponse,
CompletionDeleteResponse,
- CompletionListMessagesResponse,
+ CompletionRetrieveMessagesResponse,
)
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -24,7 +24,7 @@ class TestCompletions:
@pytest.mark.skip()
@parametrize
- def test_method_create(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_create(self, client: ServerlessInferenceSDKProd) -> None:
completion = client.chat.completions.create(
messages=[
{
@@ -38,7 +38,7 @@ def test_method_create(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_create_with_all_params(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_create_with_all_params(self, client: ServerlessInferenceSDKProd) -> None:
completion = client.chat.completions.create(
messages=[
{
@@ -115,7 +115,7 @@ def test_method_create_with_all_params(self, client: DigitaloceanGenaiSDK) -> No
@pytest.mark.skip()
@parametrize
- def test_raw_response_create(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_create(self, client: ServerlessInferenceSDKProd) -> None:
response = client.chat.completions.with_raw_response.create(
messages=[
{
@@ -133,7 +133,7 @@ def test_raw_response_create(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_create(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_create(self, client: ServerlessInferenceSDKProd) -> None:
with client.chat.completions.with_streaming_response.create(
messages=[
{
@@ -153,7 +153,7 @@ def test_streaming_response_create(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_retrieve(self, client: ServerlessInferenceSDKProd) -> None:
completion = client.chat.completions.retrieve(
"completion_id",
)
@@ -161,7 +161,7 @@ def test_method_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_raw_response_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_retrieve(self, client: ServerlessInferenceSDKProd) -> None:
response = client.chat.completions.with_raw_response.retrieve(
"completion_id",
)
@@ -173,7 +173,7 @@ def test_raw_response_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_retrieve(self, client: ServerlessInferenceSDKProd) -> None:
with client.chat.completions.with_streaming_response.retrieve(
"completion_id",
) as response:
@@ -187,7 +187,7 @@ def test_streaming_response_retrieve(self, client: DigitaloceanGenaiSDK) -> None
@pytest.mark.skip()
@parametrize
- def test_path_params_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_path_params_retrieve(self, client: ServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `completion_id` but received ''"):
client.chat.completions.with_raw_response.retrieve(
"",
@@ -195,7 +195,7 @@ def test_path_params_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_update(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_update(self, client: ServerlessInferenceSDKProd) -> None:
completion = client.chat.completions.update(
completion_id="completion_id",
metadata={"foo": "string"},
@@ -204,7 +204,7 @@ def test_method_update(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_raw_response_update(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_update(self, client: ServerlessInferenceSDKProd) -> None:
response = client.chat.completions.with_raw_response.update(
completion_id="completion_id",
metadata={"foo": "string"},
@@ -217,7 +217,7 @@ def test_raw_response_update(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_update(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_update(self, client: ServerlessInferenceSDKProd) -> None:
with client.chat.completions.with_streaming_response.update(
completion_id="completion_id",
metadata={"foo": "string"},
@@ -232,7 +232,7 @@ def test_streaming_response_update(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_path_params_update(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_path_params_update(self, client: ServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `completion_id` but received ''"):
client.chat.completions.with_raw_response.update(
completion_id="",
@@ -241,13 +241,13 @@ def test_path_params_update(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_list(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_list(self, client: ServerlessInferenceSDKProd) -> None:
completion = client.chat.completions.list()
assert_matches_type(CompletionListResponse, completion, path=["response"])
@pytest.mark.skip()
@parametrize
- def test_method_list_with_all_params(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_list_with_all_params(self, client: ServerlessInferenceSDKProd) -> None:
completion = client.chat.completions.list(
after="after",
limit=0,
@@ -259,7 +259,7 @@ def test_method_list_with_all_params(self, client: DigitaloceanGenaiSDK) -> None
@pytest.mark.skip()
@parametrize
- def test_raw_response_list(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_list(self, client: ServerlessInferenceSDKProd) -> None:
response = client.chat.completions.with_raw_response.list()
assert response.is_closed is True
@@ -269,7 +269,7 @@ def test_raw_response_list(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_list(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_list(self, client: ServerlessInferenceSDKProd) -> None:
with client.chat.completions.with_streaming_response.list() as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -281,7 +281,7 @@ def test_streaming_response_list(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_delete(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_delete(self, client: ServerlessInferenceSDKProd) -> None:
completion = client.chat.completions.delete(
"completion_id",
)
@@ -289,7 +289,7 @@ def test_method_delete(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_raw_response_delete(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_delete(self, client: ServerlessInferenceSDKProd) -> None:
response = client.chat.completions.with_raw_response.delete(
"completion_id",
)
@@ -301,7 +301,7 @@ def test_raw_response_delete(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_delete(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_delete(self, client: ServerlessInferenceSDKProd) -> None:
with client.chat.completions.with_streaming_response.delete(
"completion_id",
) as response:
@@ -315,7 +315,7 @@ def test_streaming_response_delete(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_path_params_delete(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_path_params_delete(self, client: ServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `completion_id` but received ''"):
client.chat.completions.with_raw_response.delete(
"",
@@ -323,54 +323,54 @@ def test_path_params_delete(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_list_messages(self, client: DigitaloceanGenaiSDK) -> None:
- completion = client.chat.completions.list_messages(
+ def test_method_retrieve_messages(self, client: ServerlessInferenceSDKProd) -> None:
+ completion = client.chat.completions.retrieve_messages(
completion_id="completion_id",
)
- assert_matches_type(CompletionListMessagesResponse, completion, path=["response"])
+ assert_matches_type(CompletionRetrieveMessagesResponse, completion, path=["response"])
@pytest.mark.skip()
@parametrize
- def test_method_list_messages_with_all_params(self, client: DigitaloceanGenaiSDK) -> None:
- completion = client.chat.completions.list_messages(
+ def test_method_retrieve_messages_with_all_params(self, client: ServerlessInferenceSDKProd) -> None:
+ completion = client.chat.completions.retrieve_messages(
completion_id="completion_id",
after="after",
limit=0,
order="asc",
)
- assert_matches_type(CompletionListMessagesResponse, completion, path=["response"])
+ assert_matches_type(CompletionRetrieveMessagesResponse, completion, path=["response"])
@pytest.mark.skip()
@parametrize
- def test_raw_response_list_messages(self, client: DigitaloceanGenaiSDK) -> None:
- response = client.chat.completions.with_raw_response.list_messages(
+ def test_raw_response_retrieve_messages(self, client: ServerlessInferenceSDKProd) -> None:
+ response = client.chat.completions.with_raw_response.retrieve_messages(
completion_id="completion_id",
)
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
completion = response.parse()
- assert_matches_type(CompletionListMessagesResponse, completion, path=["response"])
+ assert_matches_type(CompletionRetrieveMessagesResponse, completion, path=["response"])
@pytest.mark.skip()
@parametrize
- def test_streaming_response_list_messages(self, client: DigitaloceanGenaiSDK) -> None:
- with client.chat.completions.with_streaming_response.list_messages(
+ def test_streaming_response_retrieve_messages(self, client: ServerlessInferenceSDKProd) -> None:
+ with client.chat.completions.with_streaming_response.retrieve_messages(
completion_id="completion_id",
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
completion = response.parse()
- assert_matches_type(CompletionListMessagesResponse, completion, path=["response"])
+ assert_matches_type(CompletionRetrieveMessagesResponse, completion, path=["response"])
assert cast(Any, response.is_closed) is True
@pytest.mark.skip()
@parametrize
- def test_path_params_list_messages(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_path_params_retrieve_messages(self, client: ServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `completion_id` but received ''"):
- client.chat.completions.with_raw_response.list_messages(
+ client.chat.completions.with_raw_response.retrieve_messages(
completion_id="",
)
@@ -380,7 +380,7 @@ class TestAsyncCompletions:
@pytest.mark.skip()
@parametrize
- async def test_method_create(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_create(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
completion = await async_client.chat.completions.create(
messages=[
{
@@ -394,7 +394,7 @@ async def test_method_create(self, async_client: AsyncDigitaloceanGenaiSDK) -> N
@pytest.mark.skip()
@parametrize
- async def test_method_create_with_all_params(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_create_with_all_params(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
completion = await async_client.chat.completions.create(
messages=[
{
@@ -471,7 +471,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncDigitaloce
@pytest.mark.skip()
@parametrize
- async def test_raw_response_create(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_create(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.chat.completions.with_raw_response.create(
messages=[
{
@@ -489,7 +489,7 @@ async def test_raw_response_create(self, async_client: AsyncDigitaloceanGenaiSDK
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_create(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_create(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.chat.completions.with_streaming_response.create(
messages=[
{
@@ -509,7 +509,7 @@ async def test_streaming_response_create(self, async_client: AsyncDigitaloceanGe
@pytest.mark.skip()
@parametrize
- async def test_method_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_retrieve(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
completion = await async_client.chat.completions.retrieve(
"completion_id",
)
@@ -517,7 +517,7 @@ async def test_method_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) ->
@pytest.mark.skip()
@parametrize
- async def test_raw_response_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_retrieve(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.chat.completions.with_raw_response.retrieve(
"completion_id",
)
@@ -529,7 +529,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncDigitaloceanGenaiS
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_retrieve(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.chat.completions.with_streaming_response.retrieve(
"completion_id",
) as response:
@@ -543,7 +543,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncDigitalocean
@pytest.mark.skip()
@parametrize
- async def test_path_params_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_path_params_retrieve(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `completion_id` but received ''"):
await async_client.chat.completions.with_raw_response.retrieve(
"",
@@ -551,7 +551,7 @@ async def test_path_params_retrieve(self, async_client: AsyncDigitaloceanGenaiSD
@pytest.mark.skip()
@parametrize
- async def test_method_update(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_update(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
completion = await async_client.chat.completions.update(
completion_id="completion_id",
metadata={"foo": "string"},
@@ -560,7 +560,7 @@ async def test_method_update(self, async_client: AsyncDigitaloceanGenaiSDK) -> N
@pytest.mark.skip()
@parametrize
- async def test_raw_response_update(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_update(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.chat.completions.with_raw_response.update(
completion_id="completion_id",
metadata={"foo": "string"},
@@ -573,7 +573,7 @@ async def test_raw_response_update(self, async_client: AsyncDigitaloceanGenaiSDK
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_update(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_update(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.chat.completions.with_streaming_response.update(
completion_id="completion_id",
metadata={"foo": "string"},
@@ -588,7 +588,7 @@ async def test_streaming_response_update(self, async_client: AsyncDigitaloceanGe
@pytest.mark.skip()
@parametrize
- async def test_path_params_update(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_path_params_update(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `completion_id` but received ''"):
await async_client.chat.completions.with_raw_response.update(
completion_id="",
@@ -597,13 +597,13 @@ async def test_path_params_update(self, async_client: AsyncDigitaloceanGenaiSDK)
@pytest.mark.skip()
@parametrize
- async def test_method_list(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_list(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
completion = await async_client.chat.completions.list()
assert_matches_type(CompletionListResponse, completion, path=["response"])
@pytest.mark.skip()
@parametrize
- async def test_method_list_with_all_params(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_list_with_all_params(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
completion = await async_client.chat.completions.list(
after="after",
limit=0,
@@ -615,7 +615,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncDigitalocean
@pytest.mark.skip()
@parametrize
- async def test_raw_response_list(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_list(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.chat.completions.with_raw_response.list()
assert response.is_closed is True
@@ -625,7 +625,7 @@ async def test_raw_response_list(self, async_client: AsyncDigitaloceanGenaiSDK)
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_list(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_list(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.chat.completions.with_streaming_response.list() as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -637,7 +637,7 @@ async def test_streaming_response_list(self, async_client: AsyncDigitaloceanGena
@pytest.mark.skip()
@parametrize
- async def test_method_delete(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_delete(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
completion = await async_client.chat.completions.delete(
"completion_id",
)
@@ -645,7 +645,7 @@ async def test_method_delete(self, async_client: AsyncDigitaloceanGenaiSDK) -> N
@pytest.mark.skip()
@parametrize
- async def test_raw_response_delete(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_delete(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.chat.completions.with_raw_response.delete(
"completion_id",
)
@@ -657,7 +657,7 @@ async def test_raw_response_delete(self, async_client: AsyncDigitaloceanGenaiSDK
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_delete(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_delete(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.chat.completions.with_streaming_response.delete(
"completion_id",
) as response:
@@ -671,7 +671,7 @@ async def test_streaming_response_delete(self, async_client: AsyncDigitaloceanGe
@pytest.mark.skip()
@parametrize
- async def test_path_params_delete(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_path_params_delete(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `completion_id` but received ''"):
await async_client.chat.completions.with_raw_response.delete(
"",
@@ -679,53 +679,55 @@ async def test_path_params_delete(self, async_client: AsyncDigitaloceanGenaiSDK)
@pytest.mark.skip()
@parametrize
- async def test_method_list_messages(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
- completion = await async_client.chat.completions.list_messages(
+ async def test_method_retrieve_messages(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
+ completion = await async_client.chat.completions.retrieve_messages(
completion_id="completion_id",
)
- assert_matches_type(CompletionListMessagesResponse, completion, path=["response"])
+ assert_matches_type(CompletionRetrieveMessagesResponse, completion, path=["response"])
@pytest.mark.skip()
@parametrize
- async def test_method_list_messages_with_all_params(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
- completion = await async_client.chat.completions.list_messages(
+ async def test_method_retrieve_messages_with_all_params(
+ self, async_client: AsyncServerlessInferenceSDKProd
+ ) -> None:
+ completion = await async_client.chat.completions.retrieve_messages(
completion_id="completion_id",
after="after",
limit=0,
order="asc",
)
- assert_matches_type(CompletionListMessagesResponse, completion, path=["response"])
+ assert_matches_type(CompletionRetrieveMessagesResponse, completion, path=["response"])
@pytest.mark.skip()
@parametrize
- async def test_raw_response_list_messages(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
- response = await async_client.chat.completions.with_raw_response.list_messages(
+ async def test_raw_response_retrieve_messages(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
+ response = await async_client.chat.completions.with_raw_response.retrieve_messages(
completion_id="completion_id",
)
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
completion = await response.parse()
- assert_matches_type(CompletionListMessagesResponse, completion, path=["response"])
+ assert_matches_type(CompletionRetrieveMessagesResponse, completion, path=["response"])
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_list_messages(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
- async with async_client.chat.completions.with_streaming_response.list_messages(
+ async def test_streaming_response_retrieve_messages(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
+ async with async_client.chat.completions.with_streaming_response.retrieve_messages(
completion_id="completion_id",
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
completion = await response.parse()
- assert_matches_type(CompletionListMessagesResponse, completion, path=["response"])
+ assert_matches_type(CompletionRetrieveMessagesResponse, completion, path=["response"])
assert cast(Any, response.is_closed) is True
@pytest.mark.skip()
@parametrize
- async def test_path_params_list_messages(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_path_params_retrieve_messages(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `completion_id` but received ''"):
- await async_client.chat.completions.with_raw_response.list_messages(
+ await async_client.chat.completions.with_raw_response.retrieve_messages(
completion_id="",
)
diff --git a/tests/api_resources/fine_tuning/checkpoints/test_permissions.py b/tests/api_resources/fine_tuning/checkpoints/test_permissions.py
index 1983d90a..4cf16828 100644
--- a/tests/api_resources/fine_tuning/checkpoints/test_permissions.py
+++ b/tests/api_resources/fine_tuning/checkpoints/test_permissions.py
@@ -8,8 +8,8 @@
import pytest
from tests.utils import assert_matches_type
-from digitalocean_genai_sdk import DigitaloceanGenaiSDK, AsyncDigitaloceanGenaiSDK
-from digitalocean_genai_sdk.types.fine_tuning.checkpoints import (
+from serverless_inference_sdk_prod import ServerlessInferenceSDKProd, AsyncServerlessInferenceSDKProd
+from serverless_inference_sdk_prod.types.fine_tuning.checkpoints import (
PermissionDeleteResponse,
ListFineTuningCheckpointPermission,
)
@@ -22,7 +22,7 @@ class TestPermissions:
@pytest.mark.skip()
@parametrize
- def test_method_create(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_create(self, client: ServerlessInferenceSDKProd) -> None:
permission = client.fine_tuning.checkpoints.permissions.create(
permission_id="ft:gpt-4o-mini-2024-07-18:org:weather:B7R9VjQd",
project_ids=["string"],
@@ -31,7 +31,7 @@ def test_method_create(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_raw_response_create(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_create(self, client: ServerlessInferenceSDKProd) -> None:
response = client.fine_tuning.checkpoints.permissions.with_raw_response.create(
permission_id="ft:gpt-4o-mini-2024-07-18:org:weather:B7R9VjQd",
project_ids=["string"],
@@ -44,7 +44,7 @@ def test_raw_response_create(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_create(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_create(self, client: ServerlessInferenceSDKProd) -> None:
with client.fine_tuning.checkpoints.permissions.with_streaming_response.create(
permission_id="ft:gpt-4o-mini-2024-07-18:org:weather:B7R9VjQd",
project_ids=["string"],
@@ -59,7 +59,7 @@ def test_streaming_response_create(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_path_params_create(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_path_params_create(self, client: ServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `permission_id` but received ''"):
client.fine_tuning.checkpoints.permissions.with_raw_response.create(
permission_id="",
@@ -68,7 +68,7 @@ def test_path_params_create(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_retrieve(self, client: ServerlessInferenceSDKProd) -> None:
permission = client.fine_tuning.checkpoints.permissions.retrieve(
permission_id="ft-AF1WoRqd3aJAHsqc9NY7iL8F",
)
@@ -76,7 +76,7 @@ def test_method_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_retrieve_with_all_params(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_retrieve_with_all_params(self, client: ServerlessInferenceSDKProd) -> None:
permission = client.fine_tuning.checkpoints.permissions.retrieve(
permission_id="ft-AF1WoRqd3aJAHsqc9NY7iL8F",
after="after",
@@ -88,7 +88,7 @@ def test_method_retrieve_with_all_params(self, client: DigitaloceanGenaiSDK) ->
@pytest.mark.skip()
@parametrize
- def test_raw_response_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_retrieve(self, client: ServerlessInferenceSDKProd) -> None:
response = client.fine_tuning.checkpoints.permissions.with_raw_response.retrieve(
permission_id="ft-AF1WoRqd3aJAHsqc9NY7iL8F",
)
@@ -100,7 +100,7 @@ def test_raw_response_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_retrieve(self, client: ServerlessInferenceSDKProd) -> None:
with client.fine_tuning.checkpoints.permissions.with_streaming_response.retrieve(
permission_id="ft-AF1WoRqd3aJAHsqc9NY7iL8F",
) as response:
@@ -114,7 +114,7 @@ def test_streaming_response_retrieve(self, client: DigitaloceanGenaiSDK) -> None
@pytest.mark.skip()
@parametrize
- def test_path_params_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_path_params_retrieve(self, client: ServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `permission_id` but received ''"):
client.fine_tuning.checkpoints.permissions.with_raw_response.retrieve(
permission_id="",
@@ -122,7 +122,7 @@ def test_path_params_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_delete(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_delete(self, client: ServerlessInferenceSDKProd) -> None:
permission = client.fine_tuning.checkpoints.permissions.delete(
"cp_zc4Q7MP6XxulcVzj4MZdwsAB",
)
@@ -130,7 +130,7 @@ def test_method_delete(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_raw_response_delete(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_delete(self, client: ServerlessInferenceSDKProd) -> None:
response = client.fine_tuning.checkpoints.permissions.with_raw_response.delete(
"cp_zc4Q7MP6XxulcVzj4MZdwsAB",
)
@@ -142,7 +142,7 @@ def test_raw_response_delete(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_delete(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_delete(self, client: ServerlessInferenceSDKProd) -> None:
with client.fine_tuning.checkpoints.permissions.with_streaming_response.delete(
"cp_zc4Q7MP6XxulcVzj4MZdwsAB",
) as response:
@@ -156,7 +156,7 @@ def test_streaming_response_delete(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_path_params_delete(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_path_params_delete(self, client: ServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `permission_id` but received ''"):
client.fine_tuning.checkpoints.permissions.with_raw_response.delete(
"",
@@ -168,7 +168,7 @@ class TestAsyncPermissions:
@pytest.mark.skip()
@parametrize
- async def test_method_create(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_create(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
permission = await async_client.fine_tuning.checkpoints.permissions.create(
permission_id="ft:gpt-4o-mini-2024-07-18:org:weather:B7R9VjQd",
project_ids=["string"],
@@ -177,7 +177,7 @@ async def test_method_create(self, async_client: AsyncDigitaloceanGenaiSDK) -> N
@pytest.mark.skip()
@parametrize
- async def test_raw_response_create(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_create(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.fine_tuning.checkpoints.permissions.with_raw_response.create(
permission_id="ft:gpt-4o-mini-2024-07-18:org:weather:B7R9VjQd",
project_ids=["string"],
@@ -190,7 +190,7 @@ async def test_raw_response_create(self, async_client: AsyncDigitaloceanGenaiSDK
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_create(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_create(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.fine_tuning.checkpoints.permissions.with_streaming_response.create(
permission_id="ft:gpt-4o-mini-2024-07-18:org:weather:B7R9VjQd",
project_ids=["string"],
@@ -205,7 +205,7 @@ async def test_streaming_response_create(self, async_client: AsyncDigitaloceanGe
@pytest.mark.skip()
@parametrize
- async def test_path_params_create(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_path_params_create(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `permission_id` but received ''"):
await async_client.fine_tuning.checkpoints.permissions.with_raw_response.create(
permission_id="",
@@ -214,7 +214,7 @@ async def test_path_params_create(self, async_client: AsyncDigitaloceanGenaiSDK)
@pytest.mark.skip()
@parametrize
- async def test_method_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_retrieve(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
permission = await async_client.fine_tuning.checkpoints.permissions.retrieve(
permission_id="ft-AF1WoRqd3aJAHsqc9NY7iL8F",
)
@@ -222,7 +222,7 @@ async def test_method_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) ->
@pytest.mark.skip()
@parametrize
- async def test_method_retrieve_with_all_params(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_retrieve_with_all_params(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
permission = await async_client.fine_tuning.checkpoints.permissions.retrieve(
permission_id="ft-AF1WoRqd3aJAHsqc9NY7iL8F",
after="after",
@@ -234,7 +234,7 @@ async def test_method_retrieve_with_all_params(self, async_client: AsyncDigitalo
@pytest.mark.skip()
@parametrize
- async def test_raw_response_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_retrieve(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.fine_tuning.checkpoints.permissions.with_raw_response.retrieve(
permission_id="ft-AF1WoRqd3aJAHsqc9NY7iL8F",
)
@@ -246,7 +246,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncDigitaloceanGenaiS
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_retrieve(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.fine_tuning.checkpoints.permissions.with_streaming_response.retrieve(
permission_id="ft-AF1WoRqd3aJAHsqc9NY7iL8F",
) as response:
@@ -260,7 +260,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncDigitalocean
@pytest.mark.skip()
@parametrize
- async def test_path_params_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_path_params_retrieve(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `permission_id` but received ''"):
await async_client.fine_tuning.checkpoints.permissions.with_raw_response.retrieve(
permission_id="",
@@ -268,7 +268,7 @@ async def test_path_params_retrieve(self, async_client: AsyncDigitaloceanGenaiSD
@pytest.mark.skip()
@parametrize
- async def test_method_delete(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_delete(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
permission = await async_client.fine_tuning.checkpoints.permissions.delete(
"cp_zc4Q7MP6XxulcVzj4MZdwsAB",
)
@@ -276,7 +276,7 @@ async def test_method_delete(self, async_client: AsyncDigitaloceanGenaiSDK) -> N
@pytest.mark.skip()
@parametrize
- async def test_raw_response_delete(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_delete(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.fine_tuning.checkpoints.permissions.with_raw_response.delete(
"cp_zc4Q7MP6XxulcVzj4MZdwsAB",
)
@@ -288,7 +288,7 @@ async def test_raw_response_delete(self, async_client: AsyncDigitaloceanGenaiSDK
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_delete(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_delete(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.fine_tuning.checkpoints.permissions.with_streaming_response.delete(
"cp_zc4Q7MP6XxulcVzj4MZdwsAB",
) as response:
@@ -302,7 +302,7 @@ async def test_streaming_response_delete(self, async_client: AsyncDigitaloceanGe
@pytest.mark.skip()
@parametrize
- async def test_path_params_delete(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_path_params_delete(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `permission_id` but received ''"):
await async_client.fine_tuning.checkpoints.permissions.with_raw_response.delete(
"",
diff --git a/tests/api_resources/fine_tuning/jobs/test_checkpoints.py b/tests/api_resources/fine_tuning/jobs/test_checkpoints.py
index f94416f9..d437434b 100644
--- a/tests/api_resources/fine_tuning/jobs/test_checkpoints.py
+++ b/tests/api_resources/fine_tuning/jobs/test_checkpoints.py
@@ -8,8 +8,8 @@
import pytest
from tests.utils import assert_matches_type
-from digitalocean_genai_sdk import DigitaloceanGenaiSDK, AsyncDigitaloceanGenaiSDK
-from digitalocean_genai_sdk.types.fine_tuning.jobs import CheckpointRetrieveResponse
+from serverless_inference_sdk_prod import ServerlessInferenceSDKProd, AsyncServerlessInferenceSDKProd
+from serverless_inference_sdk_prod.types.fine_tuning.jobs import CheckpointRetrieveResponse
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -19,7 +19,7 @@ class TestCheckpoints:
@pytest.mark.skip()
@parametrize
- def test_method_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_retrieve(self, client: ServerlessInferenceSDKProd) -> None:
checkpoint = client.fine_tuning.jobs.checkpoints.retrieve(
fine_tuning_job_id="ft-AF1WoRqd3aJAHsqc9NY7iL8F",
)
@@ -27,7 +27,7 @@ def test_method_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_retrieve_with_all_params(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_retrieve_with_all_params(self, client: ServerlessInferenceSDKProd) -> None:
checkpoint = client.fine_tuning.jobs.checkpoints.retrieve(
fine_tuning_job_id="ft-AF1WoRqd3aJAHsqc9NY7iL8F",
after="after",
@@ -37,7 +37,7 @@ def test_method_retrieve_with_all_params(self, client: DigitaloceanGenaiSDK) ->
@pytest.mark.skip()
@parametrize
- def test_raw_response_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_retrieve(self, client: ServerlessInferenceSDKProd) -> None:
response = client.fine_tuning.jobs.checkpoints.with_raw_response.retrieve(
fine_tuning_job_id="ft-AF1WoRqd3aJAHsqc9NY7iL8F",
)
@@ -49,7 +49,7 @@ def test_raw_response_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_retrieve(self, client: ServerlessInferenceSDKProd) -> None:
with client.fine_tuning.jobs.checkpoints.with_streaming_response.retrieve(
fine_tuning_job_id="ft-AF1WoRqd3aJAHsqc9NY7iL8F",
) as response:
@@ -63,7 +63,7 @@ def test_streaming_response_retrieve(self, client: DigitaloceanGenaiSDK) -> None
@pytest.mark.skip()
@parametrize
- def test_path_params_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_path_params_retrieve(self, client: ServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `fine_tuning_job_id` but received ''"):
client.fine_tuning.jobs.checkpoints.with_raw_response.retrieve(
fine_tuning_job_id="",
@@ -75,7 +75,7 @@ class TestAsyncCheckpoints:
@pytest.mark.skip()
@parametrize
- async def test_method_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_retrieve(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
checkpoint = await async_client.fine_tuning.jobs.checkpoints.retrieve(
fine_tuning_job_id="ft-AF1WoRqd3aJAHsqc9NY7iL8F",
)
@@ -83,7 +83,7 @@ async def test_method_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) ->
@pytest.mark.skip()
@parametrize
- async def test_method_retrieve_with_all_params(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_retrieve_with_all_params(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
checkpoint = await async_client.fine_tuning.jobs.checkpoints.retrieve(
fine_tuning_job_id="ft-AF1WoRqd3aJAHsqc9NY7iL8F",
after="after",
@@ -93,7 +93,7 @@ async def test_method_retrieve_with_all_params(self, async_client: AsyncDigitalo
@pytest.mark.skip()
@parametrize
- async def test_raw_response_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_retrieve(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.fine_tuning.jobs.checkpoints.with_raw_response.retrieve(
fine_tuning_job_id="ft-AF1WoRqd3aJAHsqc9NY7iL8F",
)
@@ -105,7 +105,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncDigitaloceanGenaiS
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_retrieve(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.fine_tuning.jobs.checkpoints.with_streaming_response.retrieve(
fine_tuning_job_id="ft-AF1WoRqd3aJAHsqc9NY7iL8F",
) as response:
@@ -119,7 +119,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncDigitalocean
@pytest.mark.skip()
@parametrize
- async def test_path_params_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_path_params_retrieve(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `fine_tuning_job_id` but received ''"):
await async_client.fine_tuning.jobs.checkpoints.with_raw_response.retrieve(
fine_tuning_job_id="",
diff --git a/tests/api_resources/fine_tuning/jobs/test_events.py b/tests/api_resources/fine_tuning/jobs/test_events.py
index 39802767..27ddde5c 100644
--- a/tests/api_resources/fine_tuning/jobs/test_events.py
+++ b/tests/api_resources/fine_tuning/jobs/test_events.py
@@ -8,8 +8,8 @@
import pytest
from tests.utils import assert_matches_type
-from digitalocean_genai_sdk import DigitaloceanGenaiSDK, AsyncDigitaloceanGenaiSDK
-from digitalocean_genai_sdk.types.fine_tuning.jobs import EventRetrieveResponse
+from serverless_inference_sdk_prod import ServerlessInferenceSDKProd, AsyncServerlessInferenceSDKProd
+from serverless_inference_sdk_prod.types.fine_tuning.jobs import EventRetrieveResponse
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -19,7 +19,7 @@ class TestEvents:
@pytest.mark.skip()
@parametrize
- def test_method_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_retrieve(self, client: ServerlessInferenceSDKProd) -> None:
event = client.fine_tuning.jobs.events.retrieve(
fine_tuning_job_id="ft-AF1WoRqd3aJAHsqc9NY7iL8F",
)
@@ -27,7 +27,7 @@ def test_method_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_retrieve_with_all_params(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_retrieve_with_all_params(self, client: ServerlessInferenceSDKProd) -> None:
event = client.fine_tuning.jobs.events.retrieve(
fine_tuning_job_id="ft-AF1WoRqd3aJAHsqc9NY7iL8F",
after="after",
@@ -37,7 +37,7 @@ def test_method_retrieve_with_all_params(self, client: DigitaloceanGenaiSDK) ->
@pytest.mark.skip()
@parametrize
- def test_raw_response_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_retrieve(self, client: ServerlessInferenceSDKProd) -> None:
response = client.fine_tuning.jobs.events.with_raw_response.retrieve(
fine_tuning_job_id="ft-AF1WoRqd3aJAHsqc9NY7iL8F",
)
@@ -49,7 +49,7 @@ def test_raw_response_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_retrieve(self, client: ServerlessInferenceSDKProd) -> None:
with client.fine_tuning.jobs.events.with_streaming_response.retrieve(
fine_tuning_job_id="ft-AF1WoRqd3aJAHsqc9NY7iL8F",
) as response:
@@ -63,7 +63,7 @@ def test_streaming_response_retrieve(self, client: DigitaloceanGenaiSDK) -> None
@pytest.mark.skip()
@parametrize
- def test_path_params_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_path_params_retrieve(self, client: ServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `fine_tuning_job_id` but received ''"):
client.fine_tuning.jobs.events.with_raw_response.retrieve(
fine_tuning_job_id="",
@@ -75,7 +75,7 @@ class TestAsyncEvents:
@pytest.mark.skip()
@parametrize
- async def test_method_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_retrieve(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
event = await async_client.fine_tuning.jobs.events.retrieve(
fine_tuning_job_id="ft-AF1WoRqd3aJAHsqc9NY7iL8F",
)
@@ -83,7 +83,7 @@ async def test_method_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) ->
@pytest.mark.skip()
@parametrize
- async def test_method_retrieve_with_all_params(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_retrieve_with_all_params(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
event = await async_client.fine_tuning.jobs.events.retrieve(
fine_tuning_job_id="ft-AF1WoRqd3aJAHsqc9NY7iL8F",
after="after",
@@ -93,7 +93,7 @@ async def test_method_retrieve_with_all_params(self, async_client: AsyncDigitalo
@pytest.mark.skip()
@parametrize
- async def test_raw_response_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_retrieve(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.fine_tuning.jobs.events.with_raw_response.retrieve(
fine_tuning_job_id="ft-AF1WoRqd3aJAHsqc9NY7iL8F",
)
@@ -105,7 +105,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncDigitaloceanGenaiS
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_retrieve(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.fine_tuning.jobs.events.with_streaming_response.retrieve(
fine_tuning_job_id="ft-AF1WoRqd3aJAHsqc9NY7iL8F",
) as response:
@@ -119,7 +119,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncDigitalocean
@pytest.mark.skip()
@parametrize
- async def test_path_params_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_path_params_retrieve(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `fine_tuning_job_id` but received ''"):
await async_client.fine_tuning.jobs.events.with_raw_response.retrieve(
fine_tuning_job_id="",
diff --git a/tests/api_resources/fine_tuning/test_jobs.py b/tests/api_resources/fine_tuning/test_jobs.py
index f0014f09..46827d93 100644
--- a/tests/api_resources/fine_tuning/test_jobs.py
+++ b/tests/api_resources/fine_tuning/test_jobs.py
@@ -8,8 +8,8 @@
import pytest
from tests.utils import assert_matches_type
-from digitalocean_genai_sdk import DigitaloceanGenaiSDK, AsyncDigitaloceanGenaiSDK
-from digitalocean_genai_sdk.types.fine_tuning import (
+from serverless_inference_sdk_prod import ServerlessInferenceSDKProd, AsyncServerlessInferenceSDKProd
+from serverless_inference_sdk_prod.types.fine_tuning import (
FineTuningJob,
JobListResponse,
)
@@ -22,7 +22,7 @@ class TestJobs:
@pytest.mark.skip()
@parametrize
- def test_method_create(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_create(self, client: ServerlessInferenceSDKProd) -> None:
job = client.fine_tuning.jobs.create(
model="gpt-4o-mini",
training_file="file-abc123",
@@ -31,7 +31,7 @@ def test_method_create(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_create_with_all_params(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_create_with_all_params(self, client: ServerlessInferenceSDKProd) -> None:
job = client.fine_tuning.jobs.create(
model="gpt-4o-mini",
training_file="file-abc123",
@@ -78,7 +78,7 @@ def test_method_create_with_all_params(self, client: DigitaloceanGenaiSDK) -> No
@pytest.mark.skip()
@parametrize
- def test_raw_response_create(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_create(self, client: ServerlessInferenceSDKProd) -> None:
response = client.fine_tuning.jobs.with_raw_response.create(
model="gpt-4o-mini",
training_file="file-abc123",
@@ -91,7 +91,7 @@ def test_raw_response_create(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_create(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_create(self, client: ServerlessInferenceSDKProd) -> None:
with client.fine_tuning.jobs.with_streaming_response.create(
model="gpt-4o-mini",
training_file="file-abc123",
@@ -106,7 +106,7 @@ def test_streaming_response_create(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_retrieve(self, client: ServerlessInferenceSDKProd) -> None:
job = client.fine_tuning.jobs.retrieve(
"ft-AF1WoRqd3aJAHsqc9NY7iL8F",
)
@@ -114,7 +114,7 @@ def test_method_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_raw_response_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_retrieve(self, client: ServerlessInferenceSDKProd) -> None:
response = client.fine_tuning.jobs.with_raw_response.retrieve(
"ft-AF1WoRqd3aJAHsqc9NY7iL8F",
)
@@ -126,7 +126,7 @@ def test_raw_response_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_retrieve(self, client: ServerlessInferenceSDKProd) -> None:
with client.fine_tuning.jobs.with_streaming_response.retrieve(
"ft-AF1WoRqd3aJAHsqc9NY7iL8F",
) as response:
@@ -140,7 +140,7 @@ def test_streaming_response_retrieve(self, client: DigitaloceanGenaiSDK) -> None
@pytest.mark.skip()
@parametrize
- def test_path_params_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_path_params_retrieve(self, client: ServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `fine_tuning_job_id` but received ''"):
client.fine_tuning.jobs.with_raw_response.retrieve(
"",
@@ -148,13 +148,13 @@ def test_path_params_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_list(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_list(self, client: ServerlessInferenceSDKProd) -> None:
job = client.fine_tuning.jobs.list()
assert_matches_type(JobListResponse, job, path=["response"])
@pytest.mark.skip()
@parametrize
- def test_method_list_with_all_params(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_list_with_all_params(self, client: ServerlessInferenceSDKProd) -> None:
job = client.fine_tuning.jobs.list(
after="after",
limit=0,
@@ -164,7 +164,7 @@ def test_method_list_with_all_params(self, client: DigitaloceanGenaiSDK) -> None
@pytest.mark.skip()
@parametrize
- def test_raw_response_list(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_list(self, client: ServerlessInferenceSDKProd) -> None:
response = client.fine_tuning.jobs.with_raw_response.list()
assert response.is_closed is True
@@ -174,7 +174,7 @@ def test_raw_response_list(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_list(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_list(self, client: ServerlessInferenceSDKProd) -> None:
with client.fine_tuning.jobs.with_streaming_response.list() as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -186,7 +186,7 @@ def test_streaming_response_list(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_cancel(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_cancel(self, client: ServerlessInferenceSDKProd) -> None:
job = client.fine_tuning.jobs.cancel(
"ft-AF1WoRqd3aJAHsqc9NY7iL8F",
)
@@ -194,7 +194,7 @@ def test_method_cancel(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_raw_response_cancel(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_cancel(self, client: ServerlessInferenceSDKProd) -> None:
response = client.fine_tuning.jobs.with_raw_response.cancel(
"ft-AF1WoRqd3aJAHsqc9NY7iL8F",
)
@@ -206,7 +206,7 @@ def test_raw_response_cancel(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_cancel(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_cancel(self, client: ServerlessInferenceSDKProd) -> None:
with client.fine_tuning.jobs.with_streaming_response.cancel(
"ft-AF1WoRqd3aJAHsqc9NY7iL8F",
) as response:
@@ -220,7 +220,7 @@ def test_streaming_response_cancel(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_path_params_cancel(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_path_params_cancel(self, client: ServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `fine_tuning_job_id` but received ''"):
client.fine_tuning.jobs.with_raw_response.cancel(
"",
@@ -232,7 +232,7 @@ class TestAsyncJobs:
@pytest.mark.skip()
@parametrize
- async def test_method_create(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_create(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
job = await async_client.fine_tuning.jobs.create(
model="gpt-4o-mini",
training_file="file-abc123",
@@ -241,7 +241,7 @@ async def test_method_create(self, async_client: AsyncDigitaloceanGenaiSDK) -> N
@pytest.mark.skip()
@parametrize
- async def test_method_create_with_all_params(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_create_with_all_params(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
job = await async_client.fine_tuning.jobs.create(
model="gpt-4o-mini",
training_file="file-abc123",
@@ -288,7 +288,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncDigitaloce
@pytest.mark.skip()
@parametrize
- async def test_raw_response_create(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_create(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.fine_tuning.jobs.with_raw_response.create(
model="gpt-4o-mini",
training_file="file-abc123",
@@ -301,7 +301,7 @@ async def test_raw_response_create(self, async_client: AsyncDigitaloceanGenaiSDK
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_create(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_create(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.fine_tuning.jobs.with_streaming_response.create(
model="gpt-4o-mini",
training_file="file-abc123",
@@ -316,7 +316,7 @@ async def test_streaming_response_create(self, async_client: AsyncDigitaloceanGe
@pytest.mark.skip()
@parametrize
- async def test_method_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_retrieve(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
job = await async_client.fine_tuning.jobs.retrieve(
"ft-AF1WoRqd3aJAHsqc9NY7iL8F",
)
@@ -324,7 +324,7 @@ async def test_method_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) ->
@pytest.mark.skip()
@parametrize
- async def test_raw_response_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_retrieve(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.fine_tuning.jobs.with_raw_response.retrieve(
"ft-AF1WoRqd3aJAHsqc9NY7iL8F",
)
@@ -336,7 +336,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncDigitaloceanGenaiS
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_retrieve(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.fine_tuning.jobs.with_streaming_response.retrieve(
"ft-AF1WoRqd3aJAHsqc9NY7iL8F",
) as response:
@@ -350,7 +350,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncDigitalocean
@pytest.mark.skip()
@parametrize
- async def test_path_params_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_path_params_retrieve(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `fine_tuning_job_id` but received ''"):
await async_client.fine_tuning.jobs.with_raw_response.retrieve(
"",
@@ -358,13 +358,13 @@ async def test_path_params_retrieve(self, async_client: AsyncDigitaloceanGenaiSD
@pytest.mark.skip()
@parametrize
- async def test_method_list(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_list(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
job = await async_client.fine_tuning.jobs.list()
assert_matches_type(JobListResponse, job, path=["response"])
@pytest.mark.skip()
@parametrize
- async def test_method_list_with_all_params(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_list_with_all_params(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
job = await async_client.fine_tuning.jobs.list(
after="after",
limit=0,
@@ -374,7 +374,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncDigitalocean
@pytest.mark.skip()
@parametrize
- async def test_raw_response_list(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_list(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.fine_tuning.jobs.with_raw_response.list()
assert response.is_closed is True
@@ -384,7 +384,7 @@ async def test_raw_response_list(self, async_client: AsyncDigitaloceanGenaiSDK)
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_list(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_list(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.fine_tuning.jobs.with_streaming_response.list() as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -396,7 +396,7 @@ async def test_streaming_response_list(self, async_client: AsyncDigitaloceanGena
@pytest.mark.skip()
@parametrize
- async def test_method_cancel(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_cancel(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
job = await async_client.fine_tuning.jobs.cancel(
"ft-AF1WoRqd3aJAHsqc9NY7iL8F",
)
@@ -404,7 +404,7 @@ async def test_method_cancel(self, async_client: AsyncDigitaloceanGenaiSDK) -> N
@pytest.mark.skip()
@parametrize
- async def test_raw_response_cancel(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_cancel(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.fine_tuning.jobs.with_raw_response.cancel(
"ft-AF1WoRqd3aJAHsqc9NY7iL8F",
)
@@ -416,7 +416,7 @@ async def test_raw_response_cancel(self, async_client: AsyncDigitaloceanGenaiSDK
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_cancel(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_cancel(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.fine_tuning.jobs.with_streaming_response.cancel(
"ft-AF1WoRqd3aJAHsqc9NY7iL8F",
) as response:
@@ -430,7 +430,7 @@ async def test_streaming_response_cancel(self, async_client: AsyncDigitaloceanGe
@pytest.mark.skip()
@parametrize
- async def test_path_params_cancel(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_path_params_cancel(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `fine_tuning_job_id` but received ''"):
await async_client.fine_tuning.jobs.with_raw_response.cancel(
"",
diff --git a/tests/api_resources/organization/projects/test_api_keys.py b/tests/api_resources/organization/projects/test_api_keys.py
index d8c6bbc0..9cea12d4 100644
--- a/tests/api_resources/organization/projects/test_api_keys.py
+++ b/tests/api_resources/organization/projects/test_api_keys.py
@@ -8,9 +8,9 @@
import pytest
from tests.utils import assert_matches_type
-from digitalocean_genai_sdk import DigitaloceanGenaiSDK, AsyncDigitaloceanGenaiSDK
-from digitalocean_genai_sdk.types.organization.projects import (
- APIKey,
+from serverless_inference_sdk_prod import ServerlessInferenceSDKProd, AsyncServerlessInferenceSDKProd
+from serverless_inference_sdk_prod.types.organization.projects import (
+ ProjectAPIKey,
APIKeyListResponse,
APIKeyDeleteResponse,
)
@@ -23,16 +23,16 @@ class TestAPIKeys:
@pytest.mark.skip()
@parametrize
- def test_method_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_retrieve(self, client: ServerlessInferenceSDKProd) -> None:
api_key = client.organization.projects.api_keys.retrieve(
key_id="key_id",
project_id="project_id",
)
- assert_matches_type(APIKey, api_key, path=["response"])
+ assert_matches_type(ProjectAPIKey, api_key, path=["response"])
@pytest.mark.skip()
@parametrize
- def test_raw_response_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_retrieve(self, client: ServerlessInferenceSDKProd) -> None:
response = client.organization.projects.api_keys.with_raw_response.retrieve(
key_id="key_id",
project_id="project_id",
@@ -41,11 +41,11 @@ def test_raw_response_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
api_key = response.parse()
- assert_matches_type(APIKey, api_key, path=["response"])
+ assert_matches_type(ProjectAPIKey, api_key, path=["response"])
@pytest.mark.skip()
@parametrize
- def test_streaming_response_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_retrieve(self, client: ServerlessInferenceSDKProd) -> None:
with client.organization.projects.api_keys.with_streaming_response.retrieve(
key_id="key_id",
project_id="project_id",
@@ -54,13 +54,13 @@ def test_streaming_response_retrieve(self, client: DigitaloceanGenaiSDK) -> None
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
api_key = response.parse()
- assert_matches_type(APIKey, api_key, path=["response"])
+ assert_matches_type(ProjectAPIKey, api_key, path=["response"])
assert cast(Any, response.is_closed) is True
@pytest.mark.skip()
@parametrize
- def test_path_params_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_path_params_retrieve(self, client: ServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `project_id` but received ''"):
client.organization.projects.api_keys.with_raw_response.retrieve(
key_id="key_id",
@@ -75,7 +75,7 @@ def test_path_params_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_list(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_list(self, client: ServerlessInferenceSDKProd) -> None:
api_key = client.organization.projects.api_keys.list(
project_id="project_id",
)
@@ -83,7 +83,7 @@ def test_method_list(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_list_with_all_params(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_list_with_all_params(self, client: ServerlessInferenceSDKProd) -> None:
api_key = client.organization.projects.api_keys.list(
project_id="project_id",
after="after",
@@ -93,7 +93,7 @@ def test_method_list_with_all_params(self, client: DigitaloceanGenaiSDK) -> None
@pytest.mark.skip()
@parametrize
- def test_raw_response_list(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_list(self, client: ServerlessInferenceSDKProd) -> None:
response = client.organization.projects.api_keys.with_raw_response.list(
project_id="project_id",
)
@@ -105,7 +105,7 @@ def test_raw_response_list(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_list(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_list(self, client: ServerlessInferenceSDKProd) -> None:
with client.organization.projects.api_keys.with_streaming_response.list(
project_id="project_id",
) as response:
@@ -119,7 +119,7 @@ def test_streaming_response_list(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_path_params_list(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_path_params_list(self, client: ServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `project_id` but received ''"):
client.organization.projects.api_keys.with_raw_response.list(
project_id="",
@@ -127,7 +127,7 @@ def test_path_params_list(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_delete(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_delete(self, client: ServerlessInferenceSDKProd) -> None:
api_key = client.organization.projects.api_keys.delete(
key_id="key_id",
project_id="project_id",
@@ -136,7 +136,7 @@ def test_method_delete(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_raw_response_delete(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_delete(self, client: ServerlessInferenceSDKProd) -> None:
response = client.organization.projects.api_keys.with_raw_response.delete(
key_id="key_id",
project_id="project_id",
@@ -149,7 +149,7 @@ def test_raw_response_delete(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_delete(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_delete(self, client: ServerlessInferenceSDKProd) -> None:
with client.organization.projects.api_keys.with_streaming_response.delete(
key_id="key_id",
project_id="project_id",
@@ -164,7 +164,7 @@ def test_streaming_response_delete(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_path_params_delete(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_path_params_delete(self, client: ServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `project_id` but received ''"):
client.organization.projects.api_keys.with_raw_response.delete(
key_id="key_id",
@@ -183,16 +183,16 @@ class TestAsyncAPIKeys:
@pytest.mark.skip()
@parametrize
- async def test_method_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_retrieve(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
api_key = await async_client.organization.projects.api_keys.retrieve(
key_id="key_id",
project_id="project_id",
)
- assert_matches_type(APIKey, api_key, path=["response"])
+ assert_matches_type(ProjectAPIKey, api_key, path=["response"])
@pytest.mark.skip()
@parametrize
- async def test_raw_response_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_retrieve(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.organization.projects.api_keys.with_raw_response.retrieve(
key_id="key_id",
project_id="project_id",
@@ -201,11 +201,11 @@ async def test_raw_response_retrieve(self, async_client: AsyncDigitaloceanGenaiS
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
api_key = await response.parse()
- assert_matches_type(APIKey, api_key, path=["response"])
+ assert_matches_type(ProjectAPIKey, api_key, path=["response"])
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_retrieve(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.organization.projects.api_keys.with_streaming_response.retrieve(
key_id="key_id",
project_id="project_id",
@@ -214,13 +214,13 @@ async def test_streaming_response_retrieve(self, async_client: AsyncDigitalocean
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
api_key = await response.parse()
- assert_matches_type(APIKey, api_key, path=["response"])
+ assert_matches_type(ProjectAPIKey, api_key, path=["response"])
assert cast(Any, response.is_closed) is True
@pytest.mark.skip()
@parametrize
- async def test_path_params_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_path_params_retrieve(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `project_id` but received ''"):
await async_client.organization.projects.api_keys.with_raw_response.retrieve(
key_id="key_id",
@@ -235,7 +235,7 @@ async def test_path_params_retrieve(self, async_client: AsyncDigitaloceanGenaiSD
@pytest.mark.skip()
@parametrize
- async def test_method_list(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_list(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
api_key = await async_client.organization.projects.api_keys.list(
project_id="project_id",
)
@@ -243,7 +243,7 @@ async def test_method_list(self, async_client: AsyncDigitaloceanGenaiSDK) -> Non
@pytest.mark.skip()
@parametrize
- async def test_method_list_with_all_params(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_list_with_all_params(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
api_key = await async_client.organization.projects.api_keys.list(
project_id="project_id",
after="after",
@@ -253,7 +253,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncDigitalocean
@pytest.mark.skip()
@parametrize
- async def test_raw_response_list(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_list(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.organization.projects.api_keys.with_raw_response.list(
project_id="project_id",
)
@@ -265,7 +265,7 @@ async def test_raw_response_list(self, async_client: AsyncDigitaloceanGenaiSDK)
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_list(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_list(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.organization.projects.api_keys.with_streaming_response.list(
project_id="project_id",
) as response:
@@ -279,7 +279,7 @@ async def test_streaming_response_list(self, async_client: AsyncDigitaloceanGena
@pytest.mark.skip()
@parametrize
- async def test_path_params_list(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_path_params_list(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `project_id` but received ''"):
await async_client.organization.projects.api_keys.with_raw_response.list(
project_id="",
@@ -287,7 +287,7 @@ async def test_path_params_list(self, async_client: AsyncDigitaloceanGenaiSDK) -
@pytest.mark.skip()
@parametrize
- async def test_method_delete(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_delete(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
api_key = await async_client.organization.projects.api_keys.delete(
key_id="key_id",
project_id="project_id",
@@ -296,7 +296,7 @@ async def test_method_delete(self, async_client: AsyncDigitaloceanGenaiSDK) -> N
@pytest.mark.skip()
@parametrize
- async def test_raw_response_delete(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_delete(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.organization.projects.api_keys.with_raw_response.delete(
key_id="key_id",
project_id="project_id",
@@ -309,7 +309,7 @@ async def test_raw_response_delete(self, async_client: AsyncDigitaloceanGenaiSDK
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_delete(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_delete(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.organization.projects.api_keys.with_streaming_response.delete(
key_id="key_id",
project_id="project_id",
@@ -324,7 +324,7 @@ async def test_streaming_response_delete(self, async_client: AsyncDigitaloceanGe
@pytest.mark.skip()
@parametrize
- async def test_path_params_delete(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_path_params_delete(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `project_id` but received ''"):
await async_client.organization.projects.api_keys.with_raw_response.delete(
key_id="key_id",
diff --git a/tests/api_resources/organization/projects/test_rate_limits.py b/tests/api_resources/organization/projects/test_rate_limits.py
index 3f7688b4..c6edcc2e 100644
--- a/tests/api_resources/organization/projects/test_rate_limits.py
+++ b/tests/api_resources/organization/projects/test_rate_limits.py
@@ -8,9 +8,9 @@
import pytest
from tests.utils import assert_matches_type
-from digitalocean_genai_sdk import DigitaloceanGenaiSDK, AsyncDigitaloceanGenaiSDK
-from digitalocean_genai_sdk.types.organization.projects import (
- RateLimit,
+from serverless_inference_sdk_prod import ServerlessInferenceSDKProd, AsyncServerlessInferenceSDKProd
+from serverless_inference_sdk_prod.types.organization.projects import (
+ ProjectRateLimit,
RateLimitListResponse,
)
@@ -22,16 +22,16 @@ class TestRateLimits:
@pytest.mark.skip()
@parametrize
- def test_method_update(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_update(self, client: ServerlessInferenceSDKProd) -> None:
rate_limit = client.organization.projects.rate_limits.update(
rate_limit_id="rate_limit_id",
project_id="project_id",
)
- assert_matches_type(RateLimit, rate_limit, path=["response"])
+ assert_matches_type(ProjectRateLimit, rate_limit, path=["response"])
@pytest.mark.skip()
@parametrize
- def test_method_update_with_all_params(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_update_with_all_params(self, client: ServerlessInferenceSDKProd) -> None:
rate_limit = client.organization.projects.rate_limits.update(
rate_limit_id="rate_limit_id",
project_id="project_id",
@@ -42,11 +42,11 @@ def test_method_update_with_all_params(self, client: DigitaloceanGenaiSDK) -> No
max_requests_per_1_minute=0,
max_tokens_per_1_minute=0,
)
- assert_matches_type(RateLimit, rate_limit, path=["response"])
+ assert_matches_type(ProjectRateLimit, rate_limit, path=["response"])
@pytest.mark.skip()
@parametrize
- def test_raw_response_update(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_update(self, client: ServerlessInferenceSDKProd) -> None:
response = client.organization.projects.rate_limits.with_raw_response.update(
rate_limit_id="rate_limit_id",
project_id="project_id",
@@ -55,11 +55,11 @@ def test_raw_response_update(self, client: DigitaloceanGenaiSDK) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
rate_limit = response.parse()
- assert_matches_type(RateLimit, rate_limit, path=["response"])
+ assert_matches_type(ProjectRateLimit, rate_limit, path=["response"])
@pytest.mark.skip()
@parametrize
- def test_streaming_response_update(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_update(self, client: ServerlessInferenceSDKProd) -> None:
with client.organization.projects.rate_limits.with_streaming_response.update(
rate_limit_id="rate_limit_id",
project_id="project_id",
@@ -68,13 +68,13 @@ def test_streaming_response_update(self, client: DigitaloceanGenaiSDK) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
rate_limit = response.parse()
- assert_matches_type(RateLimit, rate_limit, path=["response"])
+ assert_matches_type(ProjectRateLimit, rate_limit, path=["response"])
assert cast(Any, response.is_closed) is True
@pytest.mark.skip()
@parametrize
- def test_path_params_update(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_path_params_update(self, client: ServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `project_id` but received ''"):
client.organization.projects.rate_limits.with_raw_response.update(
rate_limit_id="rate_limit_id",
@@ -89,7 +89,7 @@ def test_path_params_update(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_list(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_list(self, client: ServerlessInferenceSDKProd) -> None:
rate_limit = client.organization.projects.rate_limits.list(
project_id="project_id",
)
@@ -97,7 +97,7 @@ def test_method_list(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_list_with_all_params(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_list_with_all_params(self, client: ServerlessInferenceSDKProd) -> None:
rate_limit = client.organization.projects.rate_limits.list(
project_id="project_id",
after="after",
@@ -108,7 +108,7 @@ def test_method_list_with_all_params(self, client: DigitaloceanGenaiSDK) -> None
@pytest.mark.skip()
@parametrize
- def test_raw_response_list(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_list(self, client: ServerlessInferenceSDKProd) -> None:
response = client.organization.projects.rate_limits.with_raw_response.list(
project_id="project_id",
)
@@ -120,7 +120,7 @@ def test_raw_response_list(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_list(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_list(self, client: ServerlessInferenceSDKProd) -> None:
with client.organization.projects.rate_limits.with_streaming_response.list(
project_id="project_id",
) as response:
@@ -134,7 +134,7 @@ def test_streaming_response_list(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_path_params_list(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_path_params_list(self, client: ServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `project_id` but received ''"):
client.organization.projects.rate_limits.with_raw_response.list(
project_id="",
@@ -146,16 +146,16 @@ class TestAsyncRateLimits:
@pytest.mark.skip()
@parametrize
- async def test_method_update(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_update(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
rate_limit = await async_client.organization.projects.rate_limits.update(
rate_limit_id="rate_limit_id",
project_id="project_id",
)
- assert_matches_type(RateLimit, rate_limit, path=["response"])
+ assert_matches_type(ProjectRateLimit, rate_limit, path=["response"])
@pytest.mark.skip()
@parametrize
- async def test_method_update_with_all_params(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_update_with_all_params(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
rate_limit = await async_client.organization.projects.rate_limits.update(
rate_limit_id="rate_limit_id",
project_id="project_id",
@@ -166,11 +166,11 @@ async def test_method_update_with_all_params(self, async_client: AsyncDigitaloce
max_requests_per_1_minute=0,
max_tokens_per_1_minute=0,
)
- assert_matches_type(RateLimit, rate_limit, path=["response"])
+ assert_matches_type(ProjectRateLimit, rate_limit, path=["response"])
@pytest.mark.skip()
@parametrize
- async def test_raw_response_update(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_update(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.organization.projects.rate_limits.with_raw_response.update(
rate_limit_id="rate_limit_id",
project_id="project_id",
@@ -179,11 +179,11 @@ async def test_raw_response_update(self, async_client: AsyncDigitaloceanGenaiSDK
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
rate_limit = await response.parse()
- assert_matches_type(RateLimit, rate_limit, path=["response"])
+ assert_matches_type(ProjectRateLimit, rate_limit, path=["response"])
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_update(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_update(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.organization.projects.rate_limits.with_streaming_response.update(
rate_limit_id="rate_limit_id",
project_id="project_id",
@@ -192,13 +192,13 @@ async def test_streaming_response_update(self, async_client: AsyncDigitaloceanGe
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
rate_limit = await response.parse()
- assert_matches_type(RateLimit, rate_limit, path=["response"])
+ assert_matches_type(ProjectRateLimit, rate_limit, path=["response"])
assert cast(Any, response.is_closed) is True
@pytest.mark.skip()
@parametrize
- async def test_path_params_update(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_path_params_update(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `project_id` but received ''"):
await async_client.organization.projects.rate_limits.with_raw_response.update(
rate_limit_id="rate_limit_id",
@@ -213,7 +213,7 @@ async def test_path_params_update(self, async_client: AsyncDigitaloceanGenaiSDK)
@pytest.mark.skip()
@parametrize
- async def test_method_list(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_list(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
rate_limit = await async_client.organization.projects.rate_limits.list(
project_id="project_id",
)
@@ -221,7 +221,7 @@ async def test_method_list(self, async_client: AsyncDigitaloceanGenaiSDK) -> Non
@pytest.mark.skip()
@parametrize
- async def test_method_list_with_all_params(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_list_with_all_params(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
rate_limit = await async_client.organization.projects.rate_limits.list(
project_id="project_id",
after="after",
@@ -232,7 +232,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncDigitalocean
@pytest.mark.skip()
@parametrize
- async def test_raw_response_list(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_list(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.organization.projects.rate_limits.with_raw_response.list(
project_id="project_id",
)
@@ -244,7 +244,7 @@ async def test_raw_response_list(self, async_client: AsyncDigitaloceanGenaiSDK)
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_list(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_list(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.organization.projects.rate_limits.with_streaming_response.list(
project_id="project_id",
) as response:
@@ -258,7 +258,7 @@ async def test_streaming_response_list(self, async_client: AsyncDigitaloceanGena
@pytest.mark.skip()
@parametrize
- async def test_path_params_list(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_path_params_list(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `project_id` but received ''"):
await async_client.organization.projects.rate_limits.with_raw_response.list(
project_id="",
diff --git a/tests/api_resources/organization/projects/test_service_accounts.py b/tests/api_resources/organization/projects/test_service_accounts.py
index 4cbdbd38..21e6c4d0 100644
--- a/tests/api_resources/organization/projects/test_service_accounts.py
+++ b/tests/api_resources/organization/projects/test_service_accounts.py
@@ -8,9 +8,9 @@
import pytest
from tests.utils import assert_matches_type
-from digitalocean_genai_sdk import DigitaloceanGenaiSDK, AsyncDigitaloceanGenaiSDK
-from digitalocean_genai_sdk.types.organization.projects import (
- ServiceAccount,
+from serverless_inference_sdk_prod import ServerlessInferenceSDKProd, AsyncServerlessInferenceSDKProd
+from serverless_inference_sdk_prod.types.organization.projects import (
+ ProjectServiceAccount,
ServiceAccountListResponse,
ServiceAccountCreateResponse,
ServiceAccountDeleteResponse,
@@ -24,7 +24,7 @@ class TestServiceAccounts:
@pytest.mark.skip()
@parametrize
- def test_method_create(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_create(self, client: ServerlessInferenceSDKProd) -> None:
service_account = client.organization.projects.service_accounts.create(
project_id="project_id",
name="name",
@@ -33,7 +33,7 @@ def test_method_create(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_raw_response_create(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_create(self, client: ServerlessInferenceSDKProd) -> None:
response = client.organization.projects.service_accounts.with_raw_response.create(
project_id="project_id",
name="name",
@@ -46,7 +46,7 @@ def test_raw_response_create(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_create(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_create(self, client: ServerlessInferenceSDKProd) -> None:
with client.organization.projects.service_accounts.with_streaming_response.create(
project_id="project_id",
name="name",
@@ -61,7 +61,7 @@ def test_streaming_response_create(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_path_params_create(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_path_params_create(self, client: ServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `project_id` but received ''"):
client.organization.projects.service_accounts.with_raw_response.create(
project_id="",
@@ -70,16 +70,16 @@ def test_path_params_create(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_retrieve(self, client: ServerlessInferenceSDKProd) -> None:
service_account = client.organization.projects.service_accounts.retrieve(
service_account_id="service_account_id",
project_id="project_id",
)
- assert_matches_type(ServiceAccount, service_account, path=["response"])
+ assert_matches_type(ProjectServiceAccount, service_account, path=["response"])
@pytest.mark.skip()
@parametrize
- def test_raw_response_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_retrieve(self, client: ServerlessInferenceSDKProd) -> None:
response = client.organization.projects.service_accounts.with_raw_response.retrieve(
service_account_id="service_account_id",
project_id="project_id",
@@ -88,11 +88,11 @@ def test_raw_response_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
service_account = response.parse()
- assert_matches_type(ServiceAccount, service_account, path=["response"])
+ assert_matches_type(ProjectServiceAccount, service_account, path=["response"])
@pytest.mark.skip()
@parametrize
- def test_streaming_response_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_retrieve(self, client: ServerlessInferenceSDKProd) -> None:
with client.organization.projects.service_accounts.with_streaming_response.retrieve(
service_account_id="service_account_id",
project_id="project_id",
@@ -101,13 +101,13 @@ def test_streaming_response_retrieve(self, client: DigitaloceanGenaiSDK) -> None
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
service_account = response.parse()
- assert_matches_type(ServiceAccount, service_account, path=["response"])
+ assert_matches_type(ProjectServiceAccount, service_account, path=["response"])
assert cast(Any, response.is_closed) is True
@pytest.mark.skip()
@parametrize
- def test_path_params_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_path_params_retrieve(self, client: ServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `project_id` but received ''"):
client.organization.projects.service_accounts.with_raw_response.retrieve(
service_account_id="service_account_id",
@@ -122,7 +122,7 @@ def test_path_params_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_list(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_list(self, client: ServerlessInferenceSDKProd) -> None:
service_account = client.organization.projects.service_accounts.list(
project_id="project_id",
)
@@ -130,7 +130,7 @@ def test_method_list(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_list_with_all_params(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_list_with_all_params(self, client: ServerlessInferenceSDKProd) -> None:
service_account = client.organization.projects.service_accounts.list(
project_id="project_id",
after="after",
@@ -140,7 +140,7 @@ def test_method_list_with_all_params(self, client: DigitaloceanGenaiSDK) -> None
@pytest.mark.skip()
@parametrize
- def test_raw_response_list(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_list(self, client: ServerlessInferenceSDKProd) -> None:
response = client.organization.projects.service_accounts.with_raw_response.list(
project_id="project_id",
)
@@ -152,7 +152,7 @@ def test_raw_response_list(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_list(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_list(self, client: ServerlessInferenceSDKProd) -> None:
with client.organization.projects.service_accounts.with_streaming_response.list(
project_id="project_id",
) as response:
@@ -166,7 +166,7 @@ def test_streaming_response_list(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_path_params_list(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_path_params_list(self, client: ServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `project_id` but received ''"):
client.organization.projects.service_accounts.with_raw_response.list(
project_id="",
@@ -174,7 +174,7 @@ def test_path_params_list(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_delete(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_delete(self, client: ServerlessInferenceSDKProd) -> None:
service_account = client.organization.projects.service_accounts.delete(
service_account_id="service_account_id",
project_id="project_id",
@@ -183,7 +183,7 @@ def test_method_delete(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_raw_response_delete(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_delete(self, client: ServerlessInferenceSDKProd) -> None:
response = client.organization.projects.service_accounts.with_raw_response.delete(
service_account_id="service_account_id",
project_id="project_id",
@@ -196,7 +196,7 @@ def test_raw_response_delete(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_delete(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_delete(self, client: ServerlessInferenceSDKProd) -> None:
with client.organization.projects.service_accounts.with_streaming_response.delete(
service_account_id="service_account_id",
project_id="project_id",
@@ -211,7 +211,7 @@ def test_streaming_response_delete(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_path_params_delete(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_path_params_delete(self, client: ServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `project_id` but received ''"):
client.organization.projects.service_accounts.with_raw_response.delete(
service_account_id="service_account_id",
@@ -230,7 +230,7 @@ class TestAsyncServiceAccounts:
@pytest.mark.skip()
@parametrize
- async def test_method_create(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_create(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
service_account = await async_client.organization.projects.service_accounts.create(
project_id="project_id",
name="name",
@@ -239,7 +239,7 @@ async def test_method_create(self, async_client: AsyncDigitaloceanGenaiSDK) -> N
@pytest.mark.skip()
@parametrize
- async def test_raw_response_create(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_create(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.organization.projects.service_accounts.with_raw_response.create(
project_id="project_id",
name="name",
@@ -252,7 +252,7 @@ async def test_raw_response_create(self, async_client: AsyncDigitaloceanGenaiSDK
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_create(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_create(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.organization.projects.service_accounts.with_streaming_response.create(
project_id="project_id",
name="name",
@@ -267,7 +267,7 @@ async def test_streaming_response_create(self, async_client: AsyncDigitaloceanGe
@pytest.mark.skip()
@parametrize
- async def test_path_params_create(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_path_params_create(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `project_id` but received ''"):
await async_client.organization.projects.service_accounts.with_raw_response.create(
project_id="",
@@ -276,16 +276,16 @@ async def test_path_params_create(self, async_client: AsyncDigitaloceanGenaiSDK)
@pytest.mark.skip()
@parametrize
- async def test_method_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_retrieve(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
service_account = await async_client.organization.projects.service_accounts.retrieve(
service_account_id="service_account_id",
project_id="project_id",
)
- assert_matches_type(ServiceAccount, service_account, path=["response"])
+ assert_matches_type(ProjectServiceAccount, service_account, path=["response"])
@pytest.mark.skip()
@parametrize
- async def test_raw_response_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_retrieve(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.organization.projects.service_accounts.with_raw_response.retrieve(
service_account_id="service_account_id",
project_id="project_id",
@@ -294,11 +294,11 @@ async def test_raw_response_retrieve(self, async_client: AsyncDigitaloceanGenaiS
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
service_account = await response.parse()
- assert_matches_type(ServiceAccount, service_account, path=["response"])
+ assert_matches_type(ProjectServiceAccount, service_account, path=["response"])
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_retrieve(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.organization.projects.service_accounts.with_streaming_response.retrieve(
service_account_id="service_account_id",
project_id="project_id",
@@ -307,13 +307,13 @@ async def test_streaming_response_retrieve(self, async_client: AsyncDigitalocean
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
service_account = await response.parse()
- assert_matches_type(ServiceAccount, service_account, path=["response"])
+ assert_matches_type(ProjectServiceAccount, service_account, path=["response"])
assert cast(Any, response.is_closed) is True
@pytest.mark.skip()
@parametrize
- async def test_path_params_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_path_params_retrieve(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `project_id` but received ''"):
await async_client.organization.projects.service_accounts.with_raw_response.retrieve(
service_account_id="service_account_id",
@@ -328,7 +328,7 @@ async def test_path_params_retrieve(self, async_client: AsyncDigitaloceanGenaiSD
@pytest.mark.skip()
@parametrize
- async def test_method_list(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_list(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
service_account = await async_client.organization.projects.service_accounts.list(
project_id="project_id",
)
@@ -336,7 +336,7 @@ async def test_method_list(self, async_client: AsyncDigitaloceanGenaiSDK) -> Non
@pytest.mark.skip()
@parametrize
- async def test_method_list_with_all_params(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_list_with_all_params(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
service_account = await async_client.organization.projects.service_accounts.list(
project_id="project_id",
after="after",
@@ -346,7 +346,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncDigitalocean
@pytest.mark.skip()
@parametrize
- async def test_raw_response_list(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_list(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.organization.projects.service_accounts.with_raw_response.list(
project_id="project_id",
)
@@ -358,7 +358,7 @@ async def test_raw_response_list(self, async_client: AsyncDigitaloceanGenaiSDK)
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_list(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_list(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.organization.projects.service_accounts.with_streaming_response.list(
project_id="project_id",
) as response:
@@ -372,7 +372,7 @@ async def test_streaming_response_list(self, async_client: AsyncDigitaloceanGena
@pytest.mark.skip()
@parametrize
- async def test_path_params_list(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_path_params_list(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `project_id` but received ''"):
await async_client.organization.projects.service_accounts.with_raw_response.list(
project_id="",
@@ -380,7 +380,7 @@ async def test_path_params_list(self, async_client: AsyncDigitaloceanGenaiSDK) -
@pytest.mark.skip()
@parametrize
- async def test_method_delete(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_delete(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
service_account = await async_client.organization.projects.service_accounts.delete(
service_account_id="service_account_id",
project_id="project_id",
@@ -389,7 +389,7 @@ async def test_method_delete(self, async_client: AsyncDigitaloceanGenaiSDK) -> N
@pytest.mark.skip()
@parametrize
- async def test_raw_response_delete(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_delete(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.organization.projects.service_accounts.with_raw_response.delete(
service_account_id="service_account_id",
project_id="project_id",
@@ -402,7 +402,7 @@ async def test_raw_response_delete(self, async_client: AsyncDigitaloceanGenaiSDK
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_delete(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_delete(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.organization.projects.service_accounts.with_streaming_response.delete(
service_account_id="service_account_id",
project_id="project_id",
@@ -417,7 +417,7 @@ async def test_streaming_response_delete(self, async_client: AsyncDigitaloceanGe
@pytest.mark.skip()
@parametrize
- async def test_path_params_delete(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_path_params_delete(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `project_id` but received ''"):
await async_client.organization.projects.service_accounts.with_raw_response.delete(
service_account_id="service_account_id",
diff --git a/tests/api_resources/organization/projects/test_users.py b/tests/api_resources/organization/projects/test_users.py
index df2a136e..69a89741 100644
--- a/tests/api_resources/organization/projects/test_users.py
+++ b/tests/api_resources/organization/projects/test_users.py
@@ -8,8 +8,8 @@
import pytest
from tests.utils import assert_matches_type
-from digitalocean_genai_sdk import DigitaloceanGenaiSDK, AsyncDigitaloceanGenaiSDK
-from digitalocean_genai_sdk.types.organization.projects import (
+from serverless_inference_sdk_prod import ServerlessInferenceSDKProd, AsyncServerlessInferenceSDKProd
+from serverless_inference_sdk_prod.types.organization.projects import (
ProjectUser,
UserListResponse,
UserDeleteResponse,
@@ -23,7 +23,7 @@ class TestUsers:
@pytest.mark.skip()
@parametrize
- def test_method_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_retrieve(self, client: ServerlessInferenceSDKProd) -> None:
user = client.organization.projects.users.retrieve(
user_id="user_id",
project_id="project_id",
@@ -32,7 +32,7 @@ def test_method_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_raw_response_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_retrieve(self, client: ServerlessInferenceSDKProd) -> None:
response = client.organization.projects.users.with_raw_response.retrieve(
user_id="user_id",
project_id="project_id",
@@ -45,7 +45,7 @@ def test_raw_response_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_retrieve(self, client: ServerlessInferenceSDKProd) -> None:
with client.organization.projects.users.with_streaming_response.retrieve(
user_id="user_id",
project_id="project_id",
@@ -60,7 +60,7 @@ def test_streaming_response_retrieve(self, client: DigitaloceanGenaiSDK) -> None
@pytest.mark.skip()
@parametrize
- def test_path_params_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_path_params_retrieve(self, client: ServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `project_id` but received ''"):
client.organization.projects.users.with_raw_response.retrieve(
user_id="user_id",
@@ -75,7 +75,7 @@ def test_path_params_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_update(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_update(self, client: ServerlessInferenceSDKProd) -> None:
user = client.organization.projects.users.update(
user_id="user_id",
project_id="project_id",
@@ -85,7 +85,7 @@ def test_method_update(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_raw_response_update(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_update(self, client: ServerlessInferenceSDKProd) -> None:
response = client.organization.projects.users.with_raw_response.update(
user_id="user_id",
project_id="project_id",
@@ -99,7 +99,7 @@ def test_raw_response_update(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_update(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_update(self, client: ServerlessInferenceSDKProd) -> None:
with client.organization.projects.users.with_streaming_response.update(
user_id="user_id",
project_id="project_id",
@@ -115,7 +115,7 @@ def test_streaming_response_update(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_path_params_update(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_path_params_update(self, client: ServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `project_id` but received ''"):
client.organization.projects.users.with_raw_response.update(
user_id="user_id",
@@ -132,7 +132,7 @@ def test_path_params_update(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_list(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_list(self, client: ServerlessInferenceSDKProd) -> None:
user = client.organization.projects.users.list(
project_id="project_id",
)
@@ -140,7 +140,7 @@ def test_method_list(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_list_with_all_params(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_list_with_all_params(self, client: ServerlessInferenceSDKProd) -> None:
user = client.organization.projects.users.list(
project_id="project_id",
after="after",
@@ -150,7 +150,7 @@ def test_method_list_with_all_params(self, client: DigitaloceanGenaiSDK) -> None
@pytest.mark.skip()
@parametrize
- def test_raw_response_list(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_list(self, client: ServerlessInferenceSDKProd) -> None:
response = client.organization.projects.users.with_raw_response.list(
project_id="project_id",
)
@@ -162,7 +162,7 @@ def test_raw_response_list(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_list(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_list(self, client: ServerlessInferenceSDKProd) -> None:
with client.organization.projects.users.with_streaming_response.list(
project_id="project_id",
) as response:
@@ -176,7 +176,7 @@ def test_streaming_response_list(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_path_params_list(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_path_params_list(self, client: ServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `project_id` but received ''"):
client.organization.projects.users.with_raw_response.list(
project_id="",
@@ -184,7 +184,7 @@ def test_path_params_list(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_delete(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_delete(self, client: ServerlessInferenceSDKProd) -> None:
user = client.organization.projects.users.delete(
user_id="user_id",
project_id="project_id",
@@ -193,7 +193,7 @@ def test_method_delete(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_raw_response_delete(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_delete(self, client: ServerlessInferenceSDKProd) -> None:
response = client.organization.projects.users.with_raw_response.delete(
user_id="user_id",
project_id="project_id",
@@ -206,7 +206,7 @@ def test_raw_response_delete(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_delete(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_delete(self, client: ServerlessInferenceSDKProd) -> None:
with client.organization.projects.users.with_streaming_response.delete(
user_id="user_id",
project_id="project_id",
@@ -221,7 +221,7 @@ def test_streaming_response_delete(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_path_params_delete(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_path_params_delete(self, client: ServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `project_id` but received ''"):
client.organization.projects.users.with_raw_response.delete(
user_id="user_id",
@@ -236,7 +236,7 @@ def test_path_params_delete(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_add(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_add(self, client: ServerlessInferenceSDKProd) -> None:
user = client.organization.projects.users.add(
project_id="project_id",
role="owner",
@@ -246,7 +246,7 @@ def test_method_add(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_raw_response_add(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_add(self, client: ServerlessInferenceSDKProd) -> None:
response = client.organization.projects.users.with_raw_response.add(
project_id="project_id",
role="owner",
@@ -260,7 +260,7 @@ def test_raw_response_add(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_add(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_add(self, client: ServerlessInferenceSDKProd) -> None:
with client.organization.projects.users.with_streaming_response.add(
project_id="project_id",
role="owner",
@@ -276,7 +276,7 @@ def test_streaming_response_add(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_path_params_add(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_path_params_add(self, client: ServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `project_id` but received ''"):
client.organization.projects.users.with_raw_response.add(
project_id="",
@@ -290,7 +290,7 @@ class TestAsyncUsers:
@pytest.mark.skip()
@parametrize
- async def test_method_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_retrieve(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
user = await async_client.organization.projects.users.retrieve(
user_id="user_id",
project_id="project_id",
@@ -299,7 +299,7 @@ async def test_method_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) ->
@pytest.mark.skip()
@parametrize
- async def test_raw_response_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_retrieve(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.organization.projects.users.with_raw_response.retrieve(
user_id="user_id",
project_id="project_id",
@@ -312,7 +312,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncDigitaloceanGenaiS
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_retrieve(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.organization.projects.users.with_streaming_response.retrieve(
user_id="user_id",
project_id="project_id",
@@ -327,7 +327,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncDigitalocean
@pytest.mark.skip()
@parametrize
- async def test_path_params_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_path_params_retrieve(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `project_id` but received ''"):
await async_client.organization.projects.users.with_raw_response.retrieve(
user_id="user_id",
@@ -342,7 +342,7 @@ async def test_path_params_retrieve(self, async_client: AsyncDigitaloceanGenaiSD
@pytest.mark.skip()
@parametrize
- async def test_method_update(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_update(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
user = await async_client.organization.projects.users.update(
user_id="user_id",
project_id="project_id",
@@ -352,7 +352,7 @@ async def test_method_update(self, async_client: AsyncDigitaloceanGenaiSDK) -> N
@pytest.mark.skip()
@parametrize
- async def test_raw_response_update(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_update(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.organization.projects.users.with_raw_response.update(
user_id="user_id",
project_id="project_id",
@@ -366,7 +366,7 @@ async def test_raw_response_update(self, async_client: AsyncDigitaloceanGenaiSDK
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_update(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_update(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.organization.projects.users.with_streaming_response.update(
user_id="user_id",
project_id="project_id",
@@ -382,7 +382,7 @@ async def test_streaming_response_update(self, async_client: AsyncDigitaloceanGe
@pytest.mark.skip()
@parametrize
- async def test_path_params_update(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_path_params_update(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `project_id` but received ''"):
await async_client.organization.projects.users.with_raw_response.update(
user_id="user_id",
@@ -399,7 +399,7 @@ async def test_path_params_update(self, async_client: AsyncDigitaloceanGenaiSDK)
@pytest.mark.skip()
@parametrize
- async def test_method_list(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_list(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
user = await async_client.organization.projects.users.list(
project_id="project_id",
)
@@ -407,7 +407,7 @@ async def test_method_list(self, async_client: AsyncDigitaloceanGenaiSDK) -> Non
@pytest.mark.skip()
@parametrize
- async def test_method_list_with_all_params(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_list_with_all_params(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
user = await async_client.organization.projects.users.list(
project_id="project_id",
after="after",
@@ -417,7 +417,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncDigitalocean
@pytest.mark.skip()
@parametrize
- async def test_raw_response_list(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_list(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.organization.projects.users.with_raw_response.list(
project_id="project_id",
)
@@ -429,7 +429,7 @@ async def test_raw_response_list(self, async_client: AsyncDigitaloceanGenaiSDK)
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_list(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_list(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.organization.projects.users.with_streaming_response.list(
project_id="project_id",
) as response:
@@ -443,7 +443,7 @@ async def test_streaming_response_list(self, async_client: AsyncDigitaloceanGena
@pytest.mark.skip()
@parametrize
- async def test_path_params_list(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_path_params_list(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `project_id` but received ''"):
await async_client.organization.projects.users.with_raw_response.list(
project_id="",
@@ -451,7 +451,7 @@ async def test_path_params_list(self, async_client: AsyncDigitaloceanGenaiSDK) -
@pytest.mark.skip()
@parametrize
- async def test_method_delete(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_delete(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
user = await async_client.organization.projects.users.delete(
user_id="user_id",
project_id="project_id",
@@ -460,7 +460,7 @@ async def test_method_delete(self, async_client: AsyncDigitaloceanGenaiSDK) -> N
@pytest.mark.skip()
@parametrize
- async def test_raw_response_delete(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_delete(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.organization.projects.users.with_raw_response.delete(
user_id="user_id",
project_id="project_id",
@@ -473,7 +473,7 @@ async def test_raw_response_delete(self, async_client: AsyncDigitaloceanGenaiSDK
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_delete(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_delete(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.organization.projects.users.with_streaming_response.delete(
user_id="user_id",
project_id="project_id",
@@ -488,7 +488,7 @@ async def test_streaming_response_delete(self, async_client: AsyncDigitaloceanGe
@pytest.mark.skip()
@parametrize
- async def test_path_params_delete(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_path_params_delete(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `project_id` but received ''"):
await async_client.organization.projects.users.with_raw_response.delete(
user_id="user_id",
@@ -503,7 +503,7 @@ async def test_path_params_delete(self, async_client: AsyncDigitaloceanGenaiSDK)
@pytest.mark.skip()
@parametrize
- async def test_method_add(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_add(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
user = await async_client.organization.projects.users.add(
project_id="project_id",
role="owner",
@@ -513,7 +513,7 @@ async def test_method_add(self, async_client: AsyncDigitaloceanGenaiSDK) -> None
@pytest.mark.skip()
@parametrize
- async def test_raw_response_add(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_add(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.organization.projects.users.with_raw_response.add(
project_id="project_id",
role="owner",
@@ -527,7 +527,7 @@ async def test_raw_response_add(self, async_client: AsyncDigitaloceanGenaiSDK) -
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_add(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_add(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.organization.projects.users.with_streaming_response.add(
project_id="project_id",
role="owner",
@@ -543,7 +543,7 @@ async def test_streaming_response_add(self, async_client: AsyncDigitaloceanGenai
@pytest.mark.skip()
@parametrize
- async def test_path_params_add(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_path_params_add(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `project_id` but received ''"):
await async_client.organization.projects.users.with_raw_response.add(
project_id="",
diff --git a/tests/api_resources/organization/test_admin_api_keys.py b/tests/api_resources/organization/test_admin_api_keys.py
index 0e0949a1..6b6a08d3 100644
--- a/tests/api_resources/organization/test_admin_api_keys.py
+++ b/tests/api_resources/organization/test_admin_api_keys.py
@@ -8,8 +8,8 @@
import pytest
from tests.utils import assert_matches_type
-from digitalocean_genai_sdk import DigitaloceanGenaiSDK, AsyncDigitaloceanGenaiSDK
-from digitalocean_genai_sdk.types.organization import (
+from serverless_inference_sdk_prod import ServerlessInferenceSDKProd, AsyncServerlessInferenceSDKProd
+from serverless_inference_sdk_prod.types.organization import (
AdminAPIKey,
AdminAPIKeyListResponse,
AdminAPIKeyDeleteResponse,
@@ -23,7 +23,7 @@ class TestAdminAPIKeys:
@pytest.mark.skip()
@parametrize
- def test_method_create(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_create(self, client: ServerlessInferenceSDKProd) -> None:
admin_api_key = client.organization.admin_api_keys.create(
name="New Admin Key",
)
@@ -31,7 +31,7 @@ def test_method_create(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_raw_response_create(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_create(self, client: ServerlessInferenceSDKProd) -> None:
response = client.organization.admin_api_keys.with_raw_response.create(
name="New Admin Key",
)
@@ -43,7 +43,7 @@ def test_raw_response_create(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_create(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_create(self, client: ServerlessInferenceSDKProd) -> None:
with client.organization.admin_api_keys.with_streaming_response.create(
name="New Admin Key",
) as response:
@@ -57,7 +57,7 @@ def test_streaming_response_create(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_retrieve(self, client: ServerlessInferenceSDKProd) -> None:
admin_api_key = client.organization.admin_api_keys.retrieve(
"key_id",
)
@@ -65,7 +65,7 @@ def test_method_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_raw_response_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_retrieve(self, client: ServerlessInferenceSDKProd) -> None:
response = client.organization.admin_api_keys.with_raw_response.retrieve(
"key_id",
)
@@ -77,7 +77,7 @@ def test_raw_response_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_retrieve(self, client: ServerlessInferenceSDKProd) -> None:
with client.organization.admin_api_keys.with_streaming_response.retrieve(
"key_id",
) as response:
@@ -91,7 +91,7 @@ def test_streaming_response_retrieve(self, client: DigitaloceanGenaiSDK) -> None
@pytest.mark.skip()
@parametrize
- def test_path_params_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_path_params_retrieve(self, client: ServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `key_id` but received ''"):
client.organization.admin_api_keys.with_raw_response.retrieve(
"",
@@ -99,13 +99,13 @@ def test_path_params_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_list(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_list(self, client: ServerlessInferenceSDKProd) -> None:
admin_api_key = client.organization.admin_api_keys.list()
assert_matches_type(AdminAPIKeyListResponse, admin_api_key, path=["response"])
@pytest.mark.skip()
@parametrize
- def test_method_list_with_all_params(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_list_with_all_params(self, client: ServerlessInferenceSDKProd) -> None:
admin_api_key = client.organization.admin_api_keys.list(
after="after",
limit=0,
@@ -115,7 +115,7 @@ def test_method_list_with_all_params(self, client: DigitaloceanGenaiSDK) -> None
@pytest.mark.skip()
@parametrize
- def test_raw_response_list(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_list(self, client: ServerlessInferenceSDKProd) -> None:
response = client.organization.admin_api_keys.with_raw_response.list()
assert response.is_closed is True
@@ -125,7 +125,7 @@ def test_raw_response_list(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_list(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_list(self, client: ServerlessInferenceSDKProd) -> None:
with client.organization.admin_api_keys.with_streaming_response.list() as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -137,7 +137,7 @@ def test_streaming_response_list(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_delete(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_delete(self, client: ServerlessInferenceSDKProd) -> None:
admin_api_key = client.organization.admin_api_keys.delete(
"key_id",
)
@@ -145,7 +145,7 @@ def test_method_delete(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_raw_response_delete(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_delete(self, client: ServerlessInferenceSDKProd) -> None:
response = client.organization.admin_api_keys.with_raw_response.delete(
"key_id",
)
@@ -157,7 +157,7 @@ def test_raw_response_delete(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_delete(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_delete(self, client: ServerlessInferenceSDKProd) -> None:
with client.organization.admin_api_keys.with_streaming_response.delete(
"key_id",
) as response:
@@ -171,7 +171,7 @@ def test_streaming_response_delete(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_path_params_delete(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_path_params_delete(self, client: ServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `key_id` but received ''"):
client.organization.admin_api_keys.with_raw_response.delete(
"",
@@ -183,7 +183,7 @@ class TestAsyncAdminAPIKeys:
@pytest.mark.skip()
@parametrize
- async def test_method_create(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_create(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
admin_api_key = await async_client.organization.admin_api_keys.create(
name="New Admin Key",
)
@@ -191,7 +191,7 @@ async def test_method_create(self, async_client: AsyncDigitaloceanGenaiSDK) -> N
@pytest.mark.skip()
@parametrize
- async def test_raw_response_create(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_create(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.organization.admin_api_keys.with_raw_response.create(
name="New Admin Key",
)
@@ -203,7 +203,7 @@ async def test_raw_response_create(self, async_client: AsyncDigitaloceanGenaiSDK
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_create(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_create(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.organization.admin_api_keys.with_streaming_response.create(
name="New Admin Key",
) as response:
@@ -217,7 +217,7 @@ async def test_streaming_response_create(self, async_client: AsyncDigitaloceanGe
@pytest.mark.skip()
@parametrize
- async def test_method_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_retrieve(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
admin_api_key = await async_client.organization.admin_api_keys.retrieve(
"key_id",
)
@@ -225,7 +225,7 @@ async def test_method_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) ->
@pytest.mark.skip()
@parametrize
- async def test_raw_response_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_retrieve(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.organization.admin_api_keys.with_raw_response.retrieve(
"key_id",
)
@@ -237,7 +237,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncDigitaloceanGenaiS
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_retrieve(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.organization.admin_api_keys.with_streaming_response.retrieve(
"key_id",
) as response:
@@ -251,7 +251,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncDigitalocean
@pytest.mark.skip()
@parametrize
- async def test_path_params_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_path_params_retrieve(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `key_id` but received ''"):
await async_client.organization.admin_api_keys.with_raw_response.retrieve(
"",
@@ -259,13 +259,13 @@ async def test_path_params_retrieve(self, async_client: AsyncDigitaloceanGenaiSD
@pytest.mark.skip()
@parametrize
- async def test_method_list(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_list(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
admin_api_key = await async_client.organization.admin_api_keys.list()
assert_matches_type(AdminAPIKeyListResponse, admin_api_key, path=["response"])
@pytest.mark.skip()
@parametrize
- async def test_method_list_with_all_params(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_list_with_all_params(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
admin_api_key = await async_client.organization.admin_api_keys.list(
after="after",
limit=0,
@@ -275,7 +275,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncDigitalocean
@pytest.mark.skip()
@parametrize
- async def test_raw_response_list(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_list(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.organization.admin_api_keys.with_raw_response.list()
assert response.is_closed is True
@@ -285,7 +285,7 @@ async def test_raw_response_list(self, async_client: AsyncDigitaloceanGenaiSDK)
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_list(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_list(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.organization.admin_api_keys.with_streaming_response.list() as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -297,7 +297,7 @@ async def test_streaming_response_list(self, async_client: AsyncDigitaloceanGena
@pytest.mark.skip()
@parametrize
- async def test_method_delete(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_delete(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
admin_api_key = await async_client.organization.admin_api_keys.delete(
"key_id",
)
@@ -305,7 +305,7 @@ async def test_method_delete(self, async_client: AsyncDigitaloceanGenaiSDK) -> N
@pytest.mark.skip()
@parametrize
- async def test_raw_response_delete(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_delete(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.organization.admin_api_keys.with_raw_response.delete(
"key_id",
)
@@ -317,7 +317,7 @@ async def test_raw_response_delete(self, async_client: AsyncDigitaloceanGenaiSDK
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_delete(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_delete(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.organization.admin_api_keys.with_streaming_response.delete(
"key_id",
) as response:
@@ -331,7 +331,7 @@ async def test_streaming_response_delete(self, async_client: AsyncDigitaloceanGe
@pytest.mark.skip()
@parametrize
- async def test_path_params_delete(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_path_params_delete(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `key_id` but received ''"):
await async_client.organization.admin_api_keys.with_raw_response.delete(
"",
diff --git a/tests/api_resources/organization/test_invites.py b/tests/api_resources/organization/test_invites.py
index 73528d26..c817ce47 100644
--- a/tests/api_resources/organization/test_invites.py
+++ b/tests/api_resources/organization/test_invites.py
@@ -8,8 +8,8 @@
import pytest
from tests.utils import assert_matches_type
-from digitalocean_genai_sdk import DigitaloceanGenaiSDK, AsyncDigitaloceanGenaiSDK
-from digitalocean_genai_sdk.types.organization import (
+from serverless_inference_sdk_prod import ServerlessInferenceSDKProd, AsyncServerlessInferenceSDKProd
+from serverless_inference_sdk_prod.types.organization import (
Invite,
InviteListResponse,
InviteDeleteResponse,
@@ -23,7 +23,7 @@ class TestInvites:
@pytest.mark.skip()
@parametrize
- def test_method_create(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_create(self, client: ServerlessInferenceSDKProd) -> None:
invite = client.organization.invites.create(
email="email",
role="reader",
@@ -32,7 +32,7 @@ def test_method_create(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_create_with_all_params(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_create_with_all_params(self, client: ServerlessInferenceSDKProd) -> None:
invite = client.organization.invites.create(
email="email",
role="reader",
@@ -47,7 +47,7 @@ def test_method_create_with_all_params(self, client: DigitaloceanGenaiSDK) -> No
@pytest.mark.skip()
@parametrize
- def test_raw_response_create(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_create(self, client: ServerlessInferenceSDKProd) -> None:
response = client.organization.invites.with_raw_response.create(
email="email",
role="reader",
@@ -60,7 +60,7 @@ def test_raw_response_create(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_create(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_create(self, client: ServerlessInferenceSDKProd) -> None:
with client.organization.invites.with_streaming_response.create(
email="email",
role="reader",
@@ -75,7 +75,7 @@ def test_streaming_response_create(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_retrieve(self, client: ServerlessInferenceSDKProd) -> None:
invite = client.organization.invites.retrieve(
"invite_id",
)
@@ -83,7 +83,7 @@ def test_method_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_raw_response_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_retrieve(self, client: ServerlessInferenceSDKProd) -> None:
response = client.organization.invites.with_raw_response.retrieve(
"invite_id",
)
@@ -95,7 +95,7 @@ def test_raw_response_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_retrieve(self, client: ServerlessInferenceSDKProd) -> None:
with client.organization.invites.with_streaming_response.retrieve(
"invite_id",
) as response:
@@ -109,7 +109,7 @@ def test_streaming_response_retrieve(self, client: DigitaloceanGenaiSDK) -> None
@pytest.mark.skip()
@parametrize
- def test_path_params_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_path_params_retrieve(self, client: ServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `invite_id` but received ''"):
client.organization.invites.with_raw_response.retrieve(
"",
@@ -117,13 +117,13 @@ def test_path_params_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_list(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_list(self, client: ServerlessInferenceSDKProd) -> None:
invite = client.organization.invites.list()
assert_matches_type(InviteListResponse, invite, path=["response"])
@pytest.mark.skip()
@parametrize
- def test_method_list_with_all_params(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_list_with_all_params(self, client: ServerlessInferenceSDKProd) -> None:
invite = client.organization.invites.list(
after="after",
limit=0,
@@ -132,7 +132,7 @@ def test_method_list_with_all_params(self, client: DigitaloceanGenaiSDK) -> None
@pytest.mark.skip()
@parametrize
- def test_raw_response_list(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_list(self, client: ServerlessInferenceSDKProd) -> None:
response = client.organization.invites.with_raw_response.list()
assert response.is_closed is True
@@ -142,7 +142,7 @@ def test_raw_response_list(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_list(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_list(self, client: ServerlessInferenceSDKProd) -> None:
with client.organization.invites.with_streaming_response.list() as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -154,7 +154,7 @@ def test_streaming_response_list(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_delete(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_delete(self, client: ServerlessInferenceSDKProd) -> None:
invite = client.organization.invites.delete(
"invite_id",
)
@@ -162,7 +162,7 @@ def test_method_delete(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_raw_response_delete(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_delete(self, client: ServerlessInferenceSDKProd) -> None:
response = client.organization.invites.with_raw_response.delete(
"invite_id",
)
@@ -174,7 +174,7 @@ def test_raw_response_delete(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_delete(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_delete(self, client: ServerlessInferenceSDKProd) -> None:
with client.organization.invites.with_streaming_response.delete(
"invite_id",
) as response:
@@ -188,7 +188,7 @@ def test_streaming_response_delete(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_path_params_delete(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_path_params_delete(self, client: ServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `invite_id` but received ''"):
client.organization.invites.with_raw_response.delete(
"",
@@ -200,7 +200,7 @@ class TestAsyncInvites:
@pytest.mark.skip()
@parametrize
- async def test_method_create(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_create(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
invite = await async_client.organization.invites.create(
email="email",
role="reader",
@@ -209,7 +209,7 @@ async def test_method_create(self, async_client: AsyncDigitaloceanGenaiSDK) -> N
@pytest.mark.skip()
@parametrize
- async def test_method_create_with_all_params(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_create_with_all_params(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
invite = await async_client.organization.invites.create(
email="email",
role="reader",
@@ -224,7 +224,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncDigitaloce
@pytest.mark.skip()
@parametrize
- async def test_raw_response_create(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_create(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.organization.invites.with_raw_response.create(
email="email",
role="reader",
@@ -237,7 +237,7 @@ async def test_raw_response_create(self, async_client: AsyncDigitaloceanGenaiSDK
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_create(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_create(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.organization.invites.with_streaming_response.create(
email="email",
role="reader",
@@ -252,7 +252,7 @@ async def test_streaming_response_create(self, async_client: AsyncDigitaloceanGe
@pytest.mark.skip()
@parametrize
- async def test_method_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_retrieve(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
invite = await async_client.organization.invites.retrieve(
"invite_id",
)
@@ -260,7 +260,7 @@ async def test_method_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) ->
@pytest.mark.skip()
@parametrize
- async def test_raw_response_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_retrieve(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.organization.invites.with_raw_response.retrieve(
"invite_id",
)
@@ -272,7 +272,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncDigitaloceanGenaiS
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_retrieve(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.organization.invites.with_streaming_response.retrieve(
"invite_id",
) as response:
@@ -286,7 +286,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncDigitalocean
@pytest.mark.skip()
@parametrize
- async def test_path_params_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_path_params_retrieve(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `invite_id` but received ''"):
await async_client.organization.invites.with_raw_response.retrieve(
"",
@@ -294,13 +294,13 @@ async def test_path_params_retrieve(self, async_client: AsyncDigitaloceanGenaiSD
@pytest.mark.skip()
@parametrize
- async def test_method_list(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_list(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
invite = await async_client.organization.invites.list()
assert_matches_type(InviteListResponse, invite, path=["response"])
@pytest.mark.skip()
@parametrize
- async def test_method_list_with_all_params(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_list_with_all_params(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
invite = await async_client.organization.invites.list(
after="after",
limit=0,
@@ -309,7 +309,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncDigitalocean
@pytest.mark.skip()
@parametrize
- async def test_raw_response_list(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_list(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.organization.invites.with_raw_response.list()
assert response.is_closed is True
@@ -319,7 +319,7 @@ async def test_raw_response_list(self, async_client: AsyncDigitaloceanGenaiSDK)
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_list(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_list(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.organization.invites.with_streaming_response.list() as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -331,7 +331,7 @@ async def test_streaming_response_list(self, async_client: AsyncDigitaloceanGena
@pytest.mark.skip()
@parametrize
- async def test_method_delete(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_delete(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
invite = await async_client.organization.invites.delete(
"invite_id",
)
@@ -339,7 +339,7 @@ async def test_method_delete(self, async_client: AsyncDigitaloceanGenaiSDK) -> N
@pytest.mark.skip()
@parametrize
- async def test_raw_response_delete(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_delete(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.organization.invites.with_raw_response.delete(
"invite_id",
)
@@ -351,7 +351,7 @@ async def test_raw_response_delete(self, async_client: AsyncDigitaloceanGenaiSDK
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_delete(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_delete(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.organization.invites.with_streaming_response.delete(
"invite_id",
) as response:
@@ -365,7 +365,7 @@ async def test_streaming_response_delete(self, async_client: AsyncDigitaloceanGe
@pytest.mark.skip()
@parametrize
- async def test_path_params_delete(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_path_params_delete(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `invite_id` but received ''"):
await async_client.organization.invites.with_raw_response.delete(
"",
diff --git a/tests/api_resources/organization/test_projects.py b/tests/api_resources/organization/test_projects.py
index 6b9dd9a4..bb055b0a 100644
--- a/tests/api_resources/organization/test_projects.py
+++ b/tests/api_resources/organization/test_projects.py
@@ -8,8 +8,8 @@
import pytest
from tests.utils import assert_matches_type
-from digitalocean_genai_sdk import DigitaloceanGenaiSDK, AsyncDigitaloceanGenaiSDK
-from digitalocean_genai_sdk.types.organization import (
+from serverless_inference_sdk_prod import ServerlessInferenceSDKProd, AsyncServerlessInferenceSDKProd
+from serverless_inference_sdk_prod.types.organization import (
Project,
ProjectListResponse,
)
@@ -22,7 +22,7 @@ class TestProjects:
@pytest.mark.skip()
@parametrize
- def test_method_create(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_create(self, client: ServerlessInferenceSDKProd) -> None:
project = client.organization.projects.create(
name="name",
)
@@ -30,7 +30,7 @@ def test_method_create(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_raw_response_create(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_create(self, client: ServerlessInferenceSDKProd) -> None:
response = client.organization.projects.with_raw_response.create(
name="name",
)
@@ -42,7 +42,7 @@ def test_raw_response_create(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_create(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_create(self, client: ServerlessInferenceSDKProd) -> None:
with client.organization.projects.with_streaming_response.create(
name="name",
) as response:
@@ -56,7 +56,7 @@ def test_streaming_response_create(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_retrieve(self, client: ServerlessInferenceSDKProd) -> None:
project = client.organization.projects.retrieve(
"project_id",
)
@@ -64,7 +64,7 @@ def test_method_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_raw_response_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_retrieve(self, client: ServerlessInferenceSDKProd) -> None:
response = client.organization.projects.with_raw_response.retrieve(
"project_id",
)
@@ -76,7 +76,7 @@ def test_raw_response_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_retrieve(self, client: ServerlessInferenceSDKProd) -> None:
with client.organization.projects.with_streaming_response.retrieve(
"project_id",
) as response:
@@ -90,7 +90,7 @@ def test_streaming_response_retrieve(self, client: DigitaloceanGenaiSDK) -> None
@pytest.mark.skip()
@parametrize
- def test_path_params_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_path_params_retrieve(self, client: ServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `project_id` but received ''"):
client.organization.projects.with_raw_response.retrieve(
"",
@@ -98,7 +98,7 @@ def test_path_params_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_update(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_update(self, client: ServerlessInferenceSDKProd) -> None:
project = client.organization.projects.update(
project_id="project_id",
name="name",
@@ -107,7 +107,7 @@ def test_method_update(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_raw_response_update(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_update(self, client: ServerlessInferenceSDKProd) -> None:
response = client.organization.projects.with_raw_response.update(
project_id="project_id",
name="name",
@@ -120,7 +120,7 @@ def test_raw_response_update(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_update(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_update(self, client: ServerlessInferenceSDKProd) -> None:
with client.organization.projects.with_streaming_response.update(
project_id="project_id",
name="name",
@@ -135,7 +135,7 @@ def test_streaming_response_update(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_path_params_update(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_path_params_update(self, client: ServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `project_id` but received ''"):
client.organization.projects.with_raw_response.update(
project_id="",
@@ -144,13 +144,13 @@ def test_path_params_update(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_list(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_list(self, client: ServerlessInferenceSDKProd) -> None:
project = client.organization.projects.list()
assert_matches_type(ProjectListResponse, project, path=["response"])
@pytest.mark.skip()
@parametrize
- def test_method_list_with_all_params(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_list_with_all_params(self, client: ServerlessInferenceSDKProd) -> None:
project = client.organization.projects.list(
after="after",
include_archived=True,
@@ -160,7 +160,7 @@ def test_method_list_with_all_params(self, client: DigitaloceanGenaiSDK) -> None
@pytest.mark.skip()
@parametrize
- def test_raw_response_list(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_list(self, client: ServerlessInferenceSDKProd) -> None:
response = client.organization.projects.with_raw_response.list()
assert response.is_closed is True
@@ -170,7 +170,7 @@ def test_raw_response_list(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_list(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_list(self, client: ServerlessInferenceSDKProd) -> None:
with client.organization.projects.with_streaming_response.list() as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -182,7 +182,7 @@ def test_streaming_response_list(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_archive(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_archive(self, client: ServerlessInferenceSDKProd) -> None:
project = client.organization.projects.archive(
"project_id",
)
@@ -190,7 +190,7 @@ def test_method_archive(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_raw_response_archive(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_archive(self, client: ServerlessInferenceSDKProd) -> None:
response = client.organization.projects.with_raw_response.archive(
"project_id",
)
@@ -202,7 +202,7 @@ def test_raw_response_archive(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_archive(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_archive(self, client: ServerlessInferenceSDKProd) -> None:
with client.organization.projects.with_streaming_response.archive(
"project_id",
) as response:
@@ -216,7 +216,7 @@ def test_streaming_response_archive(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_path_params_archive(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_path_params_archive(self, client: ServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `project_id` but received ''"):
client.organization.projects.with_raw_response.archive(
"",
@@ -228,7 +228,7 @@ class TestAsyncProjects:
@pytest.mark.skip()
@parametrize
- async def test_method_create(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_create(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
project = await async_client.organization.projects.create(
name="name",
)
@@ -236,7 +236,7 @@ async def test_method_create(self, async_client: AsyncDigitaloceanGenaiSDK) -> N
@pytest.mark.skip()
@parametrize
- async def test_raw_response_create(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_create(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.organization.projects.with_raw_response.create(
name="name",
)
@@ -248,7 +248,7 @@ async def test_raw_response_create(self, async_client: AsyncDigitaloceanGenaiSDK
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_create(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_create(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.organization.projects.with_streaming_response.create(
name="name",
) as response:
@@ -262,7 +262,7 @@ async def test_streaming_response_create(self, async_client: AsyncDigitaloceanGe
@pytest.mark.skip()
@parametrize
- async def test_method_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_retrieve(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
project = await async_client.organization.projects.retrieve(
"project_id",
)
@@ -270,7 +270,7 @@ async def test_method_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) ->
@pytest.mark.skip()
@parametrize
- async def test_raw_response_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_retrieve(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.organization.projects.with_raw_response.retrieve(
"project_id",
)
@@ -282,7 +282,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncDigitaloceanGenaiS
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_retrieve(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.organization.projects.with_streaming_response.retrieve(
"project_id",
) as response:
@@ -296,7 +296,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncDigitalocean
@pytest.mark.skip()
@parametrize
- async def test_path_params_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_path_params_retrieve(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `project_id` but received ''"):
await async_client.organization.projects.with_raw_response.retrieve(
"",
@@ -304,7 +304,7 @@ async def test_path_params_retrieve(self, async_client: AsyncDigitaloceanGenaiSD
@pytest.mark.skip()
@parametrize
- async def test_method_update(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_update(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
project = await async_client.organization.projects.update(
project_id="project_id",
name="name",
@@ -313,7 +313,7 @@ async def test_method_update(self, async_client: AsyncDigitaloceanGenaiSDK) -> N
@pytest.mark.skip()
@parametrize
- async def test_raw_response_update(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_update(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.organization.projects.with_raw_response.update(
project_id="project_id",
name="name",
@@ -326,7 +326,7 @@ async def test_raw_response_update(self, async_client: AsyncDigitaloceanGenaiSDK
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_update(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_update(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.organization.projects.with_streaming_response.update(
project_id="project_id",
name="name",
@@ -341,7 +341,7 @@ async def test_streaming_response_update(self, async_client: AsyncDigitaloceanGe
@pytest.mark.skip()
@parametrize
- async def test_path_params_update(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_path_params_update(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `project_id` but received ''"):
await async_client.organization.projects.with_raw_response.update(
project_id="",
@@ -350,13 +350,13 @@ async def test_path_params_update(self, async_client: AsyncDigitaloceanGenaiSDK)
@pytest.mark.skip()
@parametrize
- async def test_method_list(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_list(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
project = await async_client.organization.projects.list()
assert_matches_type(ProjectListResponse, project, path=["response"])
@pytest.mark.skip()
@parametrize
- async def test_method_list_with_all_params(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_list_with_all_params(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
project = await async_client.organization.projects.list(
after="after",
include_archived=True,
@@ -366,7 +366,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncDigitalocean
@pytest.mark.skip()
@parametrize
- async def test_raw_response_list(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_list(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.organization.projects.with_raw_response.list()
assert response.is_closed is True
@@ -376,7 +376,7 @@ async def test_raw_response_list(self, async_client: AsyncDigitaloceanGenaiSDK)
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_list(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_list(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.organization.projects.with_streaming_response.list() as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -388,7 +388,7 @@ async def test_streaming_response_list(self, async_client: AsyncDigitaloceanGena
@pytest.mark.skip()
@parametrize
- async def test_method_archive(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_archive(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
project = await async_client.organization.projects.archive(
"project_id",
)
@@ -396,7 +396,7 @@ async def test_method_archive(self, async_client: AsyncDigitaloceanGenaiSDK) ->
@pytest.mark.skip()
@parametrize
- async def test_raw_response_archive(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_archive(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.organization.projects.with_raw_response.archive(
"project_id",
)
@@ -408,7 +408,7 @@ async def test_raw_response_archive(self, async_client: AsyncDigitaloceanGenaiSD
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_archive(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_archive(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.organization.projects.with_streaming_response.archive(
"project_id",
) as response:
@@ -422,7 +422,7 @@ async def test_streaming_response_archive(self, async_client: AsyncDigitaloceanG
@pytest.mark.skip()
@parametrize
- async def test_path_params_archive(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_path_params_archive(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `project_id` but received ''"):
await async_client.organization.projects.with_raw_response.archive(
"",
diff --git a/tests/api_resources/organization/test_usage.py b/tests/api_resources/organization/test_usage.py
index 198f2159..6becf2fa 100644
--- a/tests/api_resources/organization/test_usage.py
+++ b/tests/api_resources/organization/test_usage.py
@@ -8,8 +8,8 @@
import pytest
from tests.utils import assert_matches_type
-from digitalocean_genai_sdk import DigitaloceanGenaiSDK, AsyncDigitaloceanGenaiSDK
-from digitalocean_genai_sdk.types import UsageResponse
+from serverless_inference_sdk_prod import ServerlessInferenceSDKProd, AsyncServerlessInferenceSDKProd
+from serverless_inference_sdk_prod.types import UsageResponse
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -19,7 +19,7 @@ class TestUsage:
@pytest.mark.skip()
@parametrize
- def test_method_audio_speeches(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_audio_speeches(self, client: ServerlessInferenceSDKProd) -> None:
usage = client.organization.usage.audio_speeches(
start_time=0,
)
@@ -27,7 +27,7 @@ def test_method_audio_speeches(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_audio_speeches_with_all_params(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_audio_speeches_with_all_params(self, client: ServerlessInferenceSDKProd) -> None:
usage = client.organization.usage.audio_speeches(
start_time=0,
api_key_ids=["string"],
@@ -44,7 +44,7 @@ def test_method_audio_speeches_with_all_params(self, client: DigitaloceanGenaiSD
@pytest.mark.skip()
@parametrize
- def test_raw_response_audio_speeches(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_audio_speeches(self, client: ServerlessInferenceSDKProd) -> None:
response = client.organization.usage.with_raw_response.audio_speeches(
start_time=0,
)
@@ -56,7 +56,7 @@ def test_raw_response_audio_speeches(self, client: DigitaloceanGenaiSDK) -> None
@pytest.mark.skip()
@parametrize
- def test_streaming_response_audio_speeches(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_audio_speeches(self, client: ServerlessInferenceSDKProd) -> None:
with client.organization.usage.with_streaming_response.audio_speeches(
start_time=0,
) as response:
@@ -70,7 +70,7 @@ def test_streaming_response_audio_speeches(self, client: DigitaloceanGenaiSDK) -
@pytest.mark.skip()
@parametrize
- def test_method_audio_transcriptions(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_audio_transcriptions(self, client: ServerlessInferenceSDKProd) -> None:
usage = client.organization.usage.audio_transcriptions(
start_time=0,
)
@@ -78,7 +78,7 @@ def test_method_audio_transcriptions(self, client: DigitaloceanGenaiSDK) -> None
@pytest.mark.skip()
@parametrize
- def test_method_audio_transcriptions_with_all_params(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_audio_transcriptions_with_all_params(self, client: ServerlessInferenceSDKProd) -> None:
usage = client.organization.usage.audio_transcriptions(
start_time=0,
api_key_ids=["string"],
@@ -95,7 +95,7 @@ def test_method_audio_transcriptions_with_all_params(self, client: DigitaloceanG
@pytest.mark.skip()
@parametrize
- def test_raw_response_audio_transcriptions(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_audio_transcriptions(self, client: ServerlessInferenceSDKProd) -> None:
response = client.organization.usage.with_raw_response.audio_transcriptions(
start_time=0,
)
@@ -107,7 +107,7 @@ def test_raw_response_audio_transcriptions(self, client: DigitaloceanGenaiSDK) -
@pytest.mark.skip()
@parametrize
- def test_streaming_response_audio_transcriptions(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_audio_transcriptions(self, client: ServerlessInferenceSDKProd) -> None:
with client.organization.usage.with_streaming_response.audio_transcriptions(
start_time=0,
) as response:
@@ -121,7 +121,7 @@ def test_streaming_response_audio_transcriptions(self, client: DigitaloceanGenai
@pytest.mark.skip()
@parametrize
- def test_method_code_interpreter_sessions(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_code_interpreter_sessions(self, client: ServerlessInferenceSDKProd) -> None:
usage = client.organization.usage.code_interpreter_sessions(
start_time=0,
)
@@ -129,7 +129,7 @@ def test_method_code_interpreter_sessions(self, client: DigitaloceanGenaiSDK) ->
@pytest.mark.skip()
@parametrize
- def test_method_code_interpreter_sessions_with_all_params(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_code_interpreter_sessions_with_all_params(self, client: ServerlessInferenceSDKProd) -> None:
usage = client.organization.usage.code_interpreter_sessions(
start_time=0,
bucket_width="1m",
@@ -143,7 +143,7 @@ def test_method_code_interpreter_sessions_with_all_params(self, client: Digitalo
@pytest.mark.skip()
@parametrize
- def test_raw_response_code_interpreter_sessions(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_code_interpreter_sessions(self, client: ServerlessInferenceSDKProd) -> None:
response = client.organization.usage.with_raw_response.code_interpreter_sessions(
start_time=0,
)
@@ -155,7 +155,7 @@ def test_raw_response_code_interpreter_sessions(self, client: DigitaloceanGenaiS
@pytest.mark.skip()
@parametrize
- def test_streaming_response_code_interpreter_sessions(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_code_interpreter_sessions(self, client: ServerlessInferenceSDKProd) -> None:
with client.organization.usage.with_streaming_response.code_interpreter_sessions(
start_time=0,
) as response:
@@ -169,7 +169,7 @@ def test_streaming_response_code_interpreter_sessions(self, client: Digitalocean
@pytest.mark.skip()
@parametrize
- def test_method_completions(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_completions(self, client: ServerlessInferenceSDKProd) -> None:
usage = client.organization.usage.completions(
start_time=0,
)
@@ -177,7 +177,7 @@ def test_method_completions(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_completions_with_all_params(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_completions_with_all_params(self, client: ServerlessInferenceSDKProd) -> None:
usage = client.organization.usage.completions(
start_time=0,
api_key_ids=["string"],
@@ -195,7 +195,7 @@ def test_method_completions_with_all_params(self, client: DigitaloceanGenaiSDK)
@pytest.mark.skip()
@parametrize
- def test_raw_response_completions(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_completions(self, client: ServerlessInferenceSDKProd) -> None:
response = client.organization.usage.with_raw_response.completions(
start_time=0,
)
@@ -207,7 +207,7 @@ def test_raw_response_completions(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_completions(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_completions(self, client: ServerlessInferenceSDKProd) -> None:
with client.organization.usage.with_streaming_response.completions(
start_time=0,
) as response:
@@ -221,7 +221,7 @@ def test_streaming_response_completions(self, client: DigitaloceanGenaiSDK) -> N
@pytest.mark.skip()
@parametrize
- def test_method_embeddings(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_embeddings(self, client: ServerlessInferenceSDKProd) -> None:
usage = client.organization.usage.embeddings(
start_time=0,
)
@@ -229,7 +229,7 @@ def test_method_embeddings(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_embeddings_with_all_params(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_embeddings_with_all_params(self, client: ServerlessInferenceSDKProd) -> None:
usage = client.organization.usage.embeddings(
start_time=0,
api_key_ids=["string"],
@@ -246,7 +246,7 @@ def test_method_embeddings_with_all_params(self, client: DigitaloceanGenaiSDK) -
@pytest.mark.skip()
@parametrize
- def test_raw_response_embeddings(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_embeddings(self, client: ServerlessInferenceSDKProd) -> None:
response = client.organization.usage.with_raw_response.embeddings(
start_time=0,
)
@@ -258,7 +258,7 @@ def test_raw_response_embeddings(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_embeddings(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_embeddings(self, client: ServerlessInferenceSDKProd) -> None:
with client.organization.usage.with_streaming_response.embeddings(
start_time=0,
) as response:
@@ -272,7 +272,7 @@ def test_streaming_response_embeddings(self, client: DigitaloceanGenaiSDK) -> No
@pytest.mark.skip()
@parametrize
- def test_method_images(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_images(self, client: ServerlessInferenceSDKProd) -> None:
usage = client.organization.usage.images(
start_time=0,
)
@@ -280,7 +280,7 @@ def test_method_images(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_images_with_all_params(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_images_with_all_params(self, client: ServerlessInferenceSDKProd) -> None:
usage = client.organization.usage.images(
start_time=0,
api_key_ids=["string"],
@@ -299,7 +299,7 @@ def test_method_images_with_all_params(self, client: DigitaloceanGenaiSDK) -> No
@pytest.mark.skip()
@parametrize
- def test_raw_response_images(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_images(self, client: ServerlessInferenceSDKProd) -> None:
response = client.organization.usage.with_raw_response.images(
start_time=0,
)
@@ -311,7 +311,7 @@ def test_raw_response_images(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_images(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_images(self, client: ServerlessInferenceSDKProd) -> None:
with client.organization.usage.with_streaming_response.images(
start_time=0,
) as response:
@@ -325,7 +325,7 @@ def test_streaming_response_images(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_moderations(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_moderations(self, client: ServerlessInferenceSDKProd) -> None:
usage = client.organization.usage.moderations(
start_time=0,
)
@@ -333,7 +333,7 @@ def test_method_moderations(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_moderations_with_all_params(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_moderations_with_all_params(self, client: ServerlessInferenceSDKProd) -> None:
usage = client.organization.usage.moderations(
start_time=0,
api_key_ids=["string"],
@@ -350,7 +350,7 @@ def test_method_moderations_with_all_params(self, client: DigitaloceanGenaiSDK)
@pytest.mark.skip()
@parametrize
- def test_raw_response_moderations(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_moderations(self, client: ServerlessInferenceSDKProd) -> None:
response = client.organization.usage.with_raw_response.moderations(
start_time=0,
)
@@ -362,7 +362,7 @@ def test_raw_response_moderations(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_moderations(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_moderations(self, client: ServerlessInferenceSDKProd) -> None:
with client.organization.usage.with_streaming_response.moderations(
start_time=0,
) as response:
@@ -376,7 +376,7 @@ def test_streaming_response_moderations(self, client: DigitaloceanGenaiSDK) -> N
@pytest.mark.skip()
@parametrize
- def test_method_vector_stores(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_vector_stores(self, client: ServerlessInferenceSDKProd) -> None:
usage = client.organization.usage.vector_stores(
start_time=0,
)
@@ -384,7 +384,7 @@ def test_method_vector_stores(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_vector_stores_with_all_params(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_vector_stores_with_all_params(self, client: ServerlessInferenceSDKProd) -> None:
usage = client.organization.usage.vector_stores(
start_time=0,
bucket_width="1m",
@@ -398,7 +398,7 @@ def test_method_vector_stores_with_all_params(self, client: DigitaloceanGenaiSDK
@pytest.mark.skip()
@parametrize
- def test_raw_response_vector_stores(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_vector_stores(self, client: ServerlessInferenceSDKProd) -> None:
response = client.organization.usage.with_raw_response.vector_stores(
start_time=0,
)
@@ -410,7 +410,7 @@ def test_raw_response_vector_stores(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_vector_stores(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_vector_stores(self, client: ServerlessInferenceSDKProd) -> None:
with client.organization.usage.with_streaming_response.vector_stores(
start_time=0,
) as response:
@@ -428,7 +428,7 @@ class TestAsyncUsage:
@pytest.mark.skip()
@parametrize
- async def test_method_audio_speeches(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_audio_speeches(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
usage = await async_client.organization.usage.audio_speeches(
start_time=0,
)
@@ -436,7 +436,7 @@ async def test_method_audio_speeches(self, async_client: AsyncDigitaloceanGenaiS
@pytest.mark.skip()
@parametrize
- async def test_method_audio_speeches_with_all_params(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_audio_speeches_with_all_params(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
usage = await async_client.organization.usage.audio_speeches(
start_time=0,
api_key_ids=["string"],
@@ -453,7 +453,7 @@ async def test_method_audio_speeches_with_all_params(self, async_client: AsyncDi
@pytest.mark.skip()
@parametrize
- async def test_raw_response_audio_speeches(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_audio_speeches(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.organization.usage.with_raw_response.audio_speeches(
start_time=0,
)
@@ -465,7 +465,7 @@ async def test_raw_response_audio_speeches(self, async_client: AsyncDigitalocean
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_audio_speeches(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_audio_speeches(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.organization.usage.with_streaming_response.audio_speeches(
start_time=0,
) as response:
@@ -479,7 +479,7 @@ async def test_streaming_response_audio_speeches(self, async_client: AsyncDigita
@pytest.mark.skip()
@parametrize
- async def test_method_audio_transcriptions(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_audio_transcriptions(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
usage = await async_client.organization.usage.audio_transcriptions(
start_time=0,
)
@@ -487,7 +487,9 @@ async def test_method_audio_transcriptions(self, async_client: AsyncDigitalocean
@pytest.mark.skip()
@parametrize
- async def test_method_audio_transcriptions_with_all_params(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_audio_transcriptions_with_all_params(
+ self, async_client: AsyncServerlessInferenceSDKProd
+ ) -> None:
usage = await async_client.organization.usage.audio_transcriptions(
start_time=0,
api_key_ids=["string"],
@@ -504,7 +506,7 @@ async def test_method_audio_transcriptions_with_all_params(self, async_client: A
@pytest.mark.skip()
@parametrize
- async def test_raw_response_audio_transcriptions(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_audio_transcriptions(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.organization.usage.with_raw_response.audio_transcriptions(
start_time=0,
)
@@ -516,7 +518,7 @@ async def test_raw_response_audio_transcriptions(self, async_client: AsyncDigita
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_audio_transcriptions(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_audio_transcriptions(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.organization.usage.with_streaming_response.audio_transcriptions(
start_time=0,
) as response:
@@ -530,7 +532,7 @@ async def test_streaming_response_audio_transcriptions(self, async_client: Async
@pytest.mark.skip()
@parametrize
- async def test_method_code_interpreter_sessions(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_code_interpreter_sessions(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
usage = await async_client.organization.usage.code_interpreter_sessions(
start_time=0,
)
@@ -539,7 +541,7 @@ async def test_method_code_interpreter_sessions(self, async_client: AsyncDigital
@pytest.mark.skip()
@parametrize
async def test_method_code_interpreter_sessions_with_all_params(
- self, async_client: AsyncDigitaloceanGenaiSDK
+ self, async_client: AsyncServerlessInferenceSDKProd
) -> None:
usage = await async_client.organization.usage.code_interpreter_sessions(
start_time=0,
@@ -554,7 +556,7 @@ async def test_method_code_interpreter_sessions_with_all_params(
@pytest.mark.skip()
@parametrize
- async def test_raw_response_code_interpreter_sessions(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_code_interpreter_sessions(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.organization.usage.with_raw_response.code_interpreter_sessions(
start_time=0,
)
@@ -566,7 +568,9 @@ async def test_raw_response_code_interpreter_sessions(self, async_client: AsyncD
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_code_interpreter_sessions(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_code_interpreter_sessions(
+ self, async_client: AsyncServerlessInferenceSDKProd
+ ) -> None:
async with async_client.organization.usage.with_streaming_response.code_interpreter_sessions(
start_time=0,
) as response:
@@ -580,7 +584,7 @@ async def test_streaming_response_code_interpreter_sessions(self, async_client:
@pytest.mark.skip()
@parametrize
- async def test_method_completions(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_completions(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
usage = await async_client.organization.usage.completions(
start_time=0,
)
@@ -588,7 +592,7 @@ async def test_method_completions(self, async_client: AsyncDigitaloceanGenaiSDK)
@pytest.mark.skip()
@parametrize
- async def test_method_completions_with_all_params(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_completions_with_all_params(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
usage = await async_client.organization.usage.completions(
start_time=0,
api_key_ids=["string"],
@@ -606,7 +610,7 @@ async def test_method_completions_with_all_params(self, async_client: AsyncDigit
@pytest.mark.skip()
@parametrize
- async def test_raw_response_completions(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_completions(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.organization.usage.with_raw_response.completions(
start_time=0,
)
@@ -618,7 +622,7 @@ async def test_raw_response_completions(self, async_client: AsyncDigitaloceanGen
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_completions(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_completions(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.organization.usage.with_streaming_response.completions(
start_time=0,
) as response:
@@ -632,7 +636,7 @@ async def test_streaming_response_completions(self, async_client: AsyncDigitaloc
@pytest.mark.skip()
@parametrize
- async def test_method_embeddings(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_embeddings(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
usage = await async_client.organization.usage.embeddings(
start_time=0,
)
@@ -640,7 +644,7 @@ async def test_method_embeddings(self, async_client: AsyncDigitaloceanGenaiSDK)
@pytest.mark.skip()
@parametrize
- async def test_method_embeddings_with_all_params(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_embeddings_with_all_params(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
usage = await async_client.organization.usage.embeddings(
start_time=0,
api_key_ids=["string"],
@@ -657,7 +661,7 @@ async def test_method_embeddings_with_all_params(self, async_client: AsyncDigita
@pytest.mark.skip()
@parametrize
- async def test_raw_response_embeddings(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_embeddings(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.organization.usage.with_raw_response.embeddings(
start_time=0,
)
@@ -669,7 +673,7 @@ async def test_raw_response_embeddings(self, async_client: AsyncDigitaloceanGena
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_embeddings(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_embeddings(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.organization.usage.with_streaming_response.embeddings(
start_time=0,
) as response:
@@ -683,7 +687,7 @@ async def test_streaming_response_embeddings(self, async_client: AsyncDigitaloce
@pytest.mark.skip()
@parametrize
- async def test_method_images(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_images(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
usage = await async_client.organization.usage.images(
start_time=0,
)
@@ -691,7 +695,7 @@ async def test_method_images(self, async_client: AsyncDigitaloceanGenaiSDK) -> N
@pytest.mark.skip()
@parametrize
- async def test_method_images_with_all_params(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_images_with_all_params(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
usage = await async_client.organization.usage.images(
start_time=0,
api_key_ids=["string"],
@@ -710,7 +714,7 @@ async def test_method_images_with_all_params(self, async_client: AsyncDigitaloce
@pytest.mark.skip()
@parametrize
- async def test_raw_response_images(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_images(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.organization.usage.with_raw_response.images(
start_time=0,
)
@@ -722,7 +726,7 @@ async def test_raw_response_images(self, async_client: AsyncDigitaloceanGenaiSDK
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_images(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_images(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.organization.usage.with_streaming_response.images(
start_time=0,
) as response:
@@ -736,7 +740,7 @@ async def test_streaming_response_images(self, async_client: AsyncDigitaloceanGe
@pytest.mark.skip()
@parametrize
- async def test_method_moderations(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_moderations(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
usage = await async_client.organization.usage.moderations(
start_time=0,
)
@@ -744,7 +748,7 @@ async def test_method_moderations(self, async_client: AsyncDigitaloceanGenaiSDK)
@pytest.mark.skip()
@parametrize
- async def test_method_moderations_with_all_params(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_moderations_with_all_params(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
usage = await async_client.organization.usage.moderations(
start_time=0,
api_key_ids=["string"],
@@ -761,7 +765,7 @@ async def test_method_moderations_with_all_params(self, async_client: AsyncDigit
@pytest.mark.skip()
@parametrize
- async def test_raw_response_moderations(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_moderations(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.organization.usage.with_raw_response.moderations(
start_time=0,
)
@@ -773,7 +777,7 @@ async def test_raw_response_moderations(self, async_client: AsyncDigitaloceanGen
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_moderations(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_moderations(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.organization.usage.with_streaming_response.moderations(
start_time=0,
) as response:
@@ -787,7 +791,7 @@ async def test_streaming_response_moderations(self, async_client: AsyncDigitaloc
@pytest.mark.skip()
@parametrize
- async def test_method_vector_stores(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_vector_stores(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
usage = await async_client.organization.usage.vector_stores(
start_time=0,
)
@@ -795,7 +799,7 @@ async def test_method_vector_stores(self, async_client: AsyncDigitaloceanGenaiSD
@pytest.mark.skip()
@parametrize
- async def test_method_vector_stores_with_all_params(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_vector_stores_with_all_params(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
usage = await async_client.organization.usage.vector_stores(
start_time=0,
bucket_width="1m",
@@ -809,7 +813,7 @@ async def test_method_vector_stores_with_all_params(self, async_client: AsyncDig
@pytest.mark.skip()
@parametrize
- async def test_raw_response_vector_stores(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_vector_stores(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.organization.usage.with_raw_response.vector_stores(
start_time=0,
)
@@ -821,7 +825,7 @@ async def test_raw_response_vector_stores(self, async_client: AsyncDigitaloceanG
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_vector_stores(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_vector_stores(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.organization.usage.with_streaming_response.vector_stores(
start_time=0,
) as response:
diff --git a/tests/api_resources/organization/test_users.py b/tests/api_resources/organization/test_users.py
index b40fcbef..9149e186 100644
--- a/tests/api_resources/organization/test_users.py
+++ b/tests/api_resources/organization/test_users.py
@@ -8,9 +8,9 @@
import pytest
from tests.utils import assert_matches_type
-from digitalocean_genai_sdk import DigitaloceanGenaiSDK, AsyncDigitaloceanGenaiSDK
-from digitalocean_genai_sdk.types.organization import (
- OrganizationUser,
+from serverless_inference_sdk_prod import ServerlessInferenceSDKProd, AsyncServerlessInferenceSDKProd
+from serverless_inference_sdk_prod.types.organization import (
+ User,
UserListResponse,
UserDeleteResponse,
)
@@ -23,15 +23,15 @@ class TestUsers:
@pytest.mark.skip()
@parametrize
- def test_method_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_retrieve(self, client: ServerlessInferenceSDKProd) -> None:
user = client.organization.users.retrieve(
"user_id",
)
- assert_matches_type(OrganizationUser, user, path=["response"])
+ assert_matches_type(User, user, path=["response"])
@pytest.mark.skip()
@parametrize
- def test_raw_response_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_retrieve(self, client: ServerlessInferenceSDKProd) -> None:
response = client.organization.users.with_raw_response.retrieve(
"user_id",
)
@@ -39,11 +39,11 @@ def test_raw_response_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
user = response.parse()
- assert_matches_type(OrganizationUser, user, path=["response"])
+ assert_matches_type(User, user, path=["response"])
@pytest.mark.skip()
@parametrize
- def test_streaming_response_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_retrieve(self, client: ServerlessInferenceSDKProd) -> None:
with client.organization.users.with_streaming_response.retrieve(
"user_id",
) as response:
@@ -51,13 +51,13 @@ def test_streaming_response_retrieve(self, client: DigitaloceanGenaiSDK) -> None
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
user = response.parse()
- assert_matches_type(OrganizationUser, user, path=["response"])
+ assert_matches_type(User, user, path=["response"])
assert cast(Any, response.is_closed) is True
@pytest.mark.skip()
@parametrize
- def test_path_params_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_path_params_retrieve(self, client: ServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `user_id` but received ''"):
client.organization.users.with_raw_response.retrieve(
"",
@@ -65,16 +65,16 @@ def test_path_params_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_update(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_update(self, client: ServerlessInferenceSDKProd) -> None:
user = client.organization.users.update(
user_id="user_id",
role="owner",
)
- assert_matches_type(OrganizationUser, user, path=["response"])
+ assert_matches_type(User, user, path=["response"])
@pytest.mark.skip()
@parametrize
- def test_raw_response_update(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_update(self, client: ServerlessInferenceSDKProd) -> None:
response = client.organization.users.with_raw_response.update(
user_id="user_id",
role="owner",
@@ -83,11 +83,11 @@ def test_raw_response_update(self, client: DigitaloceanGenaiSDK) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
user = response.parse()
- assert_matches_type(OrganizationUser, user, path=["response"])
+ assert_matches_type(User, user, path=["response"])
@pytest.mark.skip()
@parametrize
- def test_streaming_response_update(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_update(self, client: ServerlessInferenceSDKProd) -> None:
with client.organization.users.with_streaming_response.update(
user_id="user_id",
role="owner",
@@ -96,13 +96,13 @@ def test_streaming_response_update(self, client: DigitaloceanGenaiSDK) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
user = response.parse()
- assert_matches_type(OrganizationUser, user, path=["response"])
+ assert_matches_type(User, user, path=["response"])
assert cast(Any, response.is_closed) is True
@pytest.mark.skip()
@parametrize
- def test_path_params_update(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_path_params_update(self, client: ServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `user_id` but received ''"):
client.organization.users.with_raw_response.update(
user_id="",
@@ -111,13 +111,13 @@ def test_path_params_update(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_list(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_list(self, client: ServerlessInferenceSDKProd) -> None:
user = client.organization.users.list()
assert_matches_type(UserListResponse, user, path=["response"])
@pytest.mark.skip()
@parametrize
- def test_method_list_with_all_params(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_list_with_all_params(self, client: ServerlessInferenceSDKProd) -> None:
user = client.organization.users.list(
after="after",
emails=["string"],
@@ -127,7 +127,7 @@ def test_method_list_with_all_params(self, client: DigitaloceanGenaiSDK) -> None
@pytest.mark.skip()
@parametrize
- def test_raw_response_list(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_list(self, client: ServerlessInferenceSDKProd) -> None:
response = client.organization.users.with_raw_response.list()
assert response.is_closed is True
@@ -137,7 +137,7 @@ def test_raw_response_list(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_list(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_list(self, client: ServerlessInferenceSDKProd) -> None:
with client.organization.users.with_streaming_response.list() as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -149,7 +149,7 @@ def test_streaming_response_list(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_delete(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_delete(self, client: ServerlessInferenceSDKProd) -> None:
user = client.organization.users.delete(
"user_id",
)
@@ -157,7 +157,7 @@ def test_method_delete(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_raw_response_delete(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_delete(self, client: ServerlessInferenceSDKProd) -> None:
response = client.organization.users.with_raw_response.delete(
"user_id",
)
@@ -169,7 +169,7 @@ def test_raw_response_delete(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_delete(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_delete(self, client: ServerlessInferenceSDKProd) -> None:
with client.organization.users.with_streaming_response.delete(
"user_id",
) as response:
@@ -183,7 +183,7 @@ def test_streaming_response_delete(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_path_params_delete(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_path_params_delete(self, client: ServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `user_id` but received ''"):
client.organization.users.with_raw_response.delete(
"",
@@ -195,15 +195,15 @@ class TestAsyncUsers:
@pytest.mark.skip()
@parametrize
- async def test_method_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_retrieve(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
user = await async_client.organization.users.retrieve(
"user_id",
)
- assert_matches_type(OrganizationUser, user, path=["response"])
+ assert_matches_type(User, user, path=["response"])
@pytest.mark.skip()
@parametrize
- async def test_raw_response_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_retrieve(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.organization.users.with_raw_response.retrieve(
"user_id",
)
@@ -211,11 +211,11 @@ async def test_raw_response_retrieve(self, async_client: AsyncDigitaloceanGenaiS
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
user = await response.parse()
- assert_matches_type(OrganizationUser, user, path=["response"])
+ assert_matches_type(User, user, path=["response"])
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_retrieve(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.organization.users.with_streaming_response.retrieve(
"user_id",
) as response:
@@ -223,13 +223,13 @@ async def test_streaming_response_retrieve(self, async_client: AsyncDigitalocean
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
user = await response.parse()
- assert_matches_type(OrganizationUser, user, path=["response"])
+ assert_matches_type(User, user, path=["response"])
assert cast(Any, response.is_closed) is True
@pytest.mark.skip()
@parametrize
- async def test_path_params_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_path_params_retrieve(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `user_id` but received ''"):
await async_client.organization.users.with_raw_response.retrieve(
"",
@@ -237,16 +237,16 @@ async def test_path_params_retrieve(self, async_client: AsyncDigitaloceanGenaiSD
@pytest.mark.skip()
@parametrize
- async def test_method_update(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_update(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
user = await async_client.organization.users.update(
user_id="user_id",
role="owner",
)
- assert_matches_type(OrganizationUser, user, path=["response"])
+ assert_matches_type(User, user, path=["response"])
@pytest.mark.skip()
@parametrize
- async def test_raw_response_update(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_update(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.organization.users.with_raw_response.update(
user_id="user_id",
role="owner",
@@ -255,11 +255,11 @@ async def test_raw_response_update(self, async_client: AsyncDigitaloceanGenaiSDK
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
user = await response.parse()
- assert_matches_type(OrganizationUser, user, path=["response"])
+ assert_matches_type(User, user, path=["response"])
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_update(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_update(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.organization.users.with_streaming_response.update(
user_id="user_id",
role="owner",
@@ -268,13 +268,13 @@ async def test_streaming_response_update(self, async_client: AsyncDigitaloceanGe
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
user = await response.parse()
- assert_matches_type(OrganizationUser, user, path=["response"])
+ assert_matches_type(User, user, path=["response"])
assert cast(Any, response.is_closed) is True
@pytest.mark.skip()
@parametrize
- async def test_path_params_update(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_path_params_update(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `user_id` but received ''"):
await async_client.organization.users.with_raw_response.update(
user_id="",
@@ -283,13 +283,13 @@ async def test_path_params_update(self, async_client: AsyncDigitaloceanGenaiSDK)
@pytest.mark.skip()
@parametrize
- async def test_method_list(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_list(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
user = await async_client.organization.users.list()
assert_matches_type(UserListResponse, user, path=["response"])
@pytest.mark.skip()
@parametrize
- async def test_method_list_with_all_params(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_list_with_all_params(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
user = await async_client.organization.users.list(
after="after",
emails=["string"],
@@ -299,7 +299,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncDigitalocean
@pytest.mark.skip()
@parametrize
- async def test_raw_response_list(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_list(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.organization.users.with_raw_response.list()
assert response.is_closed is True
@@ -309,7 +309,7 @@ async def test_raw_response_list(self, async_client: AsyncDigitaloceanGenaiSDK)
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_list(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_list(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.organization.users.with_streaming_response.list() as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -321,7 +321,7 @@ async def test_streaming_response_list(self, async_client: AsyncDigitaloceanGena
@pytest.mark.skip()
@parametrize
- async def test_method_delete(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_delete(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
user = await async_client.organization.users.delete(
"user_id",
)
@@ -329,7 +329,7 @@ async def test_method_delete(self, async_client: AsyncDigitaloceanGenaiSDK) -> N
@pytest.mark.skip()
@parametrize
- async def test_raw_response_delete(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_delete(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.organization.users.with_raw_response.delete(
"user_id",
)
@@ -341,7 +341,7 @@ async def test_raw_response_delete(self, async_client: AsyncDigitaloceanGenaiSDK
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_delete(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_delete(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.organization.users.with_streaming_response.delete(
"user_id",
) as response:
@@ -355,7 +355,7 @@ async def test_streaming_response_delete(self, async_client: AsyncDigitaloceanGe
@pytest.mark.skip()
@parametrize
- async def test_path_params_delete(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_path_params_delete(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `user_id` but received ''"):
await async_client.organization.users.with_raw_response.delete(
"",
diff --git a/tests/api_resources/test_assistants.py b/tests/api_resources/test_assistants.py
index a5fa998d..ce570b77 100644
--- a/tests/api_resources/test_assistants.py
+++ b/tests/api_resources/test_assistants.py
@@ -8,8 +8,8 @@
import pytest
from tests.utils import assert_matches_type
-from digitalocean_genai_sdk import DigitaloceanGenaiSDK, AsyncDigitaloceanGenaiSDK
-from digitalocean_genai_sdk.types import (
+from serverless_inference_sdk_prod import ServerlessInferenceSDKProd, AsyncServerlessInferenceSDKProd
+from serverless_inference_sdk_prod.types import (
AssistantObject,
AssistantListResponse,
AssistantDeleteResponse,
@@ -23,7 +23,7 @@ class TestAssistants:
@pytest.mark.skip()
@parametrize
- def test_method_create(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_create(self, client: ServerlessInferenceSDKProd) -> None:
assistant = client.assistants.create(
model="gpt-4o",
)
@@ -31,7 +31,7 @@ def test_method_create(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_create_with_all_params(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_create_with_all_params(self, client: ServerlessInferenceSDKProd) -> None:
assistant = client.assistants.create(
model="gpt-4o",
description="description",
@@ -61,7 +61,7 @@ def test_method_create_with_all_params(self, client: DigitaloceanGenaiSDK) -> No
@pytest.mark.skip()
@parametrize
- def test_raw_response_create(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_create(self, client: ServerlessInferenceSDKProd) -> None:
response = client.assistants.with_raw_response.create(
model="gpt-4o",
)
@@ -73,7 +73,7 @@ def test_raw_response_create(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_create(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_create(self, client: ServerlessInferenceSDKProd) -> None:
with client.assistants.with_streaming_response.create(
model="gpt-4o",
) as response:
@@ -87,7 +87,7 @@ def test_streaming_response_create(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_retrieve(self, client: ServerlessInferenceSDKProd) -> None:
assistant = client.assistants.retrieve(
"assistant_id",
)
@@ -95,7 +95,7 @@ def test_method_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_raw_response_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_retrieve(self, client: ServerlessInferenceSDKProd) -> None:
response = client.assistants.with_raw_response.retrieve(
"assistant_id",
)
@@ -107,7 +107,7 @@ def test_raw_response_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_retrieve(self, client: ServerlessInferenceSDKProd) -> None:
with client.assistants.with_streaming_response.retrieve(
"assistant_id",
) as response:
@@ -121,7 +121,7 @@ def test_streaming_response_retrieve(self, client: DigitaloceanGenaiSDK) -> None
@pytest.mark.skip()
@parametrize
- def test_path_params_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_path_params_retrieve(self, client: ServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `assistant_id` but received ''"):
client.assistants.with_raw_response.retrieve(
"",
@@ -129,7 +129,7 @@ def test_path_params_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_update(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_update(self, client: ServerlessInferenceSDKProd) -> None:
assistant = client.assistants.update(
assistant_id="assistant_id",
)
@@ -137,7 +137,7 @@ def test_method_update(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_update_with_all_params(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_update_with_all_params(self, client: ServerlessInferenceSDKProd) -> None:
assistant = client.assistants.update(
assistant_id="assistant_id",
description="description",
@@ -159,7 +159,7 @@ def test_method_update_with_all_params(self, client: DigitaloceanGenaiSDK) -> No
@pytest.mark.skip()
@parametrize
- def test_raw_response_update(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_update(self, client: ServerlessInferenceSDKProd) -> None:
response = client.assistants.with_raw_response.update(
assistant_id="assistant_id",
)
@@ -171,7 +171,7 @@ def test_raw_response_update(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_update(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_update(self, client: ServerlessInferenceSDKProd) -> None:
with client.assistants.with_streaming_response.update(
assistant_id="assistant_id",
) as response:
@@ -185,7 +185,7 @@ def test_streaming_response_update(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_path_params_update(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_path_params_update(self, client: ServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `assistant_id` but received ''"):
client.assistants.with_raw_response.update(
assistant_id="",
@@ -193,13 +193,13 @@ def test_path_params_update(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_list(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_list(self, client: ServerlessInferenceSDKProd) -> None:
assistant = client.assistants.list()
assert_matches_type(AssistantListResponse, assistant, path=["response"])
@pytest.mark.skip()
@parametrize
- def test_method_list_with_all_params(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_list_with_all_params(self, client: ServerlessInferenceSDKProd) -> None:
assistant = client.assistants.list(
after="after",
before="before",
@@ -210,7 +210,7 @@ def test_method_list_with_all_params(self, client: DigitaloceanGenaiSDK) -> None
@pytest.mark.skip()
@parametrize
- def test_raw_response_list(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_list(self, client: ServerlessInferenceSDKProd) -> None:
response = client.assistants.with_raw_response.list()
assert response.is_closed is True
@@ -220,7 +220,7 @@ def test_raw_response_list(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_list(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_list(self, client: ServerlessInferenceSDKProd) -> None:
with client.assistants.with_streaming_response.list() as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -232,7 +232,7 @@ def test_streaming_response_list(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_delete(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_delete(self, client: ServerlessInferenceSDKProd) -> None:
assistant = client.assistants.delete(
"assistant_id",
)
@@ -240,7 +240,7 @@ def test_method_delete(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_raw_response_delete(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_delete(self, client: ServerlessInferenceSDKProd) -> None:
response = client.assistants.with_raw_response.delete(
"assistant_id",
)
@@ -252,7 +252,7 @@ def test_raw_response_delete(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_delete(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_delete(self, client: ServerlessInferenceSDKProd) -> None:
with client.assistants.with_streaming_response.delete(
"assistant_id",
) as response:
@@ -266,7 +266,7 @@ def test_streaming_response_delete(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_path_params_delete(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_path_params_delete(self, client: ServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `assistant_id` but received ''"):
client.assistants.with_raw_response.delete(
"",
@@ -278,7 +278,7 @@ class TestAsyncAssistants:
@pytest.mark.skip()
@parametrize
- async def test_method_create(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_create(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
assistant = await async_client.assistants.create(
model="gpt-4o",
)
@@ -286,7 +286,7 @@ async def test_method_create(self, async_client: AsyncDigitaloceanGenaiSDK) -> N
@pytest.mark.skip()
@parametrize
- async def test_method_create_with_all_params(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_create_with_all_params(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
assistant = await async_client.assistants.create(
model="gpt-4o",
description="description",
@@ -316,7 +316,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncDigitaloce
@pytest.mark.skip()
@parametrize
- async def test_raw_response_create(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_create(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.assistants.with_raw_response.create(
model="gpt-4o",
)
@@ -328,7 +328,7 @@ async def test_raw_response_create(self, async_client: AsyncDigitaloceanGenaiSDK
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_create(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_create(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.assistants.with_streaming_response.create(
model="gpt-4o",
) as response:
@@ -342,7 +342,7 @@ async def test_streaming_response_create(self, async_client: AsyncDigitaloceanGe
@pytest.mark.skip()
@parametrize
- async def test_method_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_retrieve(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
assistant = await async_client.assistants.retrieve(
"assistant_id",
)
@@ -350,7 +350,7 @@ async def test_method_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) ->
@pytest.mark.skip()
@parametrize
- async def test_raw_response_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_retrieve(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.assistants.with_raw_response.retrieve(
"assistant_id",
)
@@ -362,7 +362,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncDigitaloceanGenaiS
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_retrieve(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.assistants.with_streaming_response.retrieve(
"assistant_id",
) as response:
@@ -376,7 +376,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncDigitalocean
@pytest.mark.skip()
@parametrize
- async def test_path_params_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_path_params_retrieve(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `assistant_id` but received ''"):
await async_client.assistants.with_raw_response.retrieve(
"",
@@ -384,7 +384,7 @@ async def test_path_params_retrieve(self, async_client: AsyncDigitaloceanGenaiSD
@pytest.mark.skip()
@parametrize
- async def test_method_update(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_update(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
assistant = await async_client.assistants.update(
assistant_id="assistant_id",
)
@@ -392,7 +392,7 @@ async def test_method_update(self, async_client: AsyncDigitaloceanGenaiSDK) -> N
@pytest.mark.skip()
@parametrize
- async def test_method_update_with_all_params(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_update_with_all_params(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
assistant = await async_client.assistants.update(
assistant_id="assistant_id",
description="description",
@@ -414,7 +414,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncDigitaloce
@pytest.mark.skip()
@parametrize
- async def test_raw_response_update(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_update(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.assistants.with_raw_response.update(
assistant_id="assistant_id",
)
@@ -426,7 +426,7 @@ async def test_raw_response_update(self, async_client: AsyncDigitaloceanGenaiSDK
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_update(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_update(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.assistants.with_streaming_response.update(
assistant_id="assistant_id",
) as response:
@@ -440,7 +440,7 @@ async def test_streaming_response_update(self, async_client: AsyncDigitaloceanGe
@pytest.mark.skip()
@parametrize
- async def test_path_params_update(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_path_params_update(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `assistant_id` but received ''"):
await async_client.assistants.with_raw_response.update(
assistant_id="",
@@ -448,13 +448,13 @@ async def test_path_params_update(self, async_client: AsyncDigitaloceanGenaiSDK)
@pytest.mark.skip()
@parametrize
- async def test_method_list(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_list(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
assistant = await async_client.assistants.list()
assert_matches_type(AssistantListResponse, assistant, path=["response"])
@pytest.mark.skip()
@parametrize
- async def test_method_list_with_all_params(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_list_with_all_params(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
assistant = await async_client.assistants.list(
after="after",
before="before",
@@ -465,7 +465,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncDigitalocean
@pytest.mark.skip()
@parametrize
- async def test_raw_response_list(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_list(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.assistants.with_raw_response.list()
assert response.is_closed is True
@@ -475,7 +475,7 @@ async def test_raw_response_list(self, async_client: AsyncDigitaloceanGenaiSDK)
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_list(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_list(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.assistants.with_streaming_response.list() as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -487,7 +487,7 @@ async def test_streaming_response_list(self, async_client: AsyncDigitaloceanGena
@pytest.mark.skip()
@parametrize
- async def test_method_delete(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_delete(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
assistant = await async_client.assistants.delete(
"assistant_id",
)
@@ -495,7 +495,7 @@ async def test_method_delete(self, async_client: AsyncDigitaloceanGenaiSDK) -> N
@pytest.mark.skip()
@parametrize
- async def test_raw_response_delete(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_delete(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.assistants.with_raw_response.delete(
"assistant_id",
)
@@ -507,7 +507,7 @@ async def test_raw_response_delete(self, async_client: AsyncDigitaloceanGenaiSDK
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_delete(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_delete(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.assistants.with_streaming_response.delete(
"assistant_id",
) as response:
@@ -521,7 +521,7 @@ async def test_streaming_response_delete(self, async_client: AsyncDigitaloceanGe
@pytest.mark.skip()
@parametrize
- async def test_path_params_delete(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_path_params_delete(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `assistant_id` but received ''"):
await async_client.assistants.with_raw_response.delete(
"",
diff --git a/tests/api_resources/test_audio.py b/tests/api_resources/test_audio.py
index e71d568e..e78d7735 100644
--- a/tests/api_resources/test_audio.py
+++ b/tests/api_resources/test_audio.py
@@ -10,12 +10,12 @@
from respx import MockRouter
from tests.utils import assert_matches_type
-from digitalocean_genai_sdk import DigitaloceanGenaiSDK, AsyncDigitaloceanGenaiSDK
-from digitalocean_genai_sdk.types import (
+from serverless_inference_sdk_prod import ServerlessInferenceSDKProd, AsyncServerlessInferenceSDKProd
+from serverless_inference_sdk_prod.types import (
AudioTranslateAudioResponse,
AudioTranscribeAudioResponse,
)
-from digitalocean_genai_sdk._response import (
+from serverless_inference_sdk_prod._response import (
BinaryAPIResponse,
AsyncBinaryAPIResponse,
StreamedBinaryAPIResponse,
@@ -31,7 +31,7 @@ class TestAudio:
@pytest.mark.skip()
@parametrize
@pytest.mark.respx(base_url=base_url)
- def test_method_generate_speech(self, client: DigitaloceanGenaiSDK, respx_mock: MockRouter) -> None:
+ def test_method_generate_speech(self, client: ServerlessInferenceSDKProd, respx_mock: MockRouter) -> None:
respx_mock.post("/audio/speech").mock(return_value=httpx.Response(200, json={"foo": "bar"}))
audio = client.audio.generate_speech(
input="input",
@@ -46,7 +46,9 @@ def test_method_generate_speech(self, client: DigitaloceanGenaiSDK, respx_mock:
@pytest.mark.skip()
@parametrize
@pytest.mark.respx(base_url=base_url)
- def test_method_generate_speech_with_all_params(self, client: DigitaloceanGenaiSDK, respx_mock: MockRouter) -> None:
+ def test_method_generate_speech_with_all_params(
+ self, client: ServerlessInferenceSDKProd, respx_mock: MockRouter
+ ) -> None:
respx_mock.post("/audio/speech").mock(return_value=httpx.Response(200, json={"foo": "bar"}))
audio = client.audio.generate_speech(
input="input",
@@ -64,7 +66,7 @@ def test_method_generate_speech_with_all_params(self, client: DigitaloceanGenaiS
@pytest.mark.skip()
@parametrize
@pytest.mark.respx(base_url=base_url)
- def test_raw_response_generate_speech(self, client: DigitaloceanGenaiSDK, respx_mock: MockRouter) -> None:
+ def test_raw_response_generate_speech(self, client: ServerlessInferenceSDKProd, respx_mock: MockRouter) -> None:
respx_mock.post("/audio/speech").mock(return_value=httpx.Response(200, json={"foo": "bar"}))
audio = client.audio.with_raw_response.generate_speech(
@@ -81,7 +83,9 @@ def test_raw_response_generate_speech(self, client: DigitaloceanGenaiSDK, respx_
@pytest.mark.skip()
@parametrize
@pytest.mark.respx(base_url=base_url)
- def test_streaming_response_generate_speech(self, client: DigitaloceanGenaiSDK, respx_mock: MockRouter) -> None:
+ def test_streaming_response_generate_speech(
+ self, client: ServerlessInferenceSDKProd, respx_mock: MockRouter
+ ) -> None:
respx_mock.post("/audio/speech").mock(return_value=httpx.Response(200, json={"foo": "bar"}))
with client.audio.with_streaming_response.generate_speech(
input="input",
@@ -99,7 +103,7 @@ def test_streaming_response_generate_speech(self, client: DigitaloceanGenaiSDK,
@pytest.mark.skip()
@parametrize
- def test_method_transcribe_audio(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_transcribe_audio(self, client: ServerlessInferenceSDKProd) -> None:
audio = client.audio.transcribe_audio(
file=b"raw file contents",
model="gpt-4o-transcribe",
@@ -108,7 +112,7 @@ def test_method_transcribe_audio(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_transcribe_audio_with_all_params(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_transcribe_audio_with_all_params(self, client: ServerlessInferenceSDKProd) -> None:
audio = client.audio.transcribe_audio(
file=b"raw file contents",
model="gpt-4o-transcribe",
@@ -124,7 +128,7 @@ def test_method_transcribe_audio_with_all_params(self, client: DigitaloceanGenai
@pytest.mark.skip()
@parametrize
- def test_raw_response_transcribe_audio(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_transcribe_audio(self, client: ServerlessInferenceSDKProd) -> None:
response = client.audio.with_raw_response.transcribe_audio(
file=b"raw file contents",
model="gpt-4o-transcribe",
@@ -137,7 +141,7 @@ def test_raw_response_transcribe_audio(self, client: DigitaloceanGenaiSDK) -> No
@pytest.mark.skip()
@parametrize
- def test_streaming_response_transcribe_audio(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_transcribe_audio(self, client: ServerlessInferenceSDKProd) -> None:
with client.audio.with_streaming_response.transcribe_audio(
file=b"raw file contents",
model="gpt-4o-transcribe",
@@ -152,7 +156,7 @@ def test_streaming_response_transcribe_audio(self, client: DigitaloceanGenaiSDK)
@pytest.mark.skip()
@parametrize
- def test_method_translate_audio(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_translate_audio(self, client: ServerlessInferenceSDKProd) -> None:
audio = client.audio.translate_audio(
file=b"raw file contents",
model="whisper-1",
@@ -161,7 +165,7 @@ def test_method_translate_audio(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_translate_audio_with_all_params(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_translate_audio_with_all_params(self, client: ServerlessInferenceSDKProd) -> None:
audio = client.audio.translate_audio(
file=b"raw file contents",
model="whisper-1",
@@ -173,7 +177,7 @@ def test_method_translate_audio_with_all_params(self, client: DigitaloceanGenaiS
@pytest.mark.skip()
@parametrize
- def test_raw_response_translate_audio(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_translate_audio(self, client: ServerlessInferenceSDKProd) -> None:
response = client.audio.with_raw_response.translate_audio(
file=b"raw file contents",
model="whisper-1",
@@ -186,7 +190,7 @@ def test_raw_response_translate_audio(self, client: DigitaloceanGenaiSDK) -> Non
@pytest.mark.skip()
@parametrize
- def test_streaming_response_translate_audio(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_translate_audio(self, client: ServerlessInferenceSDKProd) -> None:
with client.audio.with_streaming_response.translate_audio(
file=b"raw file contents",
model="whisper-1",
@@ -207,7 +211,7 @@ class TestAsyncAudio:
@parametrize
@pytest.mark.respx(base_url=base_url)
async def test_method_generate_speech(
- self, async_client: AsyncDigitaloceanGenaiSDK, respx_mock: MockRouter
+ self, async_client: AsyncServerlessInferenceSDKProd, respx_mock: MockRouter
) -> None:
respx_mock.post("/audio/speech").mock(return_value=httpx.Response(200, json={"foo": "bar"}))
audio = await async_client.audio.generate_speech(
@@ -224,7 +228,7 @@ async def test_method_generate_speech(
@parametrize
@pytest.mark.respx(base_url=base_url)
async def test_method_generate_speech_with_all_params(
- self, async_client: AsyncDigitaloceanGenaiSDK, respx_mock: MockRouter
+ self, async_client: AsyncServerlessInferenceSDKProd, respx_mock: MockRouter
) -> None:
respx_mock.post("/audio/speech").mock(return_value=httpx.Response(200, json={"foo": "bar"}))
audio = await async_client.audio.generate_speech(
@@ -244,7 +248,7 @@ async def test_method_generate_speech_with_all_params(
@parametrize
@pytest.mark.respx(base_url=base_url)
async def test_raw_response_generate_speech(
- self, async_client: AsyncDigitaloceanGenaiSDK, respx_mock: MockRouter
+ self, async_client: AsyncServerlessInferenceSDKProd, respx_mock: MockRouter
) -> None:
respx_mock.post("/audio/speech").mock(return_value=httpx.Response(200, json={"foo": "bar"}))
@@ -263,7 +267,7 @@ async def test_raw_response_generate_speech(
@parametrize
@pytest.mark.respx(base_url=base_url)
async def test_streaming_response_generate_speech(
- self, async_client: AsyncDigitaloceanGenaiSDK, respx_mock: MockRouter
+ self, async_client: AsyncServerlessInferenceSDKProd, respx_mock: MockRouter
) -> None:
respx_mock.post("/audio/speech").mock(return_value=httpx.Response(200, json={"foo": "bar"}))
async with async_client.audio.with_streaming_response.generate_speech(
@@ -282,7 +286,7 @@ async def test_streaming_response_generate_speech(
@pytest.mark.skip()
@parametrize
- async def test_method_transcribe_audio(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_transcribe_audio(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
audio = await async_client.audio.transcribe_audio(
file=b"raw file contents",
model="gpt-4o-transcribe",
@@ -291,7 +295,7 @@ async def test_method_transcribe_audio(self, async_client: AsyncDigitaloceanGena
@pytest.mark.skip()
@parametrize
- async def test_method_transcribe_audio_with_all_params(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_transcribe_audio_with_all_params(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
audio = await async_client.audio.transcribe_audio(
file=b"raw file contents",
model="gpt-4o-transcribe",
@@ -307,7 +311,7 @@ async def test_method_transcribe_audio_with_all_params(self, async_client: Async
@pytest.mark.skip()
@parametrize
- async def test_raw_response_transcribe_audio(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_transcribe_audio(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.audio.with_raw_response.transcribe_audio(
file=b"raw file contents",
model="gpt-4o-transcribe",
@@ -320,7 +324,7 @@ async def test_raw_response_transcribe_audio(self, async_client: AsyncDigitaloce
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_transcribe_audio(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_transcribe_audio(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.audio.with_streaming_response.transcribe_audio(
file=b"raw file contents",
model="gpt-4o-transcribe",
@@ -335,7 +339,7 @@ async def test_streaming_response_transcribe_audio(self, async_client: AsyncDigi
@pytest.mark.skip()
@parametrize
- async def test_method_translate_audio(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_translate_audio(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
audio = await async_client.audio.translate_audio(
file=b"raw file contents",
model="whisper-1",
@@ -344,7 +348,7 @@ async def test_method_translate_audio(self, async_client: AsyncDigitaloceanGenai
@pytest.mark.skip()
@parametrize
- async def test_method_translate_audio_with_all_params(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_translate_audio_with_all_params(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
audio = await async_client.audio.translate_audio(
file=b"raw file contents",
model="whisper-1",
@@ -356,7 +360,7 @@ async def test_method_translate_audio_with_all_params(self, async_client: AsyncD
@pytest.mark.skip()
@parametrize
- async def test_raw_response_translate_audio(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_translate_audio(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.audio.with_raw_response.translate_audio(
file=b"raw file contents",
model="whisper-1",
@@ -369,7 +373,7 @@ async def test_raw_response_translate_audio(self, async_client: AsyncDigitalocea
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_translate_audio(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_translate_audio(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.audio.with_streaming_response.translate_audio(
file=b"raw file contents",
model="whisper-1",
diff --git a/tests/api_resources/test_batches.py b/tests/api_resources/test_batches.py
index 6ad0bbee..fea2574e 100644
--- a/tests/api_resources/test_batches.py
+++ b/tests/api_resources/test_batches.py
@@ -8,8 +8,8 @@
import pytest
from tests.utils import assert_matches_type
-from digitalocean_genai_sdk import DigitaloceanGenaiSDK, AsyncDigitaloceanGenaiSDK
-from digitalocean_genai_sdk.types import Batch, BatchListResponse
+from serverless_inference_sdk_prod import ServerlessInferenceSDKProd, AsyncServerlessInferenceSDKProd
+from serverless_inference_sdk_prod.types import Batch, BatchListResponse
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -19,7 +19,7 @@ class TestBatches:
@pytest.mark.skip()
@parametrize
- def test_method_create(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_create(self, client: ServerlessInferenceSDKProd) -> None:
batch = client.batches.create(
completion_window="24h",
endpoint="/v1/responses",
@@ -29,7 +29,7 @@ def test_method_create(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_create_with_all_params(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_create_with_all_params(self, client: ServerlessInferenceSDKProd) -> None:
batch = client.batches.create(
completion_window="24h",
endpoint="/v1/responses",
@@ -40,7 +40,7 @@ def test_method_create_with_all_params(self, client: DigitaloceanGenaiSDK) -> No
@pytest.mark.skip()
@parametrize
- def test_raw_response_create(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_create(self, client: ServerlessInferenceSDKProd) -> None:
response = client.batches.with_raw_response.create(
completion_window="24h",
endpoint="/v1/responses",
@@ -54,7 +54,7 @@ def test_raw_response_create(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_create(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_create(self, client: ServerlessInferenceSDKProd) -> None:
with client.batches.with_streaming_response.create(
completion_window="24h",
endpoint="/v1/responses",
@@ -70,7 +70,7 @@ def test_streaming_response_create(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_retrieve(self, client: ServerlessInferenceSDKProd) -> None:
batch = client.batches.retrieve(
"batch_id",
)
@@ -78,7 +78,7 @@ def test_method_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_raw_response_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_retrieve(self, client: ServerlessInferenceSDKProd) -> None:
response = client.batches.with_raw_response.retrieve(
"batch_id",
)
@@ -90,7 +90,7 @@ def test_raw_response_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_retrieve(self, client: ServerlessInferenceSDKProd) -> None:
with client.batches.with_streaming_response.retrieve(
"batch_id",
) as response:
@@ -104,7 +104,7 @@ def test_streaming_response_retrieve(self, client: DigitaloceanGenaiSDK) -> None
@pytest.mark.skip()
@parametrize
- def test_path_params_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_path_params_retrieve(self, client: ServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `batch_id` but received ''"):
client.batches.with_raw_response.retrieve(
"",
@@ -112,13 +112,13 @@ def test_path_params_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_list(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_list(self, client: ServerlessInferenceSDKProd) -> None:
batch = client.batches.list()
assert_matches_type(BatchListResponse, batch, path=["response"])
@pytest.mark.skip()
@parametrize
- def test_method_list_with_all_params(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_list_with_all_params(self, client: ServerlessInferenceSDKProd) -> None:
batch = client.batches.list(
after="after",
limit=0,
@@ -127,7 +127,7 @@ def test_method_list_with_all_params(self, client: DigitaloceanGenaiSDK) -> None
@pytest.mark.skip()
@parametrize
- def test_raw_response_list(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_list(self, client: ServerlessInferenceSDKProd) -> None:
response = client.batches.with_raw_response.list()
assert response.is_closed is True
@@ -137,7 +137,7 @@ def test_raw_response_list(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_list(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_list(self, client: ServerlessInferenceSDKProd) -> None:
with client.batches.with_streaming_response.list() as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -149,7 +149,7 @@ def test_streaming_response_list(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_cancel(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_cancel(self, client: ServerlessInferenceSDKProd) -> None:
batch = client.batches.cancel(
"batch_id",
)
@@ -157,7 +157,7 @@ def test_method_cancel(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_raw_response_cancel(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_cancel(self, client: ServerlessInferenceSDKProd) -> None:
response = client.batches.with_raw_response.cancel(
"batch_id",
)
@@ -169,7 +169,7 @@ def test_raw_response_cancel(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_cancel(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_cancel(self, client: ServerlessInferenceSDKProd) -> None:
with client.batches.with_streaming_response.cancel(
"batch_id",
) as response:
@@ -183,7 +183,7 @@ def test_streaming_response_cancel(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_path_params_cancel(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_path_params_cancel(self, client: ServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `batch_id` but received ''"):
client.batches.with_raw_response.cancel(
"",
@@ -195,7 +195,7 @@ class TestAsyncBatches:
@pytest.mark.skip()
@parametrize
- async def test_method_create(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_create(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
batch = await async_client.batches.create(
completion_window="24h",
endpoint="/v1/responses",
@@ -205,7 +205,7 @@ async def test_method_create(self, async_client: AsyncDigitaloceanGenaiSDK) -> N
@pytest.mark.skip()
@parametrize
- async def test_method_create_with_all_params(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_create_with_all_params(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
batch = await async_client.batches.create(
completion_window="24h",
endpoint="/v1/responses",
@@ -216,7 +216,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncDigitaloce
@pytest.mark.skip()
@parametrize
- async def test_raw_response_create(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_create(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.batches.with_raw_response.create(
completion_window="24h",
endpoint="/v1/responses",
@@ -230,7 +230,7 @@ async def test_raw_response_create(self, async_client: AsyncDigitaloceanGenaiSDK
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_create(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_create(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.batches.with_streaming_response.create(
completion_window="24h",
endpoint="/v1/responses",
@@ -246,7 +246,7 @@ async def test_streaming_response_create(self, async_client: AsyncDigitaloceanGe
@pytest.mark.skip()
@parametrize
- async def test_method_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_retrieve(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
batch = await async_client.batches.retrieve(
"batch_id",
)
@@ -254,7 +254,7 @@ async def test_method_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) ->
@pytest.mark.skip()
@parametrize
- async def test_raw_response_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_retrieve(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.batches.with_raw_response.retrieve(
"batch_id",
)
@@ -266,7 +266,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncDigitaloceanGenaiS
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_retrieve(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.batches.with_streaming_response.retrieve(
"batch_id",
) as response:
@@ -280,7 +280,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncDigitalocean
@pytest.mark.skip()
@parametrize
- async def test_path_params_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_path_params_retrieve(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `batch_id` but received ''"):
await async_client.batches.with_raw_response.retrieve(
"",
@@ -288,13 +288,13 @@ async def test_path_params_retrieve(self, async_client: AsyncDigitaloceanGenaiSD
@pytest.mark.skip()
@parametrize
- async def test_method_list(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_list(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
batch = await async_client.batches.list()
assert_matches_type(BatchListResponse, batch, path=["response"])
@pytest.mark.skip()
@parametrize
- async def test_method_list_with_all_params(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_list_with_all_params(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
batch = await async_client.batches.list(
after="after",
limit=0,
@@ -303,7 +303,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncDigitalocean
@pytest.mark.skip()
@parametrize
- async def test_raw_response_list(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_list(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.batches.with_raw_response.list()
assert response.is_closed is True
@@ -313,7 +313,7 @@ async def test_raw_response_list(self, async_client: AsyncDigitaloceanGenaiSDK)
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_list(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_list(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.batches.with_streaming_response.list() as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -325,7 +325,7 @@ async def test_streaming_response_list(self, async_client: AsyncDigitaloceanGena
@pytest.mark.skip()
@parametrize
- async def test_method_cancel(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_cancel(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
batch = await async_client.batches.cancel(
"batch_id",
)
@@ -333,7 +333,7 @@ async def test_method_cancel(self, async_client: AsyncDigitaloceanGenaiSDK) -> N
@pytest.mark.skip()
@parametrize
- async def test_raw_response_cancel(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_cancel(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.batches.with_raw_response.cancel(
"batch_id",
)
@@ -345,7 +345,7 @@ async def test_raw_response_cancel(self, async_client: AsyncDigitaloceanGenaiSDK
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_cancel(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_cancel(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.batches.with_streaming_response.cancel(
"batch_id",
) as response:
@@ -359,7 +359,7 @@ async def test_streaming_response_cancel(self, async_client: AsyncDigitaloceanGe
@pytest.mark.skip()
@parametrize
- async def test_path_params_cancel(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_path_params_cancel(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `batch_id` but received ''"):
await async_client.batches.with_raw_response.cancel(
"",
diff --git a/tests/api_resources/test_completions.py b/tests/api_resources/test_completions.py
index eb5c1abd..79047286 100644
--- a/tests/api_resources/test_completions.py
+++ b/tests/api_resources/test_completions.py
@@ -8,8 +8,8 @@
import pytest
from tests.utils import assert_matches_type
-from digitalocean_genai_sdk import DigitaloceanGenaiSDK, AsyncDigitaloceanGenaiSDK
-from digitalocean_genai_sdk.types import (
+from serverless_inference_sdk_prod import ServerlessInferenceSDKProd, AsyncServerlessInferenceSDKProd
+from serverless_inference_sdk_prod.types import (
CompletionCreateResponse,
)
@@ -21,7 +21,7 @@ class TestCompletions:
@pytest.mark.skip()
@parametrize
- def test_method_create(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_create(self, client: ServerlessInferenceSDKProd) -> None:
completion = client.completions.create(
model="string",
prompt="This is a test.",
@@ -30,7 +30,7 @@ def test_method_create(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_create_with_all_params(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_create_with_all_params(self, client: ServerlessInferenceSDKProd) -> None:
completion = client.completions.create(
model="string",
prompt="This is a test.",
@@ -55,7 +55,7 @@ def test_method_create_with_all_params(self, client: DigitaloceanGenaiSDK) -> No
@pytest.mark.skip()
@parametrize
- def test_raw_response_create(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_create(self, client: ServerlessInferenceSDKProd) -> None:
response = client.completions.with_raw_response.create(
model="string",
prompt="This is a test.",
@@ -68,7 +68,7 @@ def test_raw_response_create(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_create(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_create(self, client: ServerlessInferenceSDKProd) -> None:
with client.completions.with_streaming_response.create(
model="string",
prompt="This is a test.",
@@ -87,7 +87,7 @@ class TestAsyncCompletions:
@pytest.mark.skip()
@parametrize
- async def test_method_create(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_create(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
completion = await async_client.completions.create(
model="string",
prompt="This is a test.",
@@ -96,7 +96,7 @@ async def test_method_create(self, async_client: AsyncDigitaloceanGenaiSDK) -> N
@pytest.mark.skip()
@parametrize
- async def test_method_create_with_all_params(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_create_with_all_params(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
completion = await async_client.completions.create(
model="string",
prompt="This is a test.",
@@ -121,7 +121,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncDigitaloce
@pytest.mark.skip()
@parametrize
- async def test_raw_response_create(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_create(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.completions.with_raw_response.create(
model="string",
prompt="This is a test.",
@@ -134,7 +134,7 @@ async def test_raw_response_create(self, async_client: AsyncDigitaloceanGenaiSDK
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_create(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_create(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.completions.with_streaming_response.create(
model="string",
prompt="This is a test.",
diff --git a/tests/api_resources/test_embeddings.py b/tests/api_resources/test_embeddings.py
index bd3ef322..b0f4ccac 100644
--- a/tests/api_resources/test_embeddings.py
+++ b/tests/api_resources/test_embeddings.py
@@ -8,8 +8,8 @@
import pytest
from tests.utils import assert_matches_type
-from digitalocean_genai_sdk import DigitaloceanGenaiSDK, AsyncDigitaloceanGenaiSDK
-from digitalocean_genai_sdk.types import EmbeddingCreateResponse
+from serverless_inference_sdk_prod import ServerlessInferenceSDKProd, AsyncServerlessInferenceSDKProd
+from serverless_inference_sdk_prod.types import EmbeddingCreateResponse
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -19,7 +19,7 @@ class TestEmbeddings:
@pytest.mark.skip()
@parametrize
- def test_method_create(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_create(self, client: ServerlessInferenceSDKProd) -> None:
embedding = client.embeddings.create(
input="The quick brown fox jumped over the lazy dog",
model="text-embedding-3-small",
@@ -28,7 +28,7 @@ def test_method_create(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_create_with_all_params(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_create_with_all_params(self, client: ServerlessInferenceSDKProd) -> None:
embedding = client.embeddings.create(
input="The quick brown fox jumped over the lazy dog",
model="text-embedding-3-small",
@@ -40,7 +40,7 @@ def test_method_create_with_all_params(self, client: DigitaloceanGenaiSDK) -> No
@pytest.mark.skip()
@parametrize
- def test_raw_response_create(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_create(self, client: ServerlessInferenceSDKProd) -> None:
response = client.embeddings.with_raw_response.create(
input="The quick brown fox jumped over the lazy dog",
model="text-embedding-3-small",
@@ -53,7 +53,7 @@ def test_raw_response_create(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_create(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_create(self, client: ServerlessInferenceSDKProd) -> None:
with client.embeddings.with_streaming_response.create(
input="The quick brown fox jumped over the lazy dog",
model="text-embedding-3-small",
@@ -72,7 +72,7 @@ class TestAsyncEmbeddings:
@pytest.mark.skip()
@parametrize
- async def test_method_create(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_create(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
embedding = await async_client.embeddings.create(
input="The quick brown fox jumped over the lazy dog",
model="text-embedding-3-small",
@@ -81,7 +81,7 @@ async def test_method_create(self, async_client: AsyncDigitaloceanGenaiSDK) -> N
@pytest.mark.skip()
@parametrize
- async def test_method_create_with_all_params(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_create_with_all_params(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
embedding = await async_client.embeddings.create(
input="The quick brown fox jumped over the lazy dog",
model="text-embedding-3-small",
@@ -93,7 +93,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncDigitaloce
@pytest.mark.skip()
@parametrize
- async def test_raw_response_create(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_create(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.embeddings.with_raw_response.create(
input="The quick brown fox jumped over the lazy dog",
model="text-embedding-3-small",
@@ -106,7 +106,7 @@ async def test_raw_response_create(self, async_client: AsyncDigitaloceanGenaiSDK
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_create(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_create(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.embeddings.with_streaming_response.create(
input="The quick brown fox jumped over the lazy dog",
model="text-embedding-3-small",
diff --git a/tests/api_resources/test_files.py b/tests/api_resources/test_files.py
index b30ae859..ab945693 100644
--- a/tests/api_resources/test_files.py
+++ b/tests/api_resources/test_files.py
@@ -8,8 +8,8 @@
import pytest
from tests.utils import assert_matches_type
-from digitalocean_genai_sdk import DigitaloceanGenaiSDK, AsyncDigitaloceanGenaiSDK
-from digitalocean_genai_sdk.types import (
+from serverless_inference_sdk_prod import ServerlessInferenceSDKProd, AsyncServerlessInferenceSDKProd
+from serverless_inference_sdk_prod.types import (
OpenAIFile,
FileListResponse,
FileDeleteResponse,
@@ -23,7 +23,7 @@ class TestFiles:
@pytest.mark.skip()
@parametrize
- def test_method_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_retrieve(self, client: ServerlessInferenceSDKProd) -> None:
file = client.files.retrieve(
"file_id",
)
@@ -31,7 +31,7 @@ def test_method_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_raw_response_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_retrieve(self, client: ServerlessInferenceSDKProd) -> None:
response = client.files.with_raw_response.retrieve(
"file_id",
)
@@ -43,7 +43,7 @@ def test_raw_response_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_retrieve(self, client: ServerlessInferenceSDKProd) -> None:
with client.files.with_streaming_response.retrieve(
"file_id",
) as response:
@@ -57,7 +57,7 @@ def test_streaming_response_retrieve(self, client: DigitaloceanGenaiSDK) -> None
@pytest.mark.skip()
@parametrize
- def test_path_params_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_path_params_retrieve(self, client: ServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `file_id` but received ''"):
client.files.with_raw_response.retrieve(
"",
@@ -65,13 +65,13 @@ def test_path_params_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_list(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_list(self, client: ServerlessInferenceSDKProd) -> None:
file = client.files.list()
assert_matches_type(FileListResponse, file, path=["response"])
@pytest.mark.skip()
@parametrize
- def test_method_list_with_all_params(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_list_with_all_params(self, client: ServerlessInferenceSDKProd) -> None:
file = client.files.list(
after="after",
limit=0,
@@ -82,7 +82,7 @@ def test_method_list_with_all_params(self, client: DigitaloceanGenaiSDK) -> None
@pytest.mark.skip()
@parametrize
- def test_raw_response_list(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_list(self, client: ServerlessInferenceSDKProd) -> None:
response = client.files.with_raw_response.list()
assert response.is_closed is True
@@ -92,7 +92,7 @@ def test_raw_response_list(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_list(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_list(self, client: ServerlessInferenceSDKProd) -> None:
with client.files.with_streaming_response.list() as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -104,7 +104,7 @@ def test_streaming_response_list(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_delete(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_delete(self, client: ServerlessInferenceSDKProd) -> None:
file = client.files.delete(
"file_id",
)
@@ -112,7 +112,7 @@ def test_method_delete(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_raw_response_delete(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_delete(self, client: ServerlessInferenceSDKProd) -> None:
response = client.files.with_raw_response.delete(
"file_id",
)
@@ -124,7 +124,7 @@ def test_raw_response_delete(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_delete(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_delete(self, client: ServerlessInferenceSDKProd) -> None:
with client.files.with_streaming_response.delete(
"file_id",
) as response:
@@ -138,7 +138,7 @@ def test_streaming_response_delete(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_path_params_delete(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_path_params_delete(self, client: ServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `file_id` but received ''"):
client.files.with_raw_response.delete(
"",
@@ -146,7 +146,7 @@ def test_path_params_delete(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_retrieve_content(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_retrieve_content(self, client: ServerlessInferenceSDKProd) -> None:
file = client.files.retrieve_content(
"file_id",
)
@@ -154,7 +154,7 @@ def test_method_retrieve_content(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_raw_response_retrieve_content(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_retrieve_content(self, client: ServerlessInferenceSDKProd) -> None:
response = client.files.with_raw_response.retrieve_content(
"file_id",
)
@@ -166,7 +166,7 @@ def test_raw_response_retrieve_content(self, client: DigitaloceanGenaiSDK) -> No
@pytest.mark.skip()
@parametrize
- def test_streaming_response_retrieve_content(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_retrieve_content(self, client: ServerlessInferenceSDKProd) -> None:
with client.files.with_streaming_response.retrieve_content(
"file_id",
) as response:
@@ -180,7 +180,7 @@ def test_streaming_response_retrieve_content(self, client: DigitaloceanGenaiSDK)
@pytest.mark.skip()
@parametrize
- def test_path_params_retrieve_content(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_path_params_retrieve_content(self, client: ServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `file_id` but received ''"):
client.files.with_raw_response.retrieve_content(
"",
@@ -188,7 +188,7 @@ def test_path_params_retrieve_content(self, client: DigitaloceanGenaiSDK) -> Non
@pytest.mark.skip()
@parametrize
- def test_method_upload(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_upload(self, client: ServerlessInferenceSDKProd) -> None:
file = client.files.upload(
file=b"raw file contents",
purpose="assistants",
@@ -197,7 +197,7 @@ def test_method_upload(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_raw_response_upload(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_upload(self, client: ServerlessInferenceSDKProd) -> None:
response = client.files.with_raw_response.upload(
file=b"raw file contents",
purpose="assistants",
@@ -210,7 +210,7 @@ def test_raw_response_upload(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_upload(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_upload(self, client: ServerlessInferenceSDKProd) -> None:
with client.files.with_streaming_response.upload(
file=b"raw file contents",
purpose="assistants",
@@ -229,7 +229,7 @@ class TestAsyncFiles:
@pytest.mark.skip()
@parametrize
- async def test_method_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_retrieve(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
file = await async_client.files.retrieve(
"file_id",
)
@@ -237,7 +237,7 @@ async def test_method_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) ->
@pytest.mark.skip()
@parametrize
- async def test_raw_response_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_retrieve(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.files.with_raw_response.retrieve(
"file_id",
)
@@ -249,7 +249,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncDigitaloceanGenaiS
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_retrieve(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.files.with_streaming_response.retrieve(
"file_id",
) as response:
@@ -263,7 +263,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncDigitalocean
@pytest.mark.skip()
@parametrize
- async def test_path_params_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_path_params_retrieve(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `file_id` but received ''"):
await async_client.files.with_raw_response.retrieve(
"",
@@ -271,13 +271,13 @@ async def test_path_params_retrieve(self, async_client: AsyncDigitaloceanGenaiSD
@pytest.mark.skip()
@parametrize
- async def test_method_list(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_list(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
file = await async_client.files.list()
assert_matches_type(FileListResponse, file, path=["response"])
@pytest.mark.skip()
@parametrize
- async def test_method_list_with_all_params(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_list_with_all_params(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
file = await async_client.files.list(
after="after",
limit=0,
@@ -288,7 +288,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncDigitalocean
@pytest.mark.skip()
@parametrize
- async def test_raw_response_list(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_list(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.files.with_raw_response.list()
assert response.is_closed is True
@@ -298,7 +298,7 @@ async def test_raw_response_list(self, async_client: AsyncDigitaloceanGenaiSDK)
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_list(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_list(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.files.with_streaming_response.list() as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -310,7 +310,7 @@ async def test_streaming_response_list(self, async_client: AsyncDigitaloceanGena
@pytest.mark.skip()
@parametrize
- async def test_method_delete(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_delete(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
file = await async_client.files.delete(
"file_id",
)
@@ -318,7 +318,7 @@ async def test_method_delete(self, async_client: AsyncDigitaloceanGenaiSDK) -> N
@pytest.mark.skip()
@parametrize
- async def test_raw_response_delete(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_delete(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.files.with_raw_response.delete(
"file_id",
)
@@ -330,7 +330,7 @@ async def test_raw_response_delete(self, async_client: AsyncDigitaloceanGenaiSDK
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_delete(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_delete(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.files.with_streaming_response.delete(
"file_id",
) as response:
@@ -344,7 +344,7 @@ async def test_streaming_response_delete(self, async_client: AsyncDigitaloceanGe
@pytest.mark.skip()
@parametrize
- async def test_path_params_delete(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_path_params_delete(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `file_id` but received ''"):
await async_client.files.with_raw_response.delete(
"",
@@ -352,7 +352,7 @@ async def test_path_params_delete(self, async_client: AsyncDigitaloceanGenaiSDK)
@pytest.mark.skip()
@parametrize
- async def test_method_retrieve_content(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_retrieve_content(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
file = await async_client.files.retrieve_content(
"file_id",
)
@@ -360,7 +360,7 @@ async def test_method_retrieve_content(self, async_client: AsyncDigitaloceanGena
@pytest.mark.skip()
@parametrize
- async def test_raw_response_retrieve_content(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_retrieve_content(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.files.with_raw_response.retrieve_content(
"file_id",
)
@@ -372,7 +372,7 @@ async def test_raw_response_retrieve_content(self, async_client: AsyncDigitaloce
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_retrieve_content(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_retrieve_content(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.files.with_streaming_response.retrieve_content(
"file_id",
) as response:
@@ -386,7 +386,7 @@ async def test_streaming_response_retrieve_content(self, async_client: AsyncDigi
@pytest.mark.skip()
@parametrize
- async def test_path_params_retrieve_content(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_path_params_retrieve_content(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `file_id` but received ''"):
await async_client.files.with_raw_response.retrieve_content(
"",
@@ -394,7 +394,7 @@ async def test_path_params_retrieve_content(self, async_client: AsyncDigitalocea
@pytest.mark.skip()
@parametrize
- async def test_method_upload(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_upload(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
file = await async_client.files.upload(
file=b"raw file contents",
purpose="assistants",
@@ -403,7 +403,7 @@ async def test_method_upload(self, async_client: AsyncDigitaloceanGenaiSDK) -> N
@pytest.mark.skip()
@parametrize
- async def test_raw_response_upload(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_upload(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.files.with_raw_response.upload(
file=b"raw file contents",
purpose="assistants",
@@ -416,7 +416,7 @@ async def test_raw_response_upload(self, async_client: AsyncDigitaloceanGenaiSDK
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_upload(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_upload(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.files.with_streaming_response.upload(
file=b"raw file contents",
purpose="assistants",
diff --git a/tests/api_resources/test_images.py b/tests/api_resources/test_images.py
index 380a0759..4b47e025 100644
--- a/tests/api_resources/test_images.py
+++ b/tests/api_resources/test_images.py
@@ -8,8 +8,8 @@
import pytest
from tests.utils import assert_matches_type
-from digitalocean_genai_sdk import DigitaloceanGenaiSDK, AsyncDigitaloceanGenaiSDK
-from digitalocean_genai_sdk.types import (
+from serverless_inference_sdk_prod import ServerlessInferenceSDKProd, AsyncServerlessInferenceSDKProd
+from serverless_inference_sdk_prod.types import (
ImagesResponse,
)
@@ -21,7 +21,7 @@ class TestImages:
@pytest.mark.skip()
@parametrize
- def test_method_create_edit(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_create_edit(self, client: ServerlessInferenceSDKProd) -> None:
image = client.images.create_edit(
image=b"raw file contents",
prompt="A cute baby sea otter wearing a beret",
@@ -30,7 +30,7 @@ def test_method_create_edit(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_create_edit_with_all_params(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_create_edit_with_all_params(self, client: ServerlessInferenceSDKProd) -> None:
image = client.images.create_edit(
image=b"raw file contents",
prompt="A cute baby sea otter wearing a beret",
@@ -45,7 +45,7 @@ def test_method_create_edit_with_all_params(self, client: DigitaloceanGenaiSDK)
@pytest.mark.skip()
@parametrize
- def test_raw_response_create_edit(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_create_edit(self, client: ServerlessInferenceSDKProd) -> None:
response = client.images.with_raw_response.create_edit(
image=b"raw file contents",
prompt="A cute baby sea otter wearing a beret",
@@ -58,7 +58,7 @@ def test_raw_response_create_edit(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_create_edit(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_create_edit(self, client: ServerlessInferenceSDKProd) -> None:
with client.images.with_streaming_response.create_edit(
image=b"raw file contents",
prompt="A cute baby sea otter wearing a beret",
@@ -73,7 +73,7 @@ def test_streaming_response_create_edit(self, client: DigitaloceanGenaiSDK) -> N
@pytest.mark.skip()
@parametrize
- def test_method_create_generation(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_create_generation(self, client: ServerlessInferenceSDKProd) -> None:
image = client.images.create_generation(
prompt="A cute baby sea otter",
)
@@ -81,7 +81,7 @@ def test_method_create_generation(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_create_generation_with_all_params(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_create_generation_with_all_params(self, client: ServerlessInferenceSDKProd) -> None:
image = client.images.create_generation(
prompt="A cute baby sea otter",
model="dall-e-3",
@@ -96,7 +96,7 @@ def test_method_create_generation_with_all_params(self, client: DigitaloceanGena
@pytest.mark.skip()
@parametrize
- def test_raw_response_create_generation(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_create_generation(self, client: ServerlessInferenceSDKProd) -> None:
response = client.images.with_raw_response.create_generation(
prompt="A cute baby sea otter",
)
@@ -108,7 +108,7 @@ def test_raw_response_create_generation(self, client: DigitaloceanGenaiSDK) -> N
@pytest.mark.skip()
@parametrize
- def test_streaming_response_create_generation(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_create_generation(self, client: ServerlessInferenceSDKProd) -> None:
with client.images.with_streaming_response.create_generation(
prompt="A cute baby sea otter",
) as response:
@@ -122,7 +122,7 @@ def test_streaming_response_create_generation(self, client: DigitaloceanGenaiSDK
@pytest.mark.skip()
@parametrize
- def test_method_create_variation(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_create_variation(self, client: ServerlessInferenceSDKProd) -> None:
image = client.images.create_variation(
image=b"raw file contents",
)
@@ -130,7 +130,7 @@ def test_method_create_variation(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_create_variation_with_all_params(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_create_variation_with_all_params(self, client: ServerlessInferenceSDKProd) -> None:
image = client.images.create_variation(
image=b"raw file contents",
model="dall-e-2",
@@ -143,7 +143,7 @@ def test_method_create_variation_with_all_params(self, client: DigitaloceanGenai
@pytest.mark.skip()
@parametrize
- def test_raw_response_create_variation(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_create_variation(self, client: ServerlessInferenceSDKProd) -> None:
response = client.images.with_raw_response.create_variation(
image=b"raw file contents",
)
@@ -155,7 +155,7 @@ def test_raw_response_create_variation(self, client: DigitaloceanGenaiSDK) -> No
@pytest.mark.skip()
@parametrize
- def test_streaming_response_create_variation(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_create_variation(self, client: ServerlessInferenceSDKProd) -> None:
with client.images.with_streaming_response.create_variation(
image=b"raw file contents",
) as response:
@@ -173,7 +173,7 @@ class TestAsyncImages:
@pytest.mark.skip()
@parametrize
- async def test_method_create_edit(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_create_edit(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
image = await async_client.images.create_edit(
image=b"raw file contents",
prompt="A cute baby sea otter wearing a beret",
@@ -182,7 +182,7 @@ async def test_method_create_edit(self, async_client: AsyncDigitaloceanGenaiSDK)
@pytest.mark.skip()
@parametrize
- async def test_method_create_edit_with_all_params(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_create_edit_with_all_params(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
image = await async_client.images.create_edit(
image=b"raw file contents",
prompt="A cute baby sea otter wearing a beret",
@@ -197,7 +197,7 @@ async def test_method_create_edit_with_all_params(self, async_client: AsyncDigit
@pytest.mark.skip()
@parametrize
- async def test_raw_response_create_edit(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_create_edit(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.images.with_raw_response.create_edit(
image=b"raw file contents",
prompt="A cute baby sea otter wearing a beret",
@@ -210,7 +210,7 @@ async def test_raw_response_create_edit(self, async_client: AsyncDigitaloceanGen
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_create_edit(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_create_edit(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.images.with_streaming_response.create_edit(
image=b"raw file contents",
prompt="A cute baby sea otter wearing a beret",
@@ -225,7 +225,7 @@ async def test_streaming_response_create_edit(self, async_client: AsyncDigitaloc
@pytest.mark.skip()
@parametrize
- async def test_method_create_generation(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_create_generation(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
image = await async_client.images.create_generation(
prompt="A cute baby sea otter",
)
@@ -233,7 +233,9 @@ async def test_method_create_generation(self, async_client: AsyncDigitaloceanGen
@pytest.mark.skip()
@parametrize
- async def test_method_create_generation_with_all_params(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_create_generation_with_all_params(
+ self, async_client: AsyncServerlessInferenceSDKProd
+ ) -> None:
image = await async_client.images.create_generation(
prompt="A cute baby sea otter",
model="dall-e-3",
@@ -248,7 +250,7 @@ async def test_method_create_generation_with_all_params(self, async_client: Asyn
@pytest.mark.skip()
@parametrize
- async def test_raw_response_create_generation(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_create_generation(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.images.with_raw_response.create_generation(
prompt="A cute baby sea otter",
)
@@ -260,7 +262,7 @@ async def test_raw_response_create_generation(self, async_client: AsyncDigitaloc
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_create_generation(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_create_generation(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.images.with_streaming_response.create_generation(
prompt="A cute baby sea otter",
) as response:
@@ -274,7 +276,7 @@ async def test_streaming_response_create_generation(self, async_client: AsyncDig
@pytest.mark.skip()
@parametrize
- async def test_method_create_variation(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_create_variation(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
image = await async_client.images.create_variation(
image=b"raw file contents",
)
@@ -282,7 +284,7 @@ async def test_method_create_variation(self, async_client: AsyncDigitaloceanGena
@pytest.mark.skip()
@parametrize
- async def test_method_create_variation_with_all_params(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_create_variation_with_all_params(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
image = await async_client.images.create_variation(
image=b"raw file contents",
model="dall-e-2",
@@ -295,7 +297,7 @@ async def test_method_create_variation_with_all_params(self, async_client: Async
@pytest.mark.skip()
@parametrize
- async def test_raw_response_create_variation(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_create_variation(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.images.with_raw_response.create_variation(
image=b"raw file contents",
)
@@ -307,7 +309,7 @@ async def test_raw_response_create_variation(self, async_client: AsyncDigitaloce
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_create_variation(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_create_variation(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.images.with_streaming_response.create_variation(
image=b"raw file contents",
) as response:
diff --git a/tests/api_resources/test_models.py b/tests/api_resources/test_models.py
index aa215415..b012a35b 100644
--- a/tests/api_resources/test_models.py
+++ b/tests/api_resources/test_models.py
@@ -8,8 +8,8 @@
import pytest
from tests.utils import assert_matches_type
-from digitalocean_genai_sdk import DigitaloceanGenaiSDK, AsyncDigitaloceanGenaiSDK
-from digitalocean_genai_sdk.types import Model, ModelListResponse, ModelDeleteResponse
+from serverless_inference_sdk_prod import ServerlessInferenceSDKProd, AsyncServerlessInferenceSDKProd
+from serverless_inference_sdk_prod.types import Model, ModelListResponse, ModelDeleteResponse
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -19,7 +19,7 @@ class TestModels:
@pytest.mark.skip()
@parametrize
- def test_method_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_retrieve(self, client: ServerlessInferenceSDKProd) -> None:
model = client.models.retrieve(
"gpt-4o-mini",
)
@@ -27,7 +27,7 @@ def test_method_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_raw_response_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_retrieve(self, client: ServerlessInferenceSDKProd) -> None:
response = client.models.with_raw_response.retrieve(
"gpt-4o-mini",
)
@@ -39,7 +39,7 @@ def test_raw_response_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_retrieve(self, client: ServerlessInferenceSDKProd) -> None:
with client.models.with_streaming_response.retrieve(
"gpt-4o-mini",
) as response:
@@ -53,7 +53,7 @@ def test_streaming_response_retrieve(self, client: DigitaloceanGenaiSDK) -> None
@pytest.mark.skip()
@parametrize
- def test_path_params_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_path_params_retrieve(self, client: ServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `model` but received ''"):
client.models.with_raw_response.retrieve(
"",
@@ -61,13 +61,13 @@ def test_path_params_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_list(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_list(self, client: ServerlessInferenceSDKProd) -> None:
model = client.models.list()
assert_matches_type(ModelListResponse, model, path=["response"])
@pytest.mark.skip()
@parametrize
- def test_raw_response_list(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_list(self, client: ServerlessInferenceSDKProd) -> None:
response = client.models.with_raw_response.list()
assert response.is_closed is True
@@ -77,7 +77,7 @@ def test_raw_response_list(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_list(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_list(self, client: ServerlessInferenceSDKProd) -> None:
with client.models.with_streaming_response.list() as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -89,7 +89,7 @@ def test_streaming_response_list(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_delete(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_delete(self, client: ServerlessInferenceSDKProd) -> None:
model = client.models.delete(
"ft:gpt-4o-mini:acemeco:suffix:abc123",
)
@@ -97,7 +97,7 @@ def test_method_delete(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_raw_response_delete(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_delete(self, client: ServerlessInferenceSDKProd) -> None:
response = client.models.with_raw_response.delete(
"ft:gpt-4o-mini:acemeco:suffix:abc123",
)
@@ -109,7 +109,7 @@ def test_raw_response_delete(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_delete(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_delete(self, client: ServerlessInferenceSDKProd) -> None:
with client.models.with_streaming_response.delete(
"ft:gpt-4o-mini:acemeco:suffix:abc123",
) as response:
@@ -123,7 +123,7 @@ def test_streaming_response_delete(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_path_params_delete(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_path_params_delete(self, client: ServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `model` but received ''"):
client.models.with_raw_response.delete(
"",
@@ -135,7 +135,7 @@ class TestAsyncModels:
@pytest.mark.skip()
@parametrize
- async def test_method_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_retrieve(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
model = await async_client.models.retrieve(
"gpt-4o-mini",
)
@@ -143,7 +143,7 @@ async def test_method_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) ->
@pytest.mark.skip()
@parametrize
- async def test_raw_response_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_retrieve(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.models.with_raw_response.retrieve(
"gpt-4o-mini",
)
@@ -155,7 +155,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncDigitaloceanGenaiS
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_retrieve(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.models.with_streaming_response.retrieve(
"gpt-4o-mini",
) as response:
@@ -169,7 +169,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncDigitalocean
@pytest.mark.skip()
@parametrize
- async def test_path_params_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_path_params_retrieve(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `model` but received ''"):
await async_client.models.with_raw_response.retrieve(
"",
@@ -177,13 +177,13 @@ async def test_path_params_retrieve(self, async_client: AsyncDigitaloceanGenaiSD
@pytest.mark.skip()
@parametrize
- async def test_method_list(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_list(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
model = await async_client.models.list()
assert_matches_type(ModelListResponse, model, path=["response"])
@pytest.mark.skip()
@parametrize
- async def test_raw_response_list(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_list(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.models.with_raw_response.list()
assert response.is_closed is True
@@ -193,7 +193,7 @@ async def test_raw_response_list(self, async_client: AsyncDigitaloceanGenaiSDK)
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_list(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_list(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.models.with_streaming_response.list() as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -205,7 +205,7 @@ async def test_streaming_response_list(self, async_client: AsyncDigitaloceanGena
@pytest.mark.skip()
@parametrize
- async def test_method_delete(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_delete(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
model = await async_client.models.delete(
"ft:gpt-4o-mini:acemeco:suffix:abc123",
)
@@ -213,7 +213,7 @@ async def test_method_delete(self, async_client: AsyncDigitaloceanGenaiSDK) -> N
@pytest.mark.skip()
@parametrize
- async def test_raw_response_delete(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_delete(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.models.with_raw_response.delete(
"ft:gpt-4o-mini:acemeco:suffix:abc123",
)
@@ -225,7 +225,7 @@ async def test_raw_response_delete(self, async_client: AsyncDigitaloceanGenaiSDK
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_delete(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_delete(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.models.with_streaming_response.delete(
"ft:gpt-4o-mini:acemeco:suffix:abc123",
) as response:
@@ -239,7 +239,7 @@ async def test_streaming_response_delete(self, async_client: AsyncDigitaloceanGe
@pytest.mark.skip()
@parametrize
- async def test_path_params_delete(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_path_params_delete(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `model` but received ''"):
await async_client.models.with_raw_response.delete(
"",
diff --git a/tests/api_resources/test_moderations.py b/tests/api_resources/test_moderations.py
index 79d34625..5d427cd9 100644
--- a/tests/api_resources/test_moderations.py
+++ b/tests/api_resources/test_moderations.py
@@ -8,8 +8,8 @@
import pytest
from tests.utils import assert_matches_type
-from digitalocean_genai_sdk import DigitaloceanGenaiSDK, AsyncDigitaloceanGenaiSDK
-from digitalocean_genai_sdk.types import ModerationClassifyResponse
+from serverless_inference_sdk_prod import ServerlessInferenceSDKProd, AsyncServerlessInferenceSDKProd
+from serverless_inference_sdk_prod.types import ModerationClassifyResponse
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -19,7 +19,7 @@ class TestModerations:
@pytest.mark.skip()
@parametrize
- def test_method_classify(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_classify(self, client: ServerlessInferenceSDKProd) -> None:
moderation = client.moderations.classify(
input="I want to kill them.",
)
@@ -27,7 +27,7 @@ def test_method_classify(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_classify_with_all_params(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_classify_with_all_params(self, client: ServerlessInferenceSDKProd) -> None:
moderation = client.moderations.classify(
input="I want to kill them.",
model="omni-moderation-2024-09-26",
@@ -36,7 +36,7 @@ def test_method_classify_with_all_params(self, client: DigitaloceanGenaiSDK) ->
@pytest.mark.skip()
@parametrize
- def test_raw_response_classify(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_classify(self, client: ServerlessInferenceSDKProd) -> None:
response = client.moderations.with_raw_response.classify(
input="I want to kill them.",
)
@@ -48,7 +48,7 @@ def test_raw_response_classify(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_classify(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_classify(self, client: ServerlessInferenceSDKProd) -> None:
with client.moderations.with_streaming_response.classify(
input="I want to kill them.",
) as response:
@@ -66,7 +66,7 @@ class TestAsyncModerations:
@pytest.mark.skip()
@parametrize
- async def test_method_classify(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_classify(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
moderation = await async_client.moderations.classify(
input="I want to kill them.",
)
@@ -74,7 +74,7 @@ async def test_method_classify(self, async_client: AsyncDigitaloceanGenaiSDK) ->
@pytest.mark.skip()
@parametrize
- async def test_method_classify_with_all_params(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_classify_with_all_params(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
moderation = await async_client.moderations.classify(
input="I want to kill them.",
model="omni-moderation-2024-09-26",
@@ -83,7 +83,7 @@ async def test_method_classify_with_all_params(self, async_client: AsyncDigitalo
@pytest.mark.skip()
@parametrize
- async def test_raw_response_classify(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_classify(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.moderations.with_raw_response.classify(
input="I want to kill them.",
)
@@ -95,7 +95,7 @@ async def test_raw_response_classify(self, async_client: AsyncDigitaloceanGenaiS
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_classify(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_classify(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.moderations.with_streaming_response.classify(
input="I want to kill them.",
) as response:
diff --git a/tests/api_resources/test_organization.py b/tests/api_resources/test_organization.py
index 844ed287..2e6b42df 100644
--- a/tests/api_resources/test_organization.py
+++ b/tests/api_resources/test_organization.py
@@ -8,8 +8,8 @@
import pytest
from tests.utils import assert_matches_type
-from digitalocean_genai_sdk import DigitaloceanGenaiSDK, AsyncDigitaloceanGenaiSDK
-from digitalocean_genai_sdk.types import (
+from serverless_inference_sdk_prod import ServerlessInferenceSDKProd, AsyncServerlessInferenceSDKProd
+from serverless_inference_sdk_prod.types import (
UsageResponse,
OrganizationListAuditLogsResponse,
)
@@ -22,7 +22,7 @@ class TestOrganization:
@pytest.mark.skip()
@parametrize
- def test_method_get_costs(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_get_costs(self, client: ServerlessInferenceSDKProd) -> None:
organization = client.organization.get_costs(
start_time=0,
)
@@ -30,7 +30,7 @@ def test_method_get_costs(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_get_costs_with_all_params(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_get_costs_with_all_params(self, client: ServerlessInferenceSDKProd) -> None:
organization = client.organization.get_costs(
start_time=0,
bucket_width="1d",
@@ -44,7 +44,7 @@ def test_method_get_costs_with_all_params(self, client: DigitaloceanGenaiSDK) ->
@pytest.mark.skip()
@parametrize
- def test_raw_response_get_costs(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_get_costs(self, client: ServerlessInferenceSDKProd) -> None:
response = client.organization.with_raw_response.get_costs(
start_time=0,
)
@@ -56,7 +56,7 @@ def test_raw_response_get_costs(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_get_costs(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_get_costs(self, client: ServerlessInferenceSDKProd) -> None:
with client.organization.with_streaming_response.get_costs(
start_time=0,
) as response:
@@ -70,13 +70,13 @@ def test_streaming_response_get_costs(self, client: DigitaloceanGenaiSDK) -> Non
@pytest.mark.skip()
@parametrize
- def test_method_list_audit_logs(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_list_audit_logs(self, client: ServerlessInferenceSDKProd) -> None:
organization = client.organization.list_audit_logs()
assert_matches_type(OrganizationListAuditLogsResponse, organization, path=["response"])
@pytest.mark.skip()
@parametrize
- def test_method_list_audit_logs_with_all_params(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_list_audit_logs_with_all_params(self, client: ServerlessInferenceSDKProd) -> None:
organization = client.organization.list_audit_logs(
actor_emails=["string"],
actor_ids=["string"],
@@ -97,7 +97,7 @@ def test_method_list_audit_logs_with_all_params(self, client: DigitaloceanGenaiS
@pytest.mark.skip()
@parametrize
- def test_raw_response_list_audit_logs(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_list_audit_logs(self, client: ServerlessInferenceSDKProd) -> None:
response = client.organization.with_raw_response.list_audit_logs()
assert response.is_closed is True
@@ -107,7 +107,7 @@ def test_raw_response_list_audit_logs(self, client: DigitaloceanGenaiSDK) -> Non
@pytest.mark.skip()
@parametrize
- def test_streaming_response_list_audit_logs(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_list_audit_logs(self, client: ServerlessInferenceSDKProd) -> None:
with client.organization.with_streaming_response.list_audit_logs() as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -123,7 +123,7 @@ class TestAsyncOrganization:
@pytest.mark.skip()
@parametrize
- async def test_method_get_costs(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_get_costs(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
organization = await async_client.organization.get_costs(
start_time=0,
)
@@ -131,7 +131,7 @@ async def test_method_get_costs(self, async_client: AsyncDigitaloceanGenaiSDK) -
@pytest.mark.skip()
@parametrize
- async def test_method_get_costs_with_all_params(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_get_costs_with_all_params(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
organization = await async_client.organization.get_costs(
start_time=0,
bucket_width="1d",
@@ -145,7 +145,7 @@ async def test_method_get_costs_with_all_params(self, async_client: AsyncDigital
@pytest.mark.skip()
@parametrize
- async def test_raw_response_get_costs(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_get_costs(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.organization.with_raw_response.get_costs(
start_time=0,
)
@@ -157,7 +157,7 @@ async def test_raw_response_get_costs(self, async_client: AsyncDigitaloceanGenai
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_get_costs(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_get_costs(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.organization.with_streaming_response.get_costs(
start_time=0,
) as response:
@@ -171,13 +171,13 @@ async def test_streaming_response_get_costs(self, async_client: AsyncDigitalocea
@pytest.mark.skip()
@parametrize
- async def test_method_list_audit_logs(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_list_audit_logs(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
organization = await async_client.organization.list_audit_logs()
assert_matches_type(OrganizationListAuditLogsResponse, organization, path=["response"])
@pytest.mark.skip()
@parametrize
- async def test_method_list_audit_logs_with_all_params(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_list_audit_logs_with_all_params(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
organization = await async_client.organization.list_audit_logs(
actor_emails=["string"],
actor_ids=["string"],
@@ -198,7 +198,7 @@ async def test_method_list_audit_logs_with_all_params(self, async_client: AsyncD
@pytest.mark.skip()
@parametrize
- async def test_raw_response_list_audit_logs(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_list_audit_logs(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.organization.with_raw_response.list_audit_logs()
assert response.is_closed is True
@@ -208,7 +208,7 @@ async def test_raw_response_list_audit_logs(self, async_client: AsyncDigitalocea
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_list_audit_logs(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_list_audit_logs(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.organization.with_streaming_response.list_audit_logs() as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
diff --git a/tests/api_resources/test_realtime.py b/tests/api_resources/test_realtime.py
index 15797ff9..ee2acc7d 100644
--- a/tests/api_resources/test_realtime.py
+++ b/tests/api_resources/test_realtime.py
@@ -8,8 +8,8 @@
import pytest
from tests.utils import assert_matches_type
-from digitalocean_genai_sdk import DigitaloceanGenaiSDK, AsyncDigitaloceanGenaiSDK
-from digitalocean_genai_sdk.types import (
+from serverless_inference_sdk_prod import ServerlessInferenceSDKProd, AsyncServerlessInferenceSDKProd
+from serverless_inference_sdk_prod.types import (
RealtimeCreateSessionResponse,
RealtimeCreateTranscriptionSessionResponse,
)
@@ -22,13 +22,13 @@ class TestRealtime:
@pytest.mark.skip()
@parametrize
- def test_method_create_session(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_create_session(self, client: ServerlessInferenceSDKProd) -> None:
realtime = client.realtime.create_session()
assert_matches_type(RealtimeCreateSessionResponse, realtime, path=["response"])
@pytest.mark.skip()
@parametrize
- def test_method_create_session_with_all_params(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_create_session_with_all_params(self, client: ServerlessInferenceSDKProd) -> None:
realtime = client.realtime.create_session(
input_audio_format="pcm16",
input_audio_noise_reduction={"type": "near_field"},
@@ -67,7 +67,7 @@ def test_method_create_session_with_all_params(self, client: DigitaloceanGenaiSD
@pytest.mark.skip()
@parametrize
- def test_raw_response_create_session(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_create_session(self, client: ServerlessInferenceSDKProd) -> None:
response = client.realtime.with_raw_response.create_session()
assert response.is_closed is True
@@ -77,7 +77,7 @@ def test_raw_response_create_session(self, client: DigitaloceanGenaiSDK) -> None
@pytest.mark.skip()
@parametrize
- def test_streaming_response_create_session(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_create_session(self, client: ServerlessInferenceSDKProd) -> None:
with client.realtime.with_streaming_response.create_session() as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -89,13 +89,13 @@ def test_streaming_response_create_session(self, client: DigitaloceanGenaiSDK) -
@pytest.mark.skip()
@parametrize
- def test_method_create_transcription_session(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_create_transcription_session(self, client: ServerlessInferenceSDKProd) -> None:
realtime = client.realtime.create_transcription_session()
assert_matches_type(RealtimeCreateTranscriptionSessionResponse, realtime, path=["response"])
@pytest.mark.skip()
@parametrize
- def test_method_create_transcription_session_with_all_params(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_create_transcription_session_with_all_params(self, client: ServerlessInferenceSDKProd) -> None:
realtime = client.realtime.create_transcription_session(
include=["string"],
input_audio_format="pcm16",
@@ -120,7 +120,7 @@ def test_method_create_transcription_session_with_all_params(self, client: Digit
@pytest.mark.skip()
@parametrize
- def test_raw_response_create_transcription_session(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_create_transcription_session(self, client: ServerlessInferenceSDKProd) -> None:
response = client.realtime.with_raw_response.create_transcription_session()
assert response.is_closed is True
@@ -130,7 +130,7 @@ def test_raw_response_create_transcription_session(self, client: DigitaloceanGen
@pytest.mark.skip()
@parametrize
- def test_streaming_response_create_transcription_session(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_create_transcription_session(self, client: ServerlessInferenceSDKProd) -> None:
with client.realtime.with_streaming_response.create_transcription_session() as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -146,13 +146,13 @@ class TestAsyncRealtime:
@pytest.mark.skip()
@parametrize
- async def test_method_create_session(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_create_session(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
realtime = await async_client.realtime.create_session()
assert_matches_type(RealtimeCreateSessionResponse, realtime, path=["response"])
@pytest.mark.skip()
@parametrize
- async def test_method_create_session_with_all_params(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_create_session_with_all_params(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
realtime = await async_client.realtime.create_session(
input_audio_format="pcm16",
input_audio_noise_reduction={"type": "near_field"},
@@ -191,7 +191,7 @@ async def test_method_create_session_with_all_params(self, async_client: AsyncDi
@pytest.mark.skip()
@parametrize
- async def test_raw_response_create_session(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_create_session(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.realtime.with_raw_response.create_session()
assert response.is_closed is True
@@ -201,7 +201,7 @@ async def test_raw_response_create_session(self, async_client: AsyncDigitalocean
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_create_session(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_create_session(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.realtime.with_streaming_response.create_session() as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -213,14 +213,14 @@ async def test_streaming_response_create_session(self, async_client: AsyncDigita
@pytest.mark.skip()
@parametrize
- async def test_method_create_transcription_session(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_create_transcription_session(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
realtime = await async_client.realtime.create_transcription_session()
assert_matches_type(RealtimeCreateTranscriptionSessionResponse, realtime, path=["response"])
@pytest.mark.skip()
@parametrize
async def test_method_create_transcription_session_with_all_params(
- self, async_client: AsyncDigitaloceanGenaiSDK
+ self, async_client: AsyncServerlessInferenceSDKProd
) -> None:
realtime = await async_client.realtime.create_transcription_session(
include=["string"],
@@ -246,7 +246,9 @@ async def test_method_create_transcription_session_with_all_params(
@pytest.mark.skip()
@parametrize
- async def test_raw_response_create_transcription_session(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_create_transcription_session(
+ self, async_client: AsyncServerlessInferenceSDKProd
+ ) -> None:
response = await async_client.realtime.with_raw_response.create_transcription_session()
assert response.is_closed is True
@@ -257,7 +259,7 @@ async def test_raw_response_create_transcription_session(self, async_client: Asy
@pytest.mark.skip()
@parametrize
async def test_streaming_response_create_transcription_session(
- self, async_client: AsyncDigitaloceanGenaiSDK
+ self, async_client: AsyncServerlessInferenceSDKProd
) -> None:
async with async_client.realtime.with_streaming_response.create_transcription_session() as response:
assert not response.is_closed
diff --git a/tests/api_resources/test_responses.py b/tests/api_resources/test_responses.py
index 4bd7e367..83384177 100644
--- a/tests/api_resources/test_responses.py
+++ b/tests/api_resources/test_responses.py
@@ -8,8 +8,8 @@
import pytest
from tests.utils import assert_matches_type
-from digitalocean_genai_sdk import DigitaloceanGenaiSDK, AsyncDigitaloceanGenaiSDK
-from digitalocean_genai_sdk.types import (
+from serverless_inference_sdk_prod import ServerlessInferenceSDKProd, AsyncServerlessInferenceSDKProd
+from serverless_inference_sdk_prod.types import (
Response,
ResponseListInputItemsResponse,
)
@@ -22,7 +22,7 @@ class TestResponses:
@pytest.mark.skip()
@parametrize
- def test_method_create(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_create(self, client: ServerlessInferenceSDKProd) -> None:
response = client.responses.create(
input="string",
model="gpt-4o",
@@ -31,7 +31,7 @@ def test_method_create(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_create_with_all_params(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_create_with_all_params(self, client: ServerlessInferenceSDKProd) -> None:
response = client.responses.create(
input="string",
model="gpt-4o",
@@ -74,7 +74,7 @@ def test_method_create_with_all_params(self, client: DigitaloceanGenaiSDK) -> No
@pytest.mark.skip()
@parametrize
- def test_raw_response_create(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_create(self, client: ServerlessInferenceSDKProd) -> None:
http_response = client.responses.with_raw_response.create(
input="string",
model="gpt-4o",
@@ -87,7 +87,7 @@ def test_raw_response_create(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_create(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_create(self, client: ServerlessInferenceSDKProd) -> None:
with client.responses.with_streaming_response.create(
input="string",
model="gpt-4o",
@@ -102,7 +102,7 @@ def test_streaming_response_create(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_retrieve(self, client: ServerlessInferenceSDKProd) -> None:
response = client.responses.retrieve(
response_id="resp_677efb5139a88190b512bc3fef8e535d",
)
@@ -110,7 +110,7 @@ def test_method_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_retrieve_with_all_params(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_retrieve_with_all_params(self, client: ServerlessInferenceSDKProd) -> None:
response = client.responses.retrieve(
response_id="resp_677efb5139a88190b512bc3fef8e535d",
include=["file_search_call.results"],
@@ -119,7 +119,7 @@ def test_method_retrieve_with_all_params(self, client: DigitaloceanGenaiSDK) ->
@pytest.mark.skip()
@parametrize
- def test_raw_response_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_retrieve(self, client: ServerlessInferenceSDKProd) -> None:
http_response = client.responses.with_raw_response.retrieve(
response_id="resp_677efb5139a88190b512bc3fef8e535d",
)
@@ -131,7 +131,7 @@ def test_raw_response_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_retrieve(self, client: ServerlessInferenceSDKProd) -> None:
with client.responses.with_streaming_response.retrieve(
response_id="resp_677efb5139a88190b512bc3fef8e535d",
) as http_response:
@@ -145,7 +145,7 @@ def test_streaming_response_retrieve(self, client: DigitaloceanGenaiSDK) -> None
@pytest.mark.skip()
@parametrize
- def test_path_params_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_path_params_retrieve(self, client: ServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `response_id` but received ''"):
client.responses.with_raw_response.retrieve(
response_id="",
@@ -153,7 +153,7 @@ def test_path_params_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_delete(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_delete(self, client: ServerlessInferenceSDKProd) -> None:
response = client.responses.delete(
"resp_677efb5139a88190b512bc3fef8e535d",
)
@@ -161,7 +161,7 @@ def test_method_delete(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_raw_response_delete(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_delete(self, client: ServerlessInferenceSDKProd) -> None:
http_response = client.responses.with_raw_response.delete(
"resp_677efb5139a88190b512bc3fef8e535d",
)
@@ -173,7 +173,7 @@ def test_raw_response_delete(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_delete(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_delete(self, client: ServerlessInferenceSDKProd) -> None:
with client.responses.with_streaming_response.delete(
"resp_677efb5139a88190b512bc3fef8e535d",
) as http_response:
@@ -187,7 +187,7 @@ def test_streaming_response_delete(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_path_params_delete(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_path_params_delete(self, client: ServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `response_id` but received ''"):
client.responses.with_raw_response.delete(
"",
@@ -195,7 +195,7 @@ def test_path_params_delete(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_list_input_items(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_list_input_items(self, client: ServerlessInferenceSDKProd) -> None:
response = client.responses.list_input_items(
response_id="response_id",
)
@@ -203,7 +203,7 @@ def test_method_list_input_items(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_list_input_items_with_all_params(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_list_input_items_with_all_params(self, client: ServerlessInferenceSDKProd) -> None:
response = client.responses.list_input_items(
response_id="response_id",
after="after",
@@ -215,7 +215,7 @@ def test_method_list_input_items_with_all_params(self, client: DigitaloceanGenai
@pytest.mark.skip()
@parametrize
- def test_raw_response_list_input_items(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_list_input_items(self, client: ServerlessInferenceSDKProd) -> None:
http_response = client.responses.with_raw_response.list_input_items(
response_id="response_id",
)
@@ -227,7 +227,7 @@ def test_raw_response_list_input_items(self, client: DigitaloceanGenaiSDK) -> No
@pytest.mark.skip()
@parametrize
- def test_streaming_response_list_input_items(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_list_input_items(self, client: ServerlessInferenceSDKProd) -> None:
with client.responses.with_streaming_response.list_input_items(
response_id="response_id",
) as http_response:
@@ -241,7 +241,7 @@ def test_streaming_response_list_input_items(self, client: DigitaloceanGenaiSDK)
@pytest.mark.skip()
@parametrize
- def test_path_params_list_input_items(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_path_params_list_input_items(self, client: ServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `response_id` but received ''"):
client.responses.with_raw_response.list_input_items(
response_id="",
@@ -253,7 +253,7 @@ class TestAsyncResponses:
@pytest.mark.skip()
@parametrize
- async def test_method_create(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_create(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.responses.create(
input="string",
model="gpt-4o",
@@ -262,7 +262,7 @@ async def test_method_create(self, async_client: AsyncDigitaloceanGenaiSDK) -> N
@pytest.mark.skip()
@parametrize
- async def test_method_create_with_all_params(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_create_with_all_params(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.responses.create(
input="string",
model="gpt-4o",
@@ -305,7 +305,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncDigitaloce
@pytest.mark.skip()
@parametrize
- async def test_raw_response_create(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_create(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
http_response = await async_client.responses.with_raw_response.create(
input="string",
model="gpt-4o",
@@ -318,7 +318,7 @@ async def test_raw_response_create(self, async_client: AsyncDigitaloceanGenaiSDK
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_create(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_create(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.responses.with_streaming_response.create(
input="string",
model="gpt-4o",
@@ -333,7 +333,7 @@ async def test_streaming_response_create(self, async_client: AsyncDigitaloceanGe
@pytest.mark.skip()
@parametrize
- async def test_method_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_retrieve(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.responses.retrieve(
response_id="resp_677efb5139a88190b512bc3fef8e535d",
)
@@ -341,7 +341,7 @@ async def test_method_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) ->
@pytest.mark.skip()
@parametrize
- async def test_method_retrieve_with_all_params(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_retrieve_with_all_params(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.responses.retrieve(
response_id="resp_677efb5139a88190b512bc3fef8e535d",
include=["file_search_call.results"],
@@ -350,7 +350,7 @@ async def test_method_retrieve_with_all_params(self, async_client: AsyncDigitalo
@pytest.mark.skip()
@parametrize
- async def test_raw_response_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_retrieve(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
http_response = await async_client.responses.with_raw_response.retrieve(
response_id="resp_677efb5139a88190b512bc3fef8e535d",
)
@@ -362,7 +362,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncDigitaloceanGenaiS
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_retrieve(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.responses.with_streaming_response.retrieve(
response_id="resp_677efb5139a88190b512bc3fef8e535d",
) as http_response:
@@ -376,7 +376,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncDigitalocean
@pytest.mark.skip()
@parametrize
- async def test_path_params_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_path_params_retrieve(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `response_id` but received ''"):
await async_client.responses.with_raw_response.retrieve(
response_id="",
@@ -384,7 +384,7 @@ async def test_path_params_retrieve(self, async_client: AsyncDigitaloceanGenaiSD
@pytest.mark.skip()
@parametrize
- async def test_method_delete(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_delete(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.responses.delete(
"resp_677efb5139a88190b512bc3fef8e535d",
)
@@ -392,7 +392,7 @@ async def test_method_delete(self, async_client: AsyncDigitaloceanGenaiSDK) -> N
@pytest.mark.skip()
@parametrize
- async def test_raw_response_delete(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_delete(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
http_response = await async_client.responses.with_raw_response.delete(
"resp_677efb5139a88190b512bc3fef8e535d",
)
@@ -404,7 +404,7 @@ async def test_raw_response_delete(self, async_client: AsyncDigitaloceanGenaiSDK
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_delete(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_delete(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.responses.with_streaming_response.delete(
"resp_677efb5139a88190b512bc3fef8e535d",
) as http_response:
@@ -418,7 +418,7 @@ async def test_streaming_response_delete(self, async_client: AsyncDigitaloceanGe
@pytest.mark.skip()
@parametrize
- async def test_path_params_delete(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_path_params_delete(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `response_id` but received ''"):
await async_client.responses.with_raw_response.delete(
"",
@@ -426,7 +426,7 @@ async def test_path_params_delete(self, async_client: AsyncDigitaloceanGenaiSDK)
@pytest.mark.skip()
@parametrize
- async def test_method_list_input_items(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_list_input_items(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.responses.list_input_items(
response_id="response_id",
)
@@ -434,7 +434,7 @@ async def test_method_list_input_items(self, async_client: AsyncDigitaloceanGena
@pytest.mark.skip()
@parametrize
- async def test_method_list_input_items_with_all_params(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_list_input_items_with_all_params(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.responses.list_input_items(
response_id="response_id",
after="after",
@@ -446,7 +446,7 @@ async def test_method_list_input_items_with_all_params(self, async_client: Async
@pytest.mark.skip()
@parametrize
- async def test_raw_response_list_input_items(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_list_input_items(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
http_response = await async_client.responses.with_raw_response.list_input_items(
response_id="response_id",
)
@@ -458,7 +458,7 @@ async def test_raw_response_list_input_items(self, async_client: AsyncDigitaloce
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_list_input_items(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_list_input_items(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.responses.with_streaming_response.list_input_items(
response_id="response_id",
) as http_response:
@@ -472,7 +472,7 @@ async def test_streaming_response_list_input_items(self, async_client: AsyncDigi
@pytest.mark.skip()
@parametrize
- async def test_path_params_list_input_items(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_path_params_list_input_items(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `response_id` but received ''"):
await async_client.responses.with_raw_response.list_input_items(
response_id="",
diff --git a/tests/api_resources/test_threads.py b/tests/api_resources/test_threads.py
index cca5e067..8a023c4e 100644
--- a/tests/api_resources/test_threads.py
+++ b/tests/api_resources/test_threads.py
@@ -8,8 +8,11 @@
import pytest
from tests.utils import assert_matches_type
-from digitalocean_genai_sdk import DigitaloceanGenaiSDK, AsyncDigitaloceanGenaiSDK
-from digitalocean_genai_sdk.types import ThreadObject, ThreadDeleteResponse
+from serverless_inference_sdk_prod import ServerlessInferenceSDKProd, AsyncServerlessInferenceSDKProd
+from serverless_inference_sdk_prod.types import (
+ ThreadObject,
+ ThreadDeleteResponse,
+)
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -19,13 +22,13 @@ class TestThreads:
@pytest.mark.skip()
@parametrize
- def test_method_create(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_create(self, client: ServerlessInferenceSDKProd) -> None:
thread = client.threads.create()
assert_matches_type(ThreadObject, thread, path=["response"])
@pytest.mark.skip()
@parametrize
- def test_method_create_with_all_params(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_create_with_all_params(self, client: ServerlessInferenceSDKProd) -> None:
thread = client.threads.create(
messages=[
{
@@ -59,7 +62,7 @@ def test_method_create_with_all_params(self, client: DigitaloceanGenaiSDK) -> No
@pytest.mark.skip()
@parametrize
- def test_raw_response_create(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_create(self, client: ServerlessInferenceSDKProd) -> None:
response = client.threads.with_raw_response.create()
assert response.is_closed is True
@@ -69,7 +72,7 @@ def test_raw_response_create(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_create(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_create(self, client: ServerlessInferenceSDKProd) -> None:
with client.threads.with_streaming_response.create() as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -81,7 +84,7 @@ def test_streaming_response_create(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_retrieve(self, client: ServerlessInferenceSDKProd) -> None:
thread = client.threads.retrieve(
"thread_id",
)
@@ -89,7 +92,7 @@ def test_method_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_raw_response_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_retrieve(self, client: ServerlessInferenceSDKProd) -> None:
response = client.threads.with_raw_response.retrieve(
"thread_id",
)
@@ -101,7 +104,7 @@ def test_raw_response_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_retrieve(self, client: ServerlessInferenceSDKProd) -> None:
with client.threads.with_streaming_response.retrieve(
"thread_id",
) as response:
@@ -115,7 +118,7 @@ def test_streaming_response_retrieve(self, client: DigitaloceanGenaiSDK) -> None
@pytest.mark.skip()
@parametrize
- def test_path_params_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_path_params_retrieve(self, client: ServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `thread_id` but received ''"):
client.threads.with_raw_response.retrieve(
"",
@@ -123,7 +126,7 @@ def test_path_params_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_update(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_update(self, client: ServerlessInferenceSDKProd) -> None:
thread = client.threads.update(
thread_id="thread_id",
)
@@ -131,7 +134,7 @@ def test_method_update(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_update_with_all_params(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_update_with_all_params(self, client: ServerlessInferenceSDKProd) -> None:
thread = client.threads.update(
thread_id="thread_id",
metadata={"foo": "string"},
@@ -144,7 +147,7 @@ def test_method_update_with_all_params(self, client: DigitaloceanGenaiSDK) -> No
@pytest.mark.skip()
@parametrize
- def test_raw_response_update(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_update(self, client: ServerlessInferenceSDKProd) -> None:
response = client.threads.with_raw_response.update(
thread_id="thread_id",
)
@@ -156,7 +159,7 @@ def test_raw_response_update(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_update(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_update(self, client: ServerlessInferenceSDKProd) -> None:
with client.threads.with_streaming_response.update(
thread_id="thread_id",
) as response:
@@ -170,7 +173,7 @@ def test_streaming_response_update(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_path_params_update(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_path_params_update(self, client: ServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `thread_id` but received ''"):
client.threads.with_raw_response.update(
thread_id="",
@@ -178,7 +181,7 @@ def test_path_params_update(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_delete(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_delete(self, client: ServerlessInferenceSDKProd) -> None:
thread = client.threads.delete(
"thread_id",
)
@@ -186,7 +189,7 @@ def test_method_delete(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_raw_response_delete(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_delete(self, client: ServerlessInferenceSDKProd) -> None:
response = client.threads.with_raw_response.delete(
"thread_id",
)
@@ -198,7 +201,7 @@ def test_raw_response_delete(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_delete(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_delete(self, client: ServerlessInferenceSDKProd) -> None:
with client.threads.with_streaming_response.delete(
"thread_id",
) as response:
@@ -212,7 +215,7 @@ def test_streaming_response_delete(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_path_params_delete(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_path_params_delete(self, client: ServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `thread_id` but received ''"):
client.threads.with_raw_response.delete(
"",
@@ -224,13 +227,13 @@ class TestAsyncThreads:
@pytest.mark.skip()
@parametrize
- async def test_method_create(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_create(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
thread = await async_client.threads.create()
assert_matches_type(ThreadObject, thread, path=["response"])
@pytest.mark.skip()
@parametrize
- async def test_method_create_with_all_params(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_create_with_all_params(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
thread = await async_client.threads.create(
messages=[
{
@@ -264,7 +267,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncDigitaloce
@pytest.mark.skip()
@parametrize
- async def test_raw_response_create(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_create(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.threads.with_raw_response.create()
assert response.is_closed is True
@@ -274,7 +277,7 @@ async def test_raw_response_create(self, async_client: AsyncDigitaloceanGenaiSDK
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_create(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_create(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.threads.with_streaming_response.create() as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -286,7 +289,7 @@ async def test_streaming_response_create(self, async_client: AsyncDigitaloceanGe
@pytest.mark.skip()
@parametrize
- async def test_method_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_retrieve(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
thread = await async_client.threads.retrieve(
"thread_id",
)
@@ -294,7 +297,7 @@ async def test_method_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) ->
@pytest.mark.skip()
@parametrize
- async def test_raw_response_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_retrieve(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.threads.with_raw_response.retrieve(
"thread_id",
)
@@ -306,7 +309,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncDigitaloceanGenaiS
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_retrieve(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.threads.with_streaming_response.retrieve(
"thread_id",
) as response:
@@ -320,7 +323,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncDigitalocean
@pytest.mark.skip()
@parametrize
- async def test_path_params_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_path_params_retrieve(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `thread_id` but received ''"):
await async_client.threads.with_raw_response.retrieve(
"",
@@ -328,7 +331,7 @@ async def test_path_params_retrieve(self, async_client: AsyncDigitaloceanGenaiSD
@pytest.mark.skip()
@parametrize
- async def test_method_update(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_update(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
thread = await async_client.threads.update(
thread_id="thread_id",
)
@@ -336,7 +339,7 @@ async def test_method_update(self, async_client: AsyncDigitaloceanGenaiSDK) -> N
@pytest.mark.skip()
@parametrize
- async def test_method_update_with_all_params(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_update_with_all_params(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
thread = await async_client.threads.update(
thread_id="thread_id",
metadata={"foo": "string"},
@@ -349,7 +352,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncDigitaloce
@pytest.mark.skip()
@parametrize
- async def test_raw_response_update(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_update(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.threads.with_raw_response.update(
thread_id="thread_id",
)
@@ -361,7 +364,7 @@ async def test_raw_response_update(self, async_client: AsyncDigitaloceanGenaiSDK
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_update(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_update(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.threads.with_streaming_response.update(
thread_id="thread_id",
) as response:
@@ -375,7 +378,7 @@ async def test_streaming_response_update(self, async_client: AsyncDigitaloceanGe
@pytest.mark.skip()
@parametrize
- async def test_path_params_update(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_path_params_update(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `thread_id` but received ''"):
await async_client.threads.with_raw_response.update(
thread_id="",
@@ -383,7 +386,7 @@ async def test_path_params_update(self, async_client: AsyncDigitaloceanGenaiSDK)
@pytest.mark.skip()
@parametrize
- async def test_method_delete(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_delete(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
thread = await async_client.threads.delete(
"thread_id",
)
@@ -391,7 +394,7 @@ async def test_method_delete(self, async_client: AsyncDigitaloceanGenaiSDK) -> N
@pytest.mark.skip()
@parametrize
- async def test_raw_response_delete(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_delete(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.threads.with_raw_response.delete(
"thread_id",
)
@@ -403,7 +406,7 @@ async def test_raw_response_delete(self, async_client: AsyncDigitaloceanGenaiSDK
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_delete(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_delete(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.threads.with_streaming_response.delete(
"thread_id",
) as response:
@@ -417,7 +420,7 @@ async def test_streaming_response_delete(self, async_client: AsyncDigitaloceanGe
@pytest.mark.skip()
@parametrize
- async def test_path_params_delete(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_path_params_delete(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `thread_id` but received ''"):
await async_client.threads.with_raw_response.delete(
"",
diff --git a/tests/api_resources/test_uploads.py b/tests/api_resources/test_uploads.py
index 35f52730..23756daa 100644
--- a/tests/api_resources/test_uploads.py
+++ b/tests/api_resources/test_uploads.py
@@ -8,8 +8,8 @@
import pytest
from tests.utils import assert_matches_type
-from digitalocean_genai_sdk import DigitaloceanGenaiSDK, AsyncDigitaloceanGenaiSDK
-from digitalocean_genai_sdk.types import (
+from serverless_inference_sdk_prod import ServerlessInferenceSDKProd, AsyncServerlessInferenceSDKProd
+from serverless_inference_sdk_prod.types import (
Upload,
UploadAddPartResponse,
)
@@ -22,7 +22,7 @@ class TestUploads:
@pytest.mark.skip()
@parametrize
- def test_method_create(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_create(self, client: ServerlessInferenceSDKProd) -> None:
upload = client.uploads.create(
bytes=0,
filename="filename",
@@ -33,7 +33,7 @@ def test_method_create(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_raw_response_create(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_create(self, client: ServerlessInferenceSDKProd) -> None:
response = client.uploads.with_raw_response.create(
bytes=0,
filename="filename",
@@ -48,7 +48,7 @@ def test_raw_response_create(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_create(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_create(self, client: ServerlessInferenceSDKProd) -> None:
with client.uploads.with_streaming_response.create(
bytes=0,
filename="filename",
@@ -65,7 +65,7 @@ def test_streaming_response_create(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_add_part(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_add_part(self, client: ServerlessInferenceSDKProd) -> None:
upload = client.uploads.add_part(
upload_id="upload_abc123",
data=b"raw file contents",
@@ -74,7 +74,7 @@ def test_method_add_part(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_raw_response_add_part(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_add_part(self, client: ServerlessInferenceSDKProd) -> None:
response = client.uploads.with_raw_response.add_part(
upload_id="upload_abc123",
data=b"raw file contents",
@@ -87,7 +87,7 @@ def test_raw_response_add_part(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_add_part(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_add_part(self, client: ServerlessInferenceSDKProd) -> None:
with client.uploads.with_streaming_response.add_part(
upload_id="upload_abc123",
data=b"raw file contents",
@@ -102,7 +102,7 @@ def test_streaming_response_add_part(self, client: DigitaloceanGenaiSDK) -> None
@pytest.mark.skip()
@parametrize
- def test_path_params_add_part(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_path_params_add_part(self, client: ServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `upload_id` but received ''"):
client.uploads.with_raw_response.add_part(
upload_id="",
@@ -111,7 +111,7 @@ def test_path_params_add_part(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_cancel(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_cancel(self, client: ServerlessInferenceSDKProd) -> None:
upload = client.uploads.cancel(
"upload_abc123",
)
@@ -119,7 +119,7 @@ def test_method_cancel(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_raw_response_cancel(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_cancel(self, client: ServerlessInferenceSDKProd) -> None:
response = client.uploads.with_raw_response.cancel(
"upload_abc123",
)
@@ -131,7 +131,7 @@ def test_raw_response_cancel(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_cancel(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_cancel(self, client: ServerlessInferenceSDKProd) -> None:
with client.uploads.with_streaming_response.cancel(
"upload_abc123",
) as response:
@@ -145,7 +145,7 @@ def test_streaming_response_cancel(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_path_params_cancel(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_path_params_cancel(self, client: ServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `upload_id` but received ''"):
client.uploads.with_raw_response.cancel(
"",
@@ -153,7 +153,7 @@ def test_path_params_cancel(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_complete(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_complete(self, client: ServerlessInferenceSDKProd) -> None:
upload = client.uploads.complete(
upload_id="upload_abc123",
part_ids=["string"],
@@ -162,7 +162,7 @@ def test_method_complete(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_complete_with_all_params(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_complete_with_all_params(self, client: ServerlessInferenceSDKProd) -> None:
upload = client.uploads.complete(
upload_id="upload_abc123",
part_ids=["string"],
@@ -172,7 +172,7 @@ def test_method_complete_with_all_params(self, client: DigitaloceanGenaiSDK) ->
@pytest.mark.skip()
@parametrize
- def test_raw_response_complete(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_complete(self, client: ServerlessInferenceSDKProd) -> None:
response = client.uploads.with_raw_response.complete(
upload_id="upload_abc123",
part_ids=["string"],
@@ -185,7 +185,7 @@ def test_raw_response_complete(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_complete(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_complete(self, client: ServerlessInferenceSDKProd) -> None:
with client.uploads.with_streaming_response.complete(
upload_id="upload_abc123",
part_ids=["string"],
@@ -200,7 +200,7 @@ def test_streaming_response_complete(self, client: DigitaloceanGenaiSDK) -> None
@pytest.mark.skip()
@parametrize
- def test_path_params_complete(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_path_params_complete(self, client: ServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `upload_id` but received ''"):
client.uploads.with_raw_response.complete(
upload_id="",
@@ -213,7 +213,7 @@ class TestAsyncUploads:
@pytest.mark.skip()
@parametrize
- async def test_method_create(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_create(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
upload = await async_client.uploads.create(
bytes=0,
filename="filename",
@@ -224,7 +224,7 @@ async def test_method_create(self, async_client: AsyncDigitaloceanGenaiSDK) -> N
@pytest.mark.skip()
@parametrize
- async def test_raw_response_create(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_create(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.uploads.with_raw_response.create(
bytes=0,
filename="filename",
@@ -239,7 +239,7 @@ async def test_raw_response_create(self, async_client: AsyncDigitaloceanGenaiSDK
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_create(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_create(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.uploads.with_streaming_response.create(
bytes=0,
filename="filename",
@@ -256,7 +256,7 @@ async def test_streaming_response_create(self, async_client: AsyncDigitaloceanGe
@pytest.mark.skip()
@parametrize
- async def test_method_add_part(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_add_part(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
upload = await async_client.uploads.add_part(
upload_id="upload_abc123",
data=b"raw file contents",
@@ -265,7 +265,7 @@ async def test_method_add_part(self, async_client: AsyncDigitaloceanGenaiSDK) ->
@pytest.mark.skip()
@parametrize
- async def test_raw_response_add_part(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_add_part(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.uploads.with_raw_response.add_part(
upload_id="upload_abc123",
data=b"raw file contents",
@@ -278,7 +278,7 @@ async def test_raw_response_add_part(self, async_client: AsyncDigitaloceanGenaiS
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_add_part(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_add_part(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.uploads.with_streaming_response.add_part(
upload_id="upload_abc123",
data=b"raw file contents",
@@ -293,7 +293,7 @@ async def test_streaming_response_add_part(self, async_client: AsyncDigitalocean
@pytest.mark.skip()
@parametrize
- async def test_path_params_add_part(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_path_params_add_part(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `upload_id` but received ''"):
await async_client.uploads.with_raw_response.add_part(
upload_id="",
@@ -302,7 +302,7 @@ async def test_path_params_add_part(self, async_client: AsyncDigitaloceanGenaiSD
@pytest.mark.skip()
@parametrize
- async def test_method_cancel(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_cancel(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
upload = await async_client.uploads.cancel(
"upload_abc123",
)
@@ -310,7 +310,7 @@ async def test_method_cancel(self, async_client: AsyncDigitaloceanGenaiSDK) -> N
@pytest.mark.skip()
@parametrize
- async def test_raw_response_cancel(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_cancel(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.uploads.with_raw_response.cancel(
"upload_abc123",
)
@@ -322,7 +322,7 @@ async def test_raw_response_cancel(self, async_client: AsyncDigitaloceanGenaiSDK
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_cancel(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_cancel(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.uploads.with_streaming_response.cancel(
"upload_abc123",
) as response:
@@ -336,7 +336,7 @@ async def test_streaming_response_cancel(self, async_client: AsyncDigitaloceanGe
@pytest.mark.skip()
@parametrize
- async def test_path_params_cancel(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_path_params_cancel(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `upload_id` but received ''"):
await async_client.uploads.with_raw_response.cancel(
"",
@@ -344,7 +344,7 @@ async def test_path_params_cancel(self, async_client: AsyncDigitaloceanGenaiSDK)
@pytest.mark.skip()
@parametrize
- async def test_method_complete(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_complete(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
upload = await async_client.uploads.complete(
upload_id="upload_abc123",
part_ids=["string"],
@@ -353,7 +353,7 @@ async def test_method_complete(self, async_client: AsyncDigitaloceanGenaiSDK) ->
@pytest.mark.skip()
@parametrize
- async def test_method_complete_with_all_params(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_complete_with_all_params(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
upload = await async_client.uploads.complete(
upload_id="upload_abc123",
part_ids=["string"],
@@ -363,7 +363,7 @@ async def test_method_complete_with_all_params(self, async_client: AsyncDigitalo
@pytest.mark.skip()
@parametrize
- async def test_raw_response_complete(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_complete(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.uploads.with_raw_response.complete(
upload_id="upload_abc123",
part_ids=["string"],
@@ -376,7 +376,7 @@ async def test_raw_response_complete(self, async_client: AsyncDigitaloceanGenaiS
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_complete(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_complete(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.uploads.with_streaming_response.complete(
upload_id="upload_abc123",
part_ids=["string"],
@@ -391,7 +391,7 @@ async def test_streaming_response_complete(self, async_client: AsyncDigitalocean
@pytest.mark.skip()
@parametrize
- async def test_path_params_complete(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_path_params_complete(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `upload_id` but received ''"):
await async_client.uploads.with_raw_response.complete(
upload_id="",
diff --git a/tests/api_resources/test_vector_stores.py b/tests/api_resources/test_vector_stores.py
index 1c8b5fb0..e55e44bf 100644
--- a/tests/api_resources/test_vector_stores.py
+++ b/tests/api_resources/test_vector_stores.py
@@ -8,8 +8,8 @@
import pytest
from tests.utils import assert_matches_type
-from digitalocean_genai_sdk import DigitaloceanGenaiSDK, AsyncDigitaloceanGenaiSDK
-from digitalocean_genai_sdk.types import (
+from serverless_inference_sdk_prod import ServerlessInferenceSDKProd, AsyncServerlessInferenceSDKProd
+from serverless_inference_sdk_prod.types import (
VectorStoreObject,
VectorStoreListResponse,
VectorStoreDeleteResponse,
@@ -24,13 +24,13 @@ class TestVectorStores:
@pytest.mark.skip()
@parametrize
- def test_method_create(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_create(self, client: ServerlessInferenceSDKProd) -> None:
vector_store = client.vector_stores.create()
assert_matches_type(VectorStoreObject, vector_store, path=["response"])
@pytest.mark.skip()
@parametrize
- def test_method_create_with_all_params(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_create_with_all_params(self, client: ServerlessInferenceSDKProd) -> None:
vector_store = client.vector_stores.create(
chunking_strategy={"type": "auto"},
expires_after={
@@ -45,7 +45,7 @@ def test_method_create_with_all_params(self, client: DigitaloceanGenaiSDK) -> No
@pytest.mark.skip()
@parametrize
- def test_raw_response_create(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_create(self, client: ServerlessInferenceSDKProd) -> None:
response = client.vector_stores.with_raw_response.create()
assert response.is_closed is True
@@ -55,7 +55,7 @@ def test_raw_response_create(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_create(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_create(self, client: ServerlessInferenceSDKProd) -> None:
with client.vector_stores.with_streaming_response.create() as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -67,7 +67,7 @@ def test_streaming_response_create(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_retrieve(self, client: ServerlessInferenceSDKProd) -> None:
vector_store = client.vector_stores.retrieve(
"vector_store_id",
)
@@ -75,7 +75,7 @@ def test_method_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_raw_response_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_retrieve(self, client: ServerlessInferenceSDKProd) -> None:
response = client.vector_stores.with_raw_response.retrieve(
"vector_store_id",
)
@@ -87,7 +87,7 @@ def test_raw_response_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_retrieve(self, client: ServerlessInferenceSDKProd) -> None:
with client.vector_stores.with_streaming_response.retrieve(
"vector_store_id",
) as response:
@@ -101,7 +101,7 @@ def test_streaming_response_retrieve(self, client: DigitaloceanGenaiSDK) -> None
@pytest.mark.skip()
@parametrize
- def test_path_params_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_path_params_retrieve(self, client: ServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `vector_store_id` but received ''"):
client.vector_stores.with_raw_response.retrieve(
"",
@@ -109,7 +109,7 @@ def test_path_params_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_update(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_update(self, client: ServerlessInferenceSDKProd) -> None:
vector_store = client.vector_stores.update(
vector_store_id="vector_store_id",
)
@@ -117,7 +117,7 @@ def test_method_update(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_update_with_all_params(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_update_with_all_params(self, client: ServerlessInferenceSDKProd) -> None:
vector_store = client.vector_stores.update(
vector_store_id="vector_store_id",
expires_after={
@@ -131,7 +131,7 @@ def test_method_update_with_all_params(self, client: DigitaloceanGenaiSDK) -> No
@pytest.mark.skip()
@parametrize
- def test_raw_response_update(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_update(self, client: ServerlessInferenceSDKProd) -> None:
response = client.vector_stores.with_raw_response.update(
vector_store_id="vector_store_id",
)
@@ -143,7 +143,7 @@ def test_raw_response_update(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_update(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_update(self, client: ServerlessInferenceSDKProd) -> None:
with client.vector_stores.with_streaming_response.update(
vector_store_id="vector_store_id",
) as response:
@@ -157,7 +157,7 @@ def test_streaming_response_update(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_path_params_update(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_path_params_update(self, client: ServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `vector_store_id` but received ''"):
client.vector_stores.with_raw_response.update(
vector_store_id="",
@@ -165,13 +165,13 @@ def test_path_params_update(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_list(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_list(self, client: ServerlessInferenceSDKProd) -> None:
vector_store = client.vector_stores.list()
assert_matches_type(VectorStoreListResponse, vector_store, path=["response"])
@pytest.mark.skip()
@parametrize
- def test_method_list_with_all_params(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_list_with_all_params(self, client: ServerlessInferenceSDKProd) -> None:
vector_store = client.vector_stores.list(
after="after",
before="before",
@@ -182,7 +182,7 @@ def test_method_list_with_all_params(self, client: DigitaloceanGenaiSDK) -> None
@pytest.mark.skip()
@parametrize
- def test_raw_response_list(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_list(self, client: ServerlessInferenceSDKProd) -> None:
response = client.vector_stores.with_raw_response.list()
assert response.is_closed is True
@@ -192,7 +192,7 @@ def test_raw_response_list(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_list(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_list(self, client: ServerlessInferenceSDKProd) -> None:
with client.vector_stores.with_streaming_response.list() as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -204,7 +204,7 @@ def test_streaming_response_list(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_delete(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_delete(self, client: ServerlessInferenceSDKProd) -> None:
vector_store = client.vector_stores.delete(
"vector_store_id",
)
@@ -212,7 +212,7 @@ def test_method_delete(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_raw_response_delete(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_delete(self, client: ServerlessInferenceSDKProd) -> None:
response = client.vector_stores.with_raw_response.delete(
"vector_store_id",
)
@@ -224,7 +224,7 @@ def test_raw_response_delete(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_delete(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_delete(self, client: ServerlessInferenceSDKProd) -> None:
with client.vector_stores.with_streaming_response.delete(
"vector_store_id",
) as response:
@@ -238,7 +238,7 @@ def test_streaming_response_delete(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_path_params_delete(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_path_params_delete(self, client: ServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `vector_store_id` but received ''"):
client.vector_stores.with_raw_response.delete(
"",
@@ -246,7 +246,7 @@ def test_path_params_delete(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_search(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_search(self, client: ServerlessInferenceSDKProd) -> None:
vector_store = client.vector_stores.search(
vector_store_id="vs_abc123",
query="string",
@@ -255,7 +255,7 @@ def test_method_search(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_search_with_all_params(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_search_with_all_params(self, client: ServerlessInferenceSDKProd) -> None:
vector_store = client.vector_stores.search(
vector_store_id="vs_abc123",
query="string",
@@ -275,7 +275,7 @@ def test_method_search_with_all_params(self, client: DigitaloceanGenaiSDK) -> No
@pytest.mark.skip()
@parametrize
- def test_raw_response_search(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_search(self, client: ServerlessInferenceSDKProd) -> None:
response = client.vector_stores.with_raw_response.search(
vector_store_id="vs_abc123",
query="string",
@@ -288,7 +288,7 @@ def test_raw_response_search(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_search(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_search(self, client: ServerlessInferenceSDKProd) -> None:
with client.vector_stores.with_streaming_response.search(
vector_store_id="vs_abc123",
query="string",
@@ -303,7 +303,7 @@ def test_streaming_response_search(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_path_params_search(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_path_params_search(self, client: ServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `vector_store_id` but received ''"):
client.vector_stores.with_raw_response.search(
vector_store_id="",
@@ -316,13 +316,13 @@ class TestAsyncVectorStores:
@pytest.mark.skip()
@parametrize
- async def test_method_create(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_create(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
vector_store = await async_client.vector_stores.create()
assert_matches_type(VectorStoreObject, vector_store, path=["response"])
@pytest.mark.skip()
@parametrize
- async def test_method_create_with_all_params(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_create_with_all_params(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
vector_store = await async_client.vector_stores.create(
chunking_strategy={"type": "auto"},
expires_after={
@@ -337,7 +337,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncDigitaloce
@pytest.mark.skip()
@parametrize
- async def test_raw_response_create(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_create(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.vector_stores.with_raw_response.create()
assert response.is_closed is True
@@ -347,7 +347,7 @@ async def test_raw_response_create(self, async_client: AsyncDigitaloceanGenaiSDK
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_create(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_create(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.vector_stores.with_streaming_response.create() as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -359,7 +359,7 @@ async def test_streaming_response_create(self, async_client: AsyncDigitaloceanGe
@pytest.mark.skip()
@parametrize
- async def test_method_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_retrieve(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
vector_store = await async_client.vector_stores.retrieve(
"vector_store_id",
)
@@ -367,7 +367,7 @@ async def test_method_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) ->
@pytest.mark.skip()
@parametrize
- async def test_raw_response_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_retrieve(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.vector_stores.with_raw_response.retrieve(
"vector_store_id",
)
@@ -379,7 +379,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncDigitaloceanGenaiS
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_retrieve(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.vector_stores.with_streaming_response.retrieve(
"vector_store_id",
) as response:
@@ -393,7 +393,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncDigitalocean
@pytest.mark.skip()
@parametrize
- async def test_path_params_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_path_params_retrieve(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `vector_store_id` but received ''"):
await async_client.vector_stores.with_raw_response.retrieve(
"",
@@ -401,7 +401,7 @@ async def test_path_params_retrieve(self, async_client: AsyncDigitaloceanGenaiSD
@pytest.mark.skip()
@parametrize
- async def test_method_update(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_update(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
vector_store = await async_client.vector_stores.update(
vector_store_id="vector_store_id",
)
@@ -409,7 +409,7 @@ async def test_method_update(self, async_client: AsyncDigitaloceanGenaiSDK) -> N
@pytest.mark.skip()
@parametrize
- async def test_method_update_with_all_params(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_update_with_all_params(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
vector_store = await async_client.vector_stores.update(
vector_store_id="vector_store_id",
expires_after={
@@ -423,7 +423,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncDigitaloce
@pytest.mark.skip()
@parametrize
- async def test_raw_response_update(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_update(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.vector_stores.with_raw_response.update(
vector_store_id="vector_store_id",
)
@@ -435,7 +435,7 @@ async def test_raw_response_update(self, async_client: AsyncDigitaloceanGenaiSDK
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_update(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_update(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.vector_stores.with_streaming_response.update(
vector_store_id="vector_store_id",
) as response:
@@ -449,7 +449,7 @@ async def test_streaming_response_update(self, async_client: AsyncDigitaloceanGe
@pytest.mark.skip()
@parametrize
- async def test_path_params_update(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_path_params_update(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `vector_store_id` but received ''"):
await async_client.vector_stores.with_raw_response.update(
vector_store_id="",
@@ -457,13 +457,13 @@ async def test_path_params_update(self, async_client: AsyncDigitaloceanGenaiSDK)
@pytest.mark.skip()
@parametrize
- async def test_method_list(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_list(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
vector_store = await async_client.vector_stores.list()
assert_matches_type(VectorStoreListResponse, vector_store, path=["response"])
@pytest.mark.skip()
@parametrize
- async def test_method_list_with_all_params(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_list_with_all_params(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
vector_store = await async_client.vector_stores.list(
after="after",
before="before",
@@ -474,7 +474,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncDigitalocean
@pytest.mark.skip()
@parametrize
- async def test_raw_response_list(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_list(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.vector_stores.with_raw_response.list()
assert response.is_closed is True
@@ -484,7 +484,7 @@ async def test_raw_response_list(self, async_client: AsyncDigitaloceanGenaiSDK)
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_list(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_list(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.vector_stores.with_streaming_response.list() as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -496,7 +496,7 @@ async def test_streaming_response_list(self, async_client: AsyncDigitaloceanGena
@pytest.mark.skip()
@parametrize
- async def test_method_delete(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_delete(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
vector_store = await async_client.vector_stores.delete(
"vector_store_id",
)
@@ -504,7 +504,7 @@ async def test_method_delete(self, async_client: AsyncDigitaloceanGenaiSDK) -> N
@pytest.mark.skip()
@parametrize
- async def test_raw_response_delete(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_delete(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.vector_stores.with_raw_response.delete(
"vector_store_id",
)
@@ -516,7 +516,7 @@ async def test_raw_response_delete(self, async_client: AsyncDigitaloceanGenaiSDK
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_delete(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_delete(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.vector_stores.with_streaming_response.delete(
"vector_store_id",
) as response:
@@ -530,7 +530,7 @@ async def test_streaming_response_delete(self, async_client: AsyncDigitaloceanGe
@pytest.mark.skip()
@parametrize
- async def test_path_params_delete(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_path_params_delete(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `vector_store_id` but received ''"):
await async_client.vector_stores.with_raw_response.delete(
"",
@@ -538,7 +538,7 @@ async def test_path_params_delete(self, async_client: AsyncDigitaloceanGenaiSDK)
@pytest.mark.skip()
@parametrize
- async def test_method_search(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_search(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
vector_store = await async_client.vector_stores.search(
vector_store_id="vs_abc123",
query="string",
@@ -547,7 +547,7 @@ async def test_method_search(self, async_client: AsyncDigitaloceanGenaiSDK) -> N
@pytest.mark.skip()
@parametrize
- async def test_method_search_with_all_params(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_search_with_all_params(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
vector_store = await async_client.vector_stores.search(
vector_store_id="vs_abc123",
query="string",
@@ -567,7 +567,7 @@ async def test_method_search_with_all_params(self, async_client: AsyncDigitaloce
@pytest.mark.skip()
@parametrize
- async def test_raw_response_search(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_search(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.vector_stores.with_raw_response.search(
vector_store_id="vs_abc123",
query="string",
@@ -580,7 +580,7 @@ async def test_raw_response_search(self, async_client: AsyncDigitaloceanGenaiSDK
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_search(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_search(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.vector_stores.with_streaming_response.search(
vector_store_id="vs_abc123",
query="string",
@@ -595,7 +595,7 @@ async def test_streaming_response_search(self, async_client: AsyncDigitaloceanGe
@pytest.mark.skip()
@parametrize
- async def test_path_params_search(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_path_params_search(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `vector_store_id` but received ''"):
await async_client.vector_stores.with_raw_response.search(
vector_store_id="",
diff --git a/tests/api_resources/threads/runs/test_steps.py b/tests/api_resources/threads/runs/test_steps.py
index e972e952..47c68d51 100644
--- a/tests/api_resources/threads/runs/test_steps.py
+++ b/tests/api_resources/threads/runs/test_steps.py
@@ -8,8 +8,8 @@
import pytest
from tests.utils import assert_matches_type
-from digitalocean_genai_sdk import DigitaloceanGenaiSDK, AsyncDigitaloceanGenaiSDK
-from digitalocean_genai_sdk.types.threads.runs import (
+from serverless_inference_sdk_prod import ServerlessInferenceSDKProd, AsyncServerlessInferenceSDKProd
+from serverless_inference_sdk_prod.types.threads.runs import (
RunStepObject,
StepListResponse,
)
@@ -22,7 +22,7 @@ class TestSteps:
@pytest.mark.skip()
@parametrize
- def test_method_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_retrieve(self, client: ServerlessInferenceSDKProd) -> None:
step = client.threads.runs.steps.retrieve(
step_id="step_id",
thread_id="thread_id",
@@ -32,7 +32,7 @@ def test_method_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_retrieve_with_all_params(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_retrieve_with_all_params(self, client: ServerlessInferenceSDKProd) -> None:
step = client.threads.runs.steps.retrieve(
step_id="step_id",
thread_id="thread_id",
@@ -43,7 +43,7 @@ def test_method_retrieve_with_all_params(self, client: DigitaloceanGenaiSDK) ->
@pytest.mark.skip()
@parametrize
- def test_raw_response_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_retrieve(self, client: ServerlessInferenceSDKProd) -> None:
response = client.threads.runs.steps.with_raw_response.retrieve(
step_id="step_id",
thread_id="thread_id",
@@ -57,7 +57,7 @@ def test_raw_response_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_retrieve(self, client: ServerlessInferenceSDKProd) -> None:
with client.threads.runs.steps.with_streaming_response.retrieve(
step_id="step_id",
thread_id="thread_id",
@@ -73,7 +73,7 @@ def test_streaming_response_retrieve(self, client: DigitaloceanGenaiSDK) -> None
@pytest.mark.skip()
@parametrize
- def test_path_params_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_path_params_retrieve(self, client: ServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `thread_id` but received ''"):
client.threads.runs.steps.with_raw_response.retrieve(
step_id="step_id",
@@ -97,7 +97,7 @@ def test_path_params_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_list(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_list(self, client: ServerlessInferenceSDKProd) -> None:
step = client.threads.runs.steps.list(
run_id="run_id",
thread_id="thread_id",
@@ -106,7 +106,7 @@ def test_method_list(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_list_with_all_params(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_list_with_all_params(self, client: ServerlessInferenceSDKProd) -> None:
step = client.threads.runs.steps.list(
run_id="run_id",
thread_id="thread_id",
@@ -120,7 +120,7 @@ def test_method_list_with_all_params(self, client: DigitaloceanGenaiSDK) -> None
@pytest.mark.skip()
@parametrize
- def test_raw_response_list(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_list(self, client: ServerlessInferenceSDKProd) -> None:
response = client.threads.runs.steps.with_raw_response.list(
run_id="run_id",
thread_id="thread_id",
@@ -133,7 +133,7 @@ def test_raw_response_list(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_list(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_list(self, client: ServerlessInferenceSDKProd) -> None:
with client.threads.runs.steps.with_streaming_response.list(
run_id="run_id",
thread_id="thread_id",
@@ -148,7 +148,7 @@ def test_streaming_response_list(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_path_params_list(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_path_params_list(self, client: ServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `thread_id` but received ''"):
client.threads.runs.steps.with_raw_response.list(
run_id="run_id",
@@ -167,7 +167,7 @@ class TestAsyncSteps:
@pytest.mark.skip()
@parametrize
- async def test_method_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_retrieve(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
step = await async_client.threads.runs.steps.retrieve(
step_id="step_id",
thread_id="thread_id",
@@ -177,7 +177,7 @@ async def test_method_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) ->
@pytest.mark.skip()
@parametrize
- async def test_method_retrieve_with_all_params(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_retrieve_with_all_params(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
step = await async_client.threads.runs.steps.retrieve(
step_id="step_id",
thread_id="thread_id",
@@ -188,7 +188,7 @@ async def test_method_retrieve_with_all_params(self, async_client: AsyncDigitalo
@pytest.mark.skip()
@parametrize
- async def test_raw_response_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_retrieve(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.threads.runs.steps.with_raw_response.retrieve(
step_id="step_id",
thread_id="thread_id",
@@ -202,7 +202,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncDigitaloceanGenaiS
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_retrieve(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.threads.runs.steps.with_streaming_response.retrieve(
step_id="step_id",
thread_id="thread_id",
@@ -218,7 +218,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncDigitalocean
@pytest.mark.skip()
@parametrize
- async def test_path_params_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_path_params_retrieve(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `thread_id` but received ''"):
await async_client.threads.runs.steps.with_raw_response.retrieve(
step_id="step_id",
@@ -242,7 +242,7 @@ async def test_path_params_retrieve(self, async_client: AsyncDigitaloceanGenaiSD
@pytest.mark.skip()
@parametrize
- async def test_method_list(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_list(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
step = await async_client.threads.runs.steps.list(
run_id="run_id",
thread_id="thread_id",
@@ -251,7 +251,7 @@ async def test_method_list(self, async_client: AsyncDigitaloceanGenaiSDK) -> Non
@pytest.mark.skip()
@parametrize
- async def test_method_list_with_all_params(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_list_with_all_params(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
step = await async_client.threads.runs.steps.list(
run_id="run_id",
thread_id="thread_id",
@@ -265,7 +265,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncDigitalocean
@pytest.mark.skip()
@parametrize
- async def test_raw_response_list(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_list(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.threads.runs.steps.with_raw_response.list(
run_id="run_id",
thread_id="thread_id",
@@ -278,7 +278,7 @@ async def test_raw_response_list(self, async_client: AsyncDigitaloceanGenaiSDK)
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_list(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_list(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.threads.runs.steps.with_streaming_response.list(
run_id="run_id",
thread_id="thread_id",
@@ -293,7 +293,7 @@ async def test_streaming_response_list(self, async_client: AsyncDigitaloceanGena
@pytest.mark.skip()
@parametrize
- async def test_path_params_list(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_path_params_list(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `thread_id` but received ''"):
await async_client.threads.runs.steps.with_raw_response.list(
run_id="run_id",
diff --git a/tests/api_resources/threads/test_messages.py b/tests/api_resources/threads/test_messages.py
index e1aaf51e..45d0c925 100644
--- a/tests/api_resources/threads/test_messages.py
+++ b/tests/api_resources/threads/test_messages.py
@@ -8,8 +8,8 @@
import pytest
from tests.utils import assert_matches_type
-from digitalocean_genai_sdk import DigitaloceanGenaiSDK, AsyncDigitaloceanGenaiSDK
-from digitalocean_genai_sdk.types.threads import (
+from serverless_inference_sdk_prod import ServerlessInferenceSDKProd, AsyncServerlessInferenceSDKProd
+from serverless_inference_sdk_prod.types.threads import (
MessageObject,
MessageListResponse,
MessageDeleteResponse,
@@ -23,7 +23,7 @@ class TestMessages:
@pytest.mark.skip()
@parametrize
- def test_method_create(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_create(self, client: ServerlessInferenceSDKProd) -> None:
message = client.threads.messages.create(
thread_id="thread_id",
content="string",
@@ -33,7 +33,7 @@ def test_method_create(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_create_with_all_params(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_create_with_all_params(self, client: ServerlessInferenceSDKProd) -> None:
message = client.threads.messages.create(
thread_id="thread_id",
content="string",
@@ -50,7 +50,7 @@ def test_method_create_with_all_params(self, client: DigitaloceanGenaiSDK) -> No
@pytest.mark.skip()
@parametrize
- def test_raw_response_create(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_create(self, client: ServerlessInferenceSDKProd) -> None:
response = client.threads.messages.with_raw_response.create(
thread_id="thread_id",
content="string",
@@ -64,7 +64,7 @@ def test_raw_response_create(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_create(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_create(self, client: ServerlessInferenceSDKProd) -> None:
with client.threads.messages.with_streaming_response.create(
thread_id="thread_id",
content="string",
@@ -80,7 +80,7 @@ def test_streaming_response_create(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_path_params_create(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_path_params_create(self, client: ServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `thread_id` but received ''"):
client.threads.messages.with_raw_response.create(
thread_id="",
@@ -90,7 +90,7 @@ def test_path_params_create(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_retrieve(self, client: ServerlessInferenceSDKProd) -> None:
message = client.threads.messages.retrieve(
message_id="message_id",
thread_id="thread_id",
@@ -99,7 +99,7 @@ def test_method_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_raw_response_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_retrieve(self, client: ServerlessInferenceSDKProd) -> None:
response = client.threads.messages.with_raw_response.retrieve(
message_id="message_id",
thread_id="thread_id",
@@ -112,7 +112,7 @@ def test_raw_response_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_retrieve(self, client: ServerlessInferenceSDKProd) -> None:
with client.threads.messages.with_streaming_response.retrieve(
message_id="message_id",
thread_id="thread_id",
@@ -127,7 +127,7 @@ def test_streaming_response_retrieve(self, client: DigitaloceanGenaiSDK) -> None
@pytest.mark.skip()
@parametrize
- def test_path_params_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_path_params_retrieve(self, client: ServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `thread_id` but received ''"):
client.threads.messages.with_raw_response.retrieve(
message_id="message_id",
@@ -142,7 +142,7 @@ def test_path_params_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_update(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_update(self, client: ServerlessInferenceSDKProd) -> None:
message = client.threads.messages.update(
message_id="message_id",
thread_id="thread_id",
@@ -151,7 +151,7 @@ def test_method_update(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_update_with_all_params(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_update_with_all_params(self, client: ServerlessInferenceSDKProd) -> None:
message = client.threads.messages.update(
message_id="message_id",
thread_id="thread_id",
@@ -161,7 +161,7 @@ def test_method_update_with_all_params(self, client: DigitaloceanGenaiSDK) -> No
@pytest.mark.skip()
@parametrize
- def test_raw_response_update(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_update(self, client: ServerlessInferenceSDKProd) -> None:
response = client.threads.messages.with_raw_response.update(
message_id="message_id",
thread_id="thread_id",
@@ -174,7 +174,7 @@ def test_raw_response_update(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_update(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_update(self, client: ServerlessInferenceSDKProd) -> None:
with client.threads.messages.with_streaming_response.update(
message_id="message_id",
thread_id="thread_id",
@@ -189,7 +189,7 @@ def test_streaming_response_update(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_path_params_update(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_path_params_update(self, client: ServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `thread_id` but received ''"):
client.threads.messages.with_raw_response.update(
message_id="message_id",
@@ -204,7 +204,7 @@ def test_path_params_update(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_list(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_list(self, client: ServerlessInferenceSDKProd) -> None:
message = client.threads.messages.list(
thread_id="thread_id",
)
@@ -212,7 +212,7 @@ def test_method_list(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_list_with_all_params(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_list_with_all_params(self, client: ServerlessInferenceSDKProd) -> None:
message = client.threads.messages.list(
thread_id="thread_id",
after="after",
@@ -225,7 +225,7 @@ def test_method_list_with_all_params(self, client: DigitaloceanGenaiSDK) -> None
@pytest.mark.skip()
@parametrize
- def test_raw_response_list(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_list(self, client: ServerlessInferenceSDKProd) -> None:
response = client.threads.messages.with_raw_response.list(
thread_id="thread_id",
)
@@ -237,7 +237,7 @@ def test_raw_response_list(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_list(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_list(self, client: ServerlessInferenceSDKProd) -> None:
with client.threads.messages.with_streaming_response.list(
thread_id="thread_id",
) as response:
@@ -251,7 +251,7 @@ def test_streaming_response_list(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_path_params_list(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_path_params_list(self, client: ServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `thread_id` but received ''"):
client.threads.messages.with_raw_response.list(
thread_id="",
@@ -259,7 +259,7 @@ def test_path_params_list(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_delete(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_delete(self, client: ServerlessInferenceSDKProd) -> None:
message = client.threads.messages.delete(
message_id="message_id",
thread_id="thread_id",
@@ -268,7 +268,7 @@ def test_method_delete(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_raw_response_delete(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_delete(self, client: ServerlessInferenceSDKProd) -> None:
response = client.threads.messages.with_raw_response.delete(
message_id="message_id",
thread_id="thread_id",
@@ -281,7 +281,7 @@ def test_raw_response_delete(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_delete(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_delete(self, client: ServerlessInferenceSDKProd) -> None:
with client.threads.messages.with_streaming_response.delete(
message_id="message_id",
thread_id="thread_id",
@@ -296,7 +296,7 @@ def test_streaming_response_delete(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_path_params_delete(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_path_params_delete(self, client: ServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `thread_id` but received ''"):
client.threads.messages.with_raw_response.delete(
message_id="message_id",
@@ -315,7 +315,7 @@ class TestAsyncMessages:
@pytest.mark.skip()
@parametrize
- async def test_method_create(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_create(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
message = await async_client.threads.messages.create(
thread_id="thread_id",
content="string",
@@ -325,7 +325,7 @@ async def test_method_create(self, async_client: AsyncDigitaloceanGenaiSDK) -> N
@pytest.mark.skip()
@parametrize
- async def test_method_create_with_all_params(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_create_with_all_params(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
message = await async_client.threads.messages.create(
thread_id="thread_id",
content="string",
@@ -342,7 +342,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncDigitaloce
@pytest.mark.skip()
@parametrize
- async def test_raw_response_create(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_create(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.threads.messages.with_raw_response.create(
thread_id="thread_id",
content="string",
@@ -356,7 +356,7 @@ async def test_raw_response_create(self, async_client: AsyncDigitaloceanGenaiSDK
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_create(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_create(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.threads.messages.with_streaming_response.create(
thread_id="thread_id",
content="string",
@@ -372,7 +372,7 @@ async def test_streaming_response_create(self, async_client: AsyncDigitaloceanGe
@pytest.mark.skip()
@parametrize
- async def test_path_params_create(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_path_params_create(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `thread_id` but received ''"):
await async_client.threads.messages.with_raw_response.create(
thread_id="",
@@ -382,7 +382,7 @@ async def test_path_params_create(self, async_client: AsyncDigitaloceanGenaiSDK)
@pytest.mark.skip()
@parametrize
- async def test_method_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_retrieve(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
message = await async_client.threads.messages.retrieve(
message_id="message_id",
thread_id="thread_id",
@@ -391,7 +391,7 @@ async def test_method_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) ->
@pytest.mark.skip()
@parametrize
- async def test_raw_response_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_retrieve(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.threads.messages.with_raw_response.retrieve(
message_id="message_id",
thread_id="thread_id",
@@ -404,7 +404,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncDigitaloceanGenaiS
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_retrieve(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.threads.messages.with_streaming_response.retrieve(
message_id="message_id",
thread_id="thread_id",
@@ -419,7 +419,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncDigitalocean
@pytest.mark.skip()
@parametrize
- async def test_path_params_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_path_params_retrieve(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `thread_id` but received ''"):
await async_client.threads.messages.with_raw_response.retrieve(
message_id="message_id",
@@ -434,7 +434,7 @@ async def test_path_params_retrieve(self, async_client: AsyncDigitaloceanGenaiSD
@pytest.mark.skip()
@parametrize
- async def test_method_update(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_update(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
message = await async_client.threads.messages.update(
message_id="message_id",
thread_id="thread_id",
@@ -443,7 +443,7 @@ async def test_method_update(self, async_client: AsyncDigitaloceanGenaiSDK) -> N
@pytest.mark.skip()
@parametrize
- async def test_method_update_with_all_params(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_update_with_all_params(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
message = await async_client.threads.messages.update(
message_id="message_id",
thread_id="thread_id",
@@ -453,7 +453,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncDigitaloce
@pytest.mark.skip()
@parametrize
- async def test_raw_response_update(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_update(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.threads.messages.with_raw_response.update(
message_id="message_id",
thread_id="thread_id",
@@ -466,7 +466,7 @@ async def test_raw_response_update(self, async_client: AsyncDigitaloceanGenaiSDK
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_update(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_update(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.threads.messages.with_streaming_response.update(
message_id="message_id",
thread_id="thread_id",
@@ -481,7 +481,7 @@ async def test_streaming_response_update(self, async_client: AsyncDigitaloceanGe
@pytest.mark.skip()
@parametrize
- async def test_path_params_update(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_path_params_update(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `thread_id` but received ''"):
await async_client.threads.messages.with_raw_response.update(
message_id="message_id",
@@ -496,7 +496,7 @@ async def test_path_params_update(self, async_client: AsyncDigitaloceanGenaiSDK)
@pytest.mark.skip()
@parametrize
- async def test_method_list(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_list(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
message = await async_client.threads.messages.list(
thread_id="thread_id",
)
@@ -504,7 +504,7 @@ async def test_method_list(self, async_client: AsyncDigitaloceanGenaiSDK) -> Non
@pytest.mark.skip()
@parametrize
- async def test_method_list_with_all_params(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_list_with_all_params(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
message = await async_client.threads.messages.list(
thread_id="thread_id",
after="after",
@@ -517,7 +517,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncDigitalocean
@pytest.mark.skip()
@parametrize
- async def test_raw_response_list(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_list(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.threads.messages.with_raw_response.list(
thread_id="thread_id",
)
@@ -529,7 +529,7 @@ async def test_raw_response_list(self, async_client: AsyncDigitaloceanGenaiSDK)
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_list(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_list(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.threads.messages.with_streaming_response.list(
thread_id="thread_id",
) as response:
@@ -543,7 +543,7 @@ async def test_streaming_response_list(self, async_client: AsyncDigitaloceanGena
@pytest.mark.skip()
@parametrize
- async def test_path_params_list(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_path_params_list(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `thread_id` but received ''"):
await async_client.threads.messages.with_raw_response.list(
thread_id="",
@@ -551,7 +551,7 @@ async def test_path_params_list(self, async_client: AsyncDigitaloceanGenaiSDK) -
@pytest.mark.skip()
@parametrize
- async def test_method_delete(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_delete(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
message = await async_client.threads.messages.delete(
message_id="message_id",
thread_id="thread_id",
@@ -560,7 +560,7 @@ async def test_method_delete(self, async_client: AsyncDigitaloceanGenaiSDK) -> N
@pytest.mark.skip()
@parametrize
- async def test_raw_response_delete(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_delete(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.threads.messages.with_raw_response.delete(
message_id="message_id",
thread_id="thread_id",
@@ -573,7 +573,7 @@ async def test_raw_response_delete(self, async_client: AsyncDigitaloceanGenaiSDK
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_delete(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_delete(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.threads.messages.with_streaming_response.delete(
message_id="message_id",
thread_id="thread_id",
@@ -588,7 +588,7 @@ async def test_streaming_response_delete(self, async_client: AsyncDigitaloceanGe
@pytest.mark.skip()
@parametrize
- async def test_path_params_delete(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_path_params_delete(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `thread_id` but received ''"):
await async_client.threads.messages.with_raw_response.delete(
message_id="message_id",
diff --git a/tests/api_resources/threads/test_runs.py b/tests/api_resources/threads/test_runs.py
index 59716b5e..099ecd97 100644
--- a/tests/api_resources/threads/test_runs.py
+++ b/tests/api_resources/threads/test_runs.py
@@ -8,8 +8,8 @@
import pytest
from tests.utils import assert_matches_type
-from digitalocean_genai_sdk import DigitaloceanGenaiSDK, AsyncDigitaloceanGenaiSDK
-from digitalocean_genai_sdk.types.threads import (
+from serverless_inference_sdk_prod import ServerlessInferenceSDKProd, AsyncServerlessInferenceSDKProd
+from serverless_inference_sdk_prod.types.threads import (
RunObject,
RunListResponse,
)
@@ -22,7 +22,7 @@ class TestRuns:
@pytest.mark.skip()
@parametrize
- def test_method_create(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_create(self, client: ServerlessInferenceSDKProd) -> None:
run = client.threads.runs.create(
assistant_id="assistant_id",
)
@@ -30,7 +30,7 @@ def test_method_create(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_create_with_all_params(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_create_with_all_params(self, client: ServerlessInferenceSDKProd) -> None:
run = client.threads.runs.create(
assistant_id="assistant_id",
instructions="instructions",
@@ -87,7 +87,7 @@ def test_method_create_with_all_params(self, client: DigitaloceanGenaiSDK) -> No
@pytest.mark.skip()
@parametrize
- def test_raw_response_create(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_create(self, client: ServerlessInferenceSDKProd) -> None:
response = client.threads.runs.with_raw_response.create(
assistant_id="assistant_id",
)
@@ -99,7 +99,7 @@ def test_raw_response_create(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_create(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_create(self, client: ServerlessInferenceSDKProd) -> None:
with client.threads.runs.with_streaming_response.create(
assistant_id="assistant_id",
) as response:
@@ -113,7 +113,7 @@ def test_streaming_response_create(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_retrieve(self, client: ServerlessInferenceSDKProd) -> None:
run = client.threads.runs.retrieve(
run_id="run_id",
thread_id="thread_id",
@@ -122,7 +122,7 @@ def test_method_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_raw_response_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_retrieve(self, client: ServerlessInferenceSDKProd) -> None:
response = client.threads.runs.with_raw_response.retrieve(
run_id="run_id",
thread_id="thread_id",
@@ -135,7 +135,7 @@ def test_raw_response_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_retrieve(self, client: ServerlessInferenceSDKProd) -> None:
with client.threads.runs.with_streaming_response.retrieve(
run_id="run_id",
thread_id="thread_id",
@@ -150,7 +150,7 @@ def test_streaming_response_retrieve(self, client: DigitaloceanGenaiSDK) -> None
@pytest.mark.skip()
@parametrize
- def test_path_params_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_path_params_retrieve(self, client: ServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `thread_id` but received ''"):
client.threads.runs.with_raw_response.retrieve(
run_id="run_id",
@@ -165,7 +165,7 @@ def test_path_params_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_update(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_update(self, client: ServerlessInferenceSDKProd) -> None:
run = client.threads.runs.update(
run_id="run_id",
thread_id="thread_id",
@@ -174,7 +174,7 @@ def test_method_update(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_update_with_all_params(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_update_with_all_params(self, client: ServerlessInferenceSDKProd) -> None:
run = client.threads.runs.update(
run_id="run_id",
thread_id="thread_id",
@@ -184,7 +184,7 @@ def test_method_update_with_all_params(self, client: DigitaloceanGenaiSDK) -> No
@pytest.mark.skip()
@parametrize
- def test_raw_response_update(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_update(self, client: ServerlessInferenceSDKProd) -> None:
response = client.threads.runs.with_raw_response.update(
run_id="run_id",
thread_id="thread_id",
@@ -197,7 +197,7 @@ def test_raw_response_update(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_update(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_update(self, client: ServerlessInferenceSDKProd) -> None:
with client.threads.runs.with_streaming_response.update(
run_id="run_id",
thread_id="thread_id",
@@ -212,7 +212,7 @@ def test_streaming_response_update(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_path_params_update(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_path_params_update(self, client: ServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `thread_id` but received ''"):
client.threads.runs.with_raw_response.update(
run_id="run_id",
@@ -227,7 +227,7 @@ def test_path_params_update(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_list(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_list(self, client: ServerlessInferenceSDKProd) -> None:
run = client.threads.runs.list(
thread_id="thread_id",
)
@@ -235,7 +235,7 @@ def test_method_list(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_list_with_all_params(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_list_with_all_params(self, client: ServerlessInferenceSDKProd) -> None:
run = client.threads.runs.list(
thread_id="thread_id",
after="after",
@@ -247,7 +247,7 @@ def test_method_list_with_all_params(self, client: DigitaloceanGenaiSDK) -> None
@pytest.mark.skip()
@parametrize
- def test_raw_response_list(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_list(self, client: ServerlessInferenceSDKProd) -> None:
response = client.threads.runs.with_raw_response.list(
thread_id="thread_id",
)
@@ -259,7 +259,7 @@ def test_raw_response_list(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_list(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_list(self, client: ServerlessInferenceSDKProd) -> None:
with client.threads.runs.with_streaming_response.list(
thread_id="thread_id",
) as response:
@@ -273,7 +273,7 @@ def test_streaming_response_list(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_path_params_list(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_path_params_list(self, client: ServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `thread_id` but received ''"):
client.threads.runs.with_raw_response.list(
thread_id="",
@@ -281,7 +281,7 @@ def test_path_params_list(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_cancel(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_cancel(self, client: ServerlessInferenceSDKProd) -> None:
run = client.threads.runs.cancel(
run_id="run_id",
thread_id="thread_id",
@@ -290,7 +290,7 @@ def test_method_cancel(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_raw_response_cancel(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_cancel(self, client: ServerlessInferenceSDKProd) -> None:
response = client.threads.runs.with_raw_response.cancel(
run_id="run_id",
thread_id="thread_id",
@@ -303,7 +303,7 @@ def test_raw_response_cancel(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_cancel(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_cancel(self, client: ServerlessInferenceSDKProd) -> None:
with client.threads.runs.with_streaming_response.cancel(
run_id="run_id",
thread_id="thread_id",
@@ -318,7 +318,7 @@ def test_streaming_response_cancel(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_path_params_cancel(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_path_params_cancel(self, client: ServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `thread_id` but received ''"):
client.threads.runs.with_raw_response.cancel(
run_id="run_id",
@@ -333,7 +333,7 @@ def test_path_params_cancel(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_create_run(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_create_run(self, client: ServerlessInferenceSDKProd) -> None:
run = client.threads.runs.create_run(
thread_id="thread_id",
assistant_id="assistant_id",
@@ -342,7 +342,7 @@ def test_method_create_run(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_create_run_with_all_params(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_create_run_with_all_params(self, client: ServerlessInferenceSDKProd) -> None:
run = client.threads.runs.create_run(
thread_id="thread_id",
assistant_id="assistant_id",
@@ -383,7 +383,7 @@ def test_method_create_run_with_all_params(self, client: DigitaloceanGenaiSDK) -
@pytest.mark.skip()
@parametrize
- def test_raw_response_create_run(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_create_run(self, client: ServerlessInferenceSDKProd) -> None:
response = client.threads.runs.with_raw_response.create_run(
thread_id="thread_id",
assistant_id="assistant_id",
@@ -396,7 +396,7 @@ def test_raw_response_create_run(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_create_run(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_create_run(self, client: ServerlessInferenceSDKProd) -> None:
with client.threads.runs.with_streaming_response.create_run(
thread_id="thread_id",
assistant_id="assistant_id",
@@ -411,7 +411,7 @@ def test_streaming_response_create_run(self, client: DigitaloceanGenaiSDK) -> No
@pytest.mark.skip()
@parametrize
- def test_path_params_create_run(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_path_params_create_run(self, client: ServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `thread_id` but received ''"):
client.threads.runs.with_raw_response.create_run(
thread_id="",
@@ -420,7 +420,7 @@ def test_path_params_create_run(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_submit_tool_outputs(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_submit_tool_outputs(self, client: ServerlessInferenceSDKProd) -> None:
run = client.threads.runs.submit_tool_outputs(
run_id="run_id",
thread_id="thread_id",
@@ -430,7 +430,7 @@ def test_method_submit_tool_outputs(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_submit_tool_outputs_with_all_params(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_submit_tool_outputs_with_all_params(self, client: ServerlessInferenceSDKProd) -> None:
run = client.threads.runs.submit_tool_outputs(
run_id="run_id",
thread_id="thread_id",
@@ -446,7 +446,7 @@ def test_method_submit_tool_outputs_with_all_params(self, client: DigitaloceanGe
@pytest.mark.skip()
@parametrize
- def test_raw_response_submit_tool_outputs(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_submit_tool_outputs(self, client: ServerlessInferenceSDKProd) -> None:
response = client.threads.runs.with_raw_response.submit_tool_outputs(
run_id="run_id",
thread_id="thread_id",
@@ -460,7 +460,7 @@ def test_raw_response_submit_tool_outputs(self, client: DigitaloceanGenaiSDK) ->
@pytest.mark.skip()
@parametrize
- def test_streaming_response_submit_tool_outputs(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_submit_tool_outputs(self, client: ServerlessInferenceSDKProd) -> None:
with client.threads.runs.with_streaming_response.submit_tool_outputs(
run_id="run_id",
thread_id="thread_id",
@@ -476,7 +476,7 @@ def test_streaming_response_submit_tool_outputs(self, client: DigitaloceanGenaiS
@pytest.mark.skip()
@parametrize
- def test_path_params_submit_tool_outputs(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_path_params_submit_tool_outputs(self, client: ServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `thread_id` but received ''"):
client.threads.runs.with_raw_response.submit_tool_outputs(
run_id="run_id",
@@ -497,7 +497,7 @@ class TestAsyncRuns:
@pytest.mark.skip()
@parametrize
- async def test_method_create(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_create(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
run = await async_client.threads.runs.create(
assistant_id="assistant_id",
)
@@ -505,7 +505,7 @@ async def test_method_create(self, async_client: AsyncDigitaloceanGenaiSDK) -> N
@pytest.mark.skip()
@parametrize
- async def test_method_create_with_all_params(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_create_with_all_params(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
run = await async_client.threads.runs.create(
assistant_id="assistant_id",
instructions="instructions",
@@ -562,7 +562,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncDigitaloce
@pytest.mark.skip()
@parametrize
- async def test_raw_response_create(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_create(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.threads.runs.with_raw_response.create(
assistant_id="assistant_id",
)
@@ -574,7 +574,7 @@ async def test_raw_response_create(self, async_client: AsyncDigitaloceanGenaiSDK
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_create(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_create(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.threads.runs.with_streaming_response.create(
assistant_id="assistant_id",
) as response:
@@ -588,7 +588,7 @@ async def test_streaming_response_create(self, async_client: AsyncDigitaloceanGe
@pytest.mark.skip()
@parametrize
- async def test_method_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_retrieve(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
run = await async_client.threads.runs.retrieve(
run_id="run_id",
thread_id="thread_id",
@@ -597,7 +597,7 @@ async def test_method_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) ->
@pytest.mark.skip()
@parametrize
- async def test_raw_response_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_retrieve(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.threads.runs.with_raw_response.retrieve(
run_id="run_id",
thread_id="thread_id",
@@ -610,7 +610,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncDigitaloceanGenaiS
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_retrieve(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.threads.runs.with_streaming_response.retrieve(
run_id="run_id",
thread_id="thread_id",
@@ -625,7 +625,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncDigitalocean
@pytest.mark.skip()
@parametrize
- async def test_path_params_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_path_params_retrieve(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `thread_id` but received ''"):
await async_client.threads.runs.with_raw_response.retrieve(
run_id="run_id",
@@ -640,7 +640,7 @@ async def test_path_params_retrieve(self, async_client: AsyncDigitaloceanGenaiSD
@pytest.mark.skip()
@parametrize
- async def test_method_update(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_update(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
run = await async_client.threads.runs.update(
run_id="run_id",
thread_id="thread_id",
@@ -649,7 +649,7 @@ async def test_method_update(self, async_client: AsyncDigitaloceanGenaiSDK) -> N
@pytest.mark.skip()
@parametrize
- async def test_method_update_with_all_params(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_update_with_all_params(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
run = await async_client.threads.runs.update(
run_id="run_id",
thread_id="thread_id",
@@ -659,7 +659,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncDigitaloce
@pytest.mark.skip()
@parametrize
- async def test_raw_response_update(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_update(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.threads.runs.with_raw_response.update(
run_id="run_id",
thread_id="thread_id",
@@ -672,7 +672,7 @@ async def test_raw_response_update(self, async_client: AsyncDigitaloceanGenaiSDK
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_update(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_update(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.threads.runs.with_streaming_response.update(
run_id="run_id",
thread_id="thread_id",
@@ -687,7 +687,7 @@ async def test_streaming_response_update(self, async_client: AsyncDigitaloceanGe
@pytest.mark.skip()
@parametrize
- async def test_path_params_update(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_path_params_update(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `thread_id` but received ''"):
await async_client.threads.runs.with_raw_response.update(
run_id="run_id",
@@ -702,7 +702,7 @@ async def test_path_params_update(self, async_client: AsyncDigitaloceanGenaiSDK)
@pytest.mark.skip()
@parametrize
- async def test_method_list(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_list(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
run = await async_client.threads.runs.list(
thread_id="thread_id",
)
@@ -710,7 +710,7 @@ async def test_method_list(self, async_client: AsyncDigitaloceanGenaiSDK) -> Non
@pytest.mark.skip()
@parametrize
- async def test_method_list_with_all_params(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_list_with_all_params(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
run = await async_client.threads.runs.list(
thread_id="thread_id",
after="after",
@@ -722,7 +722,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncDigitalocean
@pytest.mark.skip()
@parametrize
- async def test_raw_response_list(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_list(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.threads.runs.with_raw_response.list(
thread_id="thread_id",
)
@@ -734,7 +734,7 @@ async def test_raw_response_list(self, async_client: AsyncDigitaloceanGenaiSDK)
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_list(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_list(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.threads.runs.with_streaming_response.list(
thread_id="thread_id",
) as response:
@@ -748,7 +748,7 @@ async def test_streaming_response_list(self, async_client: AsyncDigitaloceanGena
@pytest.mark.skip()
@parametrize
- async def test_path_params_list(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_path_params_list(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `thread_id` but received ''"):
await async_client.threads.runs.with_raw_response.list(
thread_id="",
@@ -756,7 +756,7 @@ async def test_path_params_list(self, async_client: AsyncDigitaloceanGenaiSDK) -
@pytest.mark.skip()
@parametrize
- async def test_method_cancel(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_cancel(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
run = await async_client.threads.runs.cancel(
run_id="run_id",
thread_id="thread_id",
@@ -765,7 +765,7 @@ async def test_method_cancel(self, async_client: AsyncDigitaloceanGenaiSDK) -> N
@pytest.mark.skip()
@parametrize
- async def test_raw_response_cancel(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_cancel(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.threads.runs.with_raw_response.cancel(
run_id="run_id",
thread_id="thread_id",
@@ -778,7 +778,7 @@ async def test_raw_response_cancel(self, async_client: AsyncDigitaloceanGenaiSDK
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_cancel(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_cancel(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.threads.runs.with_streaming_response.cancel(
run_id="run_id",
thread_id="thread_id",
@@ -793,7 +793,7 @@ async def test_streaming_response_cancel(self, async_client: AsyncDigitaloceanGe
@pytest.mark.skip()
@parametrize
- async def test_path_params_cancel(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_path_params_cancel(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `thread_id` but received ''"):
await async_client.threads.runs.with_raw_response.cancel(
run_id="run_id",
@@ -808,7 +808,7 @@ async def test_path_params_cancel(self, async_client: AsyncDigitaloceanGenaiSDK)
@pytest.mark.skip()
@parametrize
- async def test_method_create_run(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_create_run(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
run = await async_client.threads.runs.create_run(
thread_id="thread_id",
assistant_id="assistant_id",
@@ -817,7 +817,7 @@ async def test_method_create_run(self, async_client: AsyncDigitaloceanGenaiSDK)
@pytest.mark.skip()
@parametrize
- async def test_method_create_run_with_all_params(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_create_run_with_all_params(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
run = await async_client.threads.runs.create_run(
thread_id="thread_id",
assistant_id="assistant_id",
@@ -858,7 +858,7 @@ async def test_method_create_run_with_all_params(self, async_client: AsyncDigita
@pytest.mark.skip()
@parametrize
- async def test_raw_response_create_run(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_create_run(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.threads.runs.with_raw_response.create_run(
thread_id="thread_id",
assistant_id="assistant_id",
@@ -871,7 +871,7 @@ async def test_raw_response_create_run(self, async_client: AsyncDigitaloceanGena
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_create_run(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_create_run(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.threads.runs.with_streaming_response.create_run(
thread_id="thread_id",
assistant_id="assistant_id",
@@ -886,7 +886,7 @@ async def test_streaming_response_create_run(self, async_client: AsyncDigitaloce
@pytest.mark.skip()
@parametrize
- async def test_path_params_create_run(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_path_params_create_run(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `thread_id` but received ''"):
await async_client.threads.runs.with_raw_response.create_run(
thread_id="",
@@ -895,7 +895,7 @@ async def test_path_params_create_run(self, async_client: AsyncDigitaloceanGenai
@pytest.mark.skip()
@parametrize
- async def test_method_submit_tool_outputs(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_submit_tool_outputs(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
run = await async_client.threads.runs.submit_tool_outputs(
run_id="run_id",
thread_id="thread_id",
@@ -905,7 +905,9 @@ async def test_method_submit_tool_outputs(self, async_client: AsyncDigitaloceanG
@pytest.mark.skip()
@parametrize
- async def test_method_submit_tool_outputs_with_all_params(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_submit_tool_outputs_with_all_params(
+ self, async_client: AsyncServerlessInferenceSDKProd
+ ) -> None:
run = await async_client.threads.runs.submit_tool_outputs(
run_id="run_id",
thread_id="thread_id",
@@ -921,7 +923,7 @@ async def test_method_submit_tool_outputs_with_all_params(self, async_client: As
@pytest.mark.skip()
@parametrize
- async def test_raw_response_submit_tool_outputs(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_submit_tool_outputs(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.threads.runs.with_raw_response.submit_tool_outputs(
run_id="run_id",
thread_id="thread_id",
@@ -935,7 +937,7 @@ async def test_raw_response_submit_tool_outputs(self, async_client: AsyncDigital
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_submit_tool_outputs(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_submit_tool_outputs(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.threads.runs.with_streaming_response.submit_tool_outputs(
run_id="run_id",
thread_id="thread_id",
@@ -951,7 +953,7 @@ async def test_streaming_response_submit_tool_outputs(self, async_client: AsyncD
@pytest.mark.skip()
@parametrize
- async def test_path_params_submit_tool_outputs(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_path_params_submit_tool_outputs(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `thread_id` but received ''"):
await async_client.threads.runs.with_raw_response.submit_tool_outputs(
run_id="run_id",
diff --git a/tests/api_resources/vector_stores/test_file_batches.py b/tests/api_resources/vector_stores/test_file_batches.py
index 47897412..1352569b 100644
--- a/tests/api_resources/vector_stores/test_file_batches.py
+++ b/tests/api_resources/vector_stores/test_file_batches.py
@@ -8,8 +8,8 @@
import pytest
from tests.utils import assert_matches_type
-from digitalocean_genai_sdk import DigitaloceanGenaiSDK, AsyncDigitaloceanGenaiSDK
-from digitalocean_genai_sdk.types.vector_stores import (
+from serverless_inference_sdk_prod import ServerlessInferenceSDKProd, AsyncServerlessInferenceSDKProd
+from serverless_inference_sdk_prod.types.vector_stores import (
VectorStoreFileBatchObject,
ListVectorStoreFilesResponse,
)
@@ -22,7 +22,7 @@ class TestFileBatches:
@pytest.mark.skip()
@parametrize
- def test_method_create(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_create(self, client: ServerlessInferenceSDKProd) -> None:
file_batch = client.vector_stores.file_batches.create(
vector_store_id="vs_abc123",
file_ids=["string"],
@@ -31,7 +31,7 @@ def test_method_create(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_create_with_all_params(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_create_with_all_params(self, client: ServerlessInferenceSDKProd) -> None:
file_batch = client.vector_stores.file_batches.create(
vector_store_id="vs_abc123",
file_ids=["string"],
@@ -42,7 +42,7 @@ def test_method_create_with_all_params(self, client: DigitaloceanGenaiSDK) -> No
@pytest.mark.skip()
@parametrize
- def test_raw_response_create(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_create(self, client: ServerlessInferenceSDKProd) -> None:
response = client.vector_stores.file_batches.with_raw_response.create(
vector_store_id="vs_abc123",
file_ids=["string"],
@@ -55,7 +55,7 @@ def test_raw_response_create(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_create(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_create(self, client: ServerlessInferenceSDKProd) -> None:
with client.vector_stores.file_batches.with_streaming_response.create(
vector_store_id="vs_abc123",
file_ids=["string"],
@@ -70,7 +70,7 @@ def test_streaming_response_create(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_path_params_create(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_path_params_create(self, client: ServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `vector_store_id` but received ''"):
client.vector_stores.file_batches.with_raw_response.create(
vector_store_id="",
@@ -79,7 +79,7 @@ def test_path_params_create(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_retrieve(self, client: ServerlessInferenceSDKProd) -> None:
file_batch = client.vector_stores.file_batches.retrieve(
batch_id="vsfb_abc123",
vector_store_id="vs_abc123",
@@ -88,7 +88,7 @@ def test_method_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_raw_response_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_retrieve(self, client: ServerlessInferenceSDKProd) -> None:
response = client.vector_stores.file_batches.with_raw_response.retrieve(
batch_id="vsfb_abc123",
vector_store_id="vs_abc123",
@@ -101,7 +101,7 @@ def test_raw_response_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_retrieve(self, client: ServerlessInferenceSDKProd) -> None:
with client.vector_stores.file_batches.with_streaming_response.retrieve(
batch_id="vsfb_abc123",
vector_store_id="vs_abc123",
@@ -116,7 +116,7 @@ def test_streaming_response_retrieve(self, client: DigitaloceanGenaiSDK) -> None
@pytest.mark.skip()
@parametrize
- def test_path_params_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_path_params_retrieve(self, client: ServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `vector_store_id` but received ''"):
client.vector_stores.file_batches.with_raw_response.retrieve(
batch_id="vsfb_abc123",
@@ -131,7 +131,7 @@ def test_path_params_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_cancel(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_cancel(self, client: ServerlessInferenceSDKProd) -> None:
file_batch = client.vector_stores.file_batches.cancel(
batch_id="batch_id",
vector_store_id="vector_store_id",
@@ -140,7 +140,7 @@ def test_method_cancel(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_raw_response_cancel(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_cancel(self, client: ServerlessInferenceSDKProd) -> None:
response = client.vector_stores.file_batches.with_raw_response.cancel(
batch_id="batch_id",
vector_store_id="vector_store_id",
@@ -153,7 +153,7 @@ def test_raw_response_cancel(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_cancel(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_cancel(self, client: ServerlessInferenceSDKProd) -> None:
with client.vector_stores.file_batches.with_streaming_response.cancel(
batch_id="batch_id",
vector_store_id="vector_store_id",
@@ -168,7 +168,7 @@ def test_streaming_response_cancel(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_path_params_cancel(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_path_params_cancel(self, client: ServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `vector_store_id` but received ''"):
client.vector_stores.file_batches.with_raw_response.cancel(
batch_id="batch_id",
@@ -183,7 +183,7 @@ def test_path_params_cancel(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_list_files(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_list_files(self, client: ServerlessInferenceSDKProd) -> None:
file_batch = client.vector_stores.file_batches.list_files(
batch_id="batch_id",
vector_store_id="vector_store_id",
@@ -192,7 +192,7 @@ def test_method_list_files(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_list_files_with_all_params(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_list_files_with_all_params(self, client: ServerlessInferenceSDKProd) -> None:
file_batch = client.vector_stores.file_batches.list_files(
batch_id="batch_id",
vector_store_id="vector_store_id",
@@ -206,7 +206,7 @@ def test_method_list_files_with_all_params(self, client: DigitaloceanGenaiSDK) -
@pytest.mark.skip()
@parametrize
- def test_raw_response_list_files(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_list_files(self, client: ServerlessInferenceSDKProd) -> None:
response = client.vector_stores.file_batches.with_raw_response.list_files(
batch_id="batch_id",
vector_store_id="vector_store_id",
@@ -219,7 +219,7 @@ def test_raw_response_list_files(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_list_files(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_list_files(self, client: ServerlessInferenceSDKProd) -> None:
with client.vector_stores.file_batches.with_streaming_response.list_files(
batch_id="batch_id",
vector_store_id="vector_store_id",
@@ -234,7 +234,7 @@ def test_streaming_response_list_files(self, client: DigitaloceanGenaiSDK) -> No
@pytest.mark.skip()
@parametrize
- def test_path_params_list_files(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_path_params_list_files(self, client: ServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `vector_store_id` but received ''"):
client.vector_stores.file_batches.with_raw_response.list_files(
batch_id="batch_id",
@@ -253,7 +253,7 @@ class TestAsyncFileBatches:
@pytest.mark.skip()
@parametrize
- async def test_method_create(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_create(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
file_batch = await async_client.vector_stores.file_batches.create(
vector_store_id="vs_abc123",
file_ids=["string"],
@@ -262,7 +262,7 @@ async def test_method_create(self, async_client: AsyncDigitaloceanGenaiSDK) -> N
@pytest.mark.skip()
@parametrize
- async def test_method_create_with_all_params(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_create_with_all_params(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
file_batch = await async_client.vector_stores.file_batches.create(
vector_store_id="vs_abc123",
file_ids=["string"],
@@ -273,7 +273,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncDigitaloce
@pytest.mark.skip()
@parametrize
- async def test_raw_response_create(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_create(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.vector_stores.file_batches.with_raw_response.create(
vector_store_id="vs_abc123",
file_ids=["string"],
@@ -286,7 +286,7 @@ async def test_raw_response_create(self, async_client: AsyncDigitaloceanGenaiSDK
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_create(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_create(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.vector_stores.file_batches.with_streaming_response.create(
vector_store_id="vs_abc123",
file_ids=["string"],
@@ -301,7 +301,7 @@ async def test_streaming_response_create(self, async_client: AsyncDigitaloceanGe
@pytest.mark.skip()
@parametrize
- async def test_path_params_create(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_path_params_create(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `vector_store_id` but received ''"):
await async_client.vector_stores.file_batches.with_raw_response.create(
vector_store_id="",
@@ -310,7 +310,7 @@ async def test_path_params_create(self, async_client: AsyncDigitaloceanGenaiSDK)
@pytest.mark.skip()
@parametrize
- async def test_method_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_retrieve(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
file_batch = await async_client.vector_stores.file_batches.retrieve(
batch_id="vsfb_abc123",
vector_store_id="vs_abc123",
@@ -319,7 +319,7 @@ async def test_method_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) ->
@pytest.mark.skip()
@parametrize
- async def test_raw_response_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_retrieve(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.vector_stores.file_batches.with_raw_response.retrieve(
batch_id="vsfb_abc123",
vector_store_id="vs_abc123",
@@ -332,7 +332,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncDigitaloceanGenaiS
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_retrieve(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.vector_stores.file_batches.with_streaming_response.retrieve(
batch_id="vsfb_abc123",
vector_store_id="vs_abc123",
@@ -347,7 +347,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncDigitalocean
@pytest.mark.skip()
@parametrize
- async def test_path_params_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_path_params_retrieve(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `vector_store_id` but received ''"):
await async_client.vector_stores.file_batches.with_raw_response.retrieve(
batch_id="vsfb_abc123",
@@ -362,7 +362,7 @@ async def test_path_params_retrieve(self, async_client: AsyncDigitaloceanGenaiSD
@pytest.mark.skip()
@parametrize
- async def test_method_cancel(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_cancel(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
file_batch = await async_client.vector_stores.file_batches.cancel(
batch_id="batch_id",
vector_store_id="vector_store_id",
@@ -371,7 +371,7 @@ async def test_method_cancel(self, async_client: AsyncDigitaloceanGenaiSDK) -> N
@pytest.mark.skip()
@parametrize
- async def test_raw_response_cancel(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_cancel(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.vector_stores.file_batches.with_raw_response.cancel(
batch_id="batch_id",
vector_store_id="vector_store_id",
@@ -384,7 +384,7 @@ async def test_raw_response_cancel(self, async_client: AsyncDigitaloceanGenaiSDK
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_cancel(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_cancel(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.vector_stores.file_batches.with_streaming_response.cancel(
batch_id="batch_id",
vector_store_id="vector_store_id",
@@ -399,7 +399,7 @@ async def test_streaming_response_cancel(self, async_client: AsyncDigitaloceanGe
@pytest.mark.skip()
@parametrize
- async def test_path_params_cancel(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_path_params_cancel(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `vector_store_id` but received ''"):
await async_client.vector_stores.file_batches.with_raw_response.cancel(
batch_id="batch_id",
@@ -414,7 +414,7 @@ async def test_path_params_cancel(self, async_client: AsyncDigitaloceanGenaiSDK)
@pytest.mark.skip()
@parametrize
- async def test_method_list_files(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_list_files(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
file_batch = await async_client.vector_stores.file_batches.list_files(
batch_id="batch_id",
vector_store_id="vector_store_id",
@@ -423,7 +423,7 @@ async def test_method_list_files(self, async_client: AsyncDigitaloceanGenaiSDK)
@pytest.mark.skip()
@parametrize
- async def test_method_list_files_with_all_params(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_list_files_with_all_params(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
file_batch = await async_client.vector_stores.file_batches.list_files(
batch_id="batch_id",
vector_store_id="vector_store_id",
@@ -437,7 +437,7 @@ async def test_method_list_files_with_all_params(self, async_client: AsyncDigita
@pytest.mark.skip()
@parametrize
- async def test_raw_response_list_files(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_list_files(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.vector_stores.file_batches.with_raw_response.list_files(
batch_id="batch_id",
vector_store_id="vector_store_id",
@@ -450,7 +450,7 @@ async def test_raw_response_list_files(self, async_client: AsyncDigitaloceanGena
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_list_files(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_list_files(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.vector_stores.file_batches.with_streaming_response.list_files(
batch_id="batch_id",
vector_store_id="vector_store_id",
@@ -465,7 +465,7 @@ async def test_streaming_response_list_files(self, async_client: AsyncDigitaloce
@pytest.mark.skip()
@parametrize
- async def test_path_params_list_files(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_path_params_list_files(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `vector_store_id` but received ''"):
await async_client.vector_stores.file_batches.with_raw_response.list_files(
batch_id="batch_id",
diff --git a/tests/api_resources/vector_stores/test_files.py b/tests/api_resources/vector_stores/test_files.py
index b93fe1b4..70f2da63 100644
--- a/tests/api_resources/vector_stores/test_files.py
+++ b/tests/api_resources/vector_stores/test_files.py
@@ -8,8 +8,8 @@
import pytest
from tests.utils import assert_matches_type
-from digitalocean_genai_sdk import DigitaloceanGenaiSDK, AsyncDigitaloceanGenaiSDK
-from digitalocean_genai_sdk.types.vector_stores import (
+from serverless_inference_sdk_prod import ServerlessInferenceSDKProd, AsyncServerlessInferenceSDKProd
+from serverless_inference_sdk_prod.types.vector_stores import (
FileDeleteResponse,
VectorStoreFileObject,
FileRetrieveContentResponse,
@@ -24,7 +24,7 @@ class TestFiles:
@pytest.mark.skip()
@parametrize
- def test_method_create(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_create(self, client: ServerlessInferenceSDKProd) -> None:
file = client.vector_stores.files.create(
vector_store_id="vs_abc123",
file_id="file_id",
@@ -33,7 +33,7 @@ def test_method_create(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_create_with_all_params(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_create_with_all_params(self, client: ServerlessInferenceSDKProd) -> None:
file = client.vector_stores.files.create(
vector_store_id="vs_abc123",
file_id="file_id",
@@ -44,7 +44,7 @@ def test_method_create_with_all_params(self, client: DigitaloceanGenaiSDK) -> No
@pytest.mark.skip()
@parametrize
- def test_raw_response_create(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_create(self, client: ServerlessInferenceSDKProd) -> None:
response = client.vector_stores.files.with_raw_response.create(
vector_store_id="vs_abc123",
file_id="file_id",
@@ -57,7 +57,7 @@ def test_raw_response_create(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_create(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_create(self, client: ServerlessInferenceSDKProd) -> None:
with client.vector_stores.files.with_streaming_response.create(
vector_store_id="vs_abc123",
file_id="file_id",
@@ -72,7 +72,7 @@ def test_streaming_response_create(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_path_params_create(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_path_params_create(self, client: ServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `vector_store_id` but received ''"):
client.vector_stores.files.with_raw_response.create(
vector_store_id="",
@@ -81,7 +81,7 @@ def test_path_params_create(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_retrieve(self, client: ServerlessInferenceSDKProd) -> None:
file = client.vector_stores.files.retrieve(
file_id="file-abc123",
vector_store_id="vs_abc123",
@@ -90,7 +90,7 @@ def test_method_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_raw_response_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_retrieve(self, client: ServerlessInferenceSDKProd) -> None:
response = client.vector_stores.files.with_raw_response.retrieve(
file_id="file-abc123",
vector_store_id="vs_abc123",
@@ -103,7 +103,7 @@ def test_raw_response_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_retrieve(self, client: ServerlessInferenceSDKProd) -> None:
with client.vector_stores.files.with_streaming_response.retrieve(
file_id="file-abc123",
vector_store_id="vs_abc123",
@@ -118,7 +118,7 @@ def test_streaming_response_retrieve(self, client: DigitaloceanGenaiSDK) -> None
@pytest.mark.skip()
@parametrize
- def test_path_params_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_path_params_retrieve(self, client: ServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `vector_store_id` but received ''"):
client.vector_stores.files.with_raw_response.retrieve(
file_id="file-abc123",
@@ -133,7 +133,7 @@ def test_path_params_retrieve(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_update(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_update(self, client: ServerlessInferenceSDKProd) -> None:
file = client.vector_stores.files.update(
file_id="file-abc123",
vector_store_id="vs_abc123",
@@ -143,7 +143,7 @@ def test_method_update(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_raw_response_update(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_update(self, client: ServerlessInferenceSDKProd) -> None:
response = client.vector_stores.files.with_raw_response.update(
file_id="file-abc123",
vector_store_id="vs_abc123",
@@ -157,7 +157,7 @@ def test_raw_response_update(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_update(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_update(self, client: ServerlessInferenceSDKProd) -> None:
with client.vector_stores.files.with_streaming_response.update(
file_id="file-abc123",
vector_store_id="vs_abc123",
@@ -173,7 +173,7 @@ def test_streaming_response_update(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_path_params_update(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_path_params_update(self, client: ServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `vector_store_id` but received ''"):
client.vector_stores.files.with_raw_response.update(
file_id="file-abc123",
@@ -190,7 +190,7 @@ def test_path_params_update(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_list(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_list(self, client: ServerlessInferenceSDKProd) -> None:
file = client.vector_stores.files.list(
vector_store_id="vector_store_id",
)
@@ -198,7 +198,7 @@ def test_method_list(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_list_with_all_params(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_list_with_all_params(self, client: ServerlessInferenceSDKProd) -> None:
file = client.vector_stores.files.list(
vector_store_id="vector_store_id",
after="after",
@@ -211,7 +211,7 @@ def test_method_list_with_all_params(self, client: DigitaloceanGenaiSDK) -> None
@pytest.mark.skip()
@parametrize
- def test_raw_response_list(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_list(self, client: ServerlessInferenceSDKProd) -> None:
response = client.vector_stores.files.with_raw_response.list(
vector_store_id="vector_store_id",
)
@@ -223,7 +223,7 @@ def test_raw_response_list(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_list(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_list(self, client: ServerlessInferenceSDKProd) -> None:
with client.vector_stores.files.with_streaming_response.list(
vector_store_id="vector_store_id",
) as response:
@@ -237,7 +237,7 @@ def test_streaming_response_list(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_path_params_list(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_path_params_list(self, client: ServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `vector_store_id` but received ''"):
client.vector_stores.files.with_raw_response.list(
vector_store_id="",
@@ -245,7 +245,7 @@ def test_path_params_list(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_delete(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_delete(self, client: ServerlessInferenceSDKProd) -> None:
file = client.vector_stores.files.delete(
file_id="file_id",
vector_store_id="vector_store_id",
@@ -254,7 +254,7 @@ def test_method_delete(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_raw_response_delete(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_delete(self, client: ServerlessInferenceSDKProd) -> None:
response = client.vector_stores.files.with_raw_response.delete(
file_id="file_id",
vector_store_id="vector_store_id",
@@ -267,7 +267,7 @@ def test_raw_response_delete(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_streaming_response_delete(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_delete(self, client: ServerlessInferenceSDKProd) -> None:
with client.vector_stores.files.with_streaming_response.delete(
file_id="file_id",
vector_store_id="vector_store_id",
@@ -282,7 +282,7 @@ def test_streaming_response_delete(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_path_params_delete(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_path_params_delete(self, client: ServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `vector_store_id` but received ''"):
client.vector_stores.files.with_raw_response.delete(
file_id="file_id",
@@ -297,7 +297,7 @@ def test_path_params_delete(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_method_retrieve_content(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_method_retrieve_content(self, client: ServerlessInferenceSDKProd) -> None:
file = client.vector_stores.files.retrieve_content(
file_id="file-abc123",
vector_store_id="vs_abc123",
@@ -306,7 +306,7 @@ def test_method_retrieve_content(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.skip()
@parametrize
- def test_raw_response_retrieve_content(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_raw_response_retrieve_content(self, client: ServerlessInferenceSDKProd) -> None:
response = client.vector_stores.files.with_raw_response.retrieve_content(
file_id="file-abc123",
vector_store_id="vs_abc123",
@@ -319,7 +319,7 @@ def test_raw_response_retrieve_content(self, client: DigitaloceanGenaiSDK) -> No
@pytest.mark.skip()
@parametrize
- def test_streaming_response_retrieve_content(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_streaming_response_retrieve_content(self, client: ServerlessInferenceSDKProd) -> None:
with client.vector_stores.files.with_streaming_response.retrieve_content(
file_id="file-abc123",
vector_store_id="vs_abc123",
@@ -334,7 +334,7 @@ def test_streaming_response_retrieve_content(self, client: DigitaloceanGenaiSDK)
@pytest.mark.skip()
@parametrize
- def test_path_params_retrieve_content(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_path_params_retrieve_content(self, client: ServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `vector_store_id` but received ''"):
client.vector_stores.files.with_raw_response.retrieve_content(
file_id="file-abc123",
@@ -353,7 +353,7 @@ class TestAsyncFiles:
@pytest.mark.skip()
@parametrize
- async def test_method_create(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_create(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
file = await async_client.vector_stores.files.create(
vector_store_id="vs_abc123",
file_id="file_id",
@@ -362,7 +362,7 @@ async def test_method_create(self, async_client: AsyncDigitaloceanGenaiSDK) -> N
@pytest.mark.skip()
@parametrize
- async def test_method_create_with_all_params(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_create_with_all_params(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
file = await async_client.vector_stores.files.create(
vector_store_id="vs_abc123",
file_id="file_id",
@@ -373,7 +373,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncDigitaloce
@pytest.mark.skip()
@parametrize
- async def test_raw_response_create(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_create(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.vector_stores.files.with_raw_response.create(
vector_store_id="vs_abc123",
file_id="file_id",
@@ -386,7 +386,7 @@ async def test_raw_response_create(self, async_client: AsyncDigitaloceanGenaiSDK
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_create(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_create(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.vector_stores.files.with_streaming_response.create(
vector_store_id="vs_abc123",
file_id="file_id",
@@ -401,7 +401,7 @@ async def test_streaming_response_create(self, async_client: AsyncDigitaloceanGe
@pytest.mark.skip()
@parametrize
- async def test_path_params_create(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_path_params_create(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `vector_store_id` but received ''"):
await async_client.vector_stores.files.with_raw_response.create(
vector_store_id="",
@@ -410,7 +410,7 @@ async def test_path_params_create(self, async_client: AsyncDigitaloceanGenaiSDK)
@pytest.mark.skip()
@parametrize
- async def test_method_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_retrieve(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
file = await async_client.vector_stores.files.retrieve(
file_id="file-abc123",
vector_store_id="vs_abc123",
@@ -419,7 +419,7 @@ async def test_method_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) ->
@pytest.mark.skip()
@parametrize
- async def test_raw_response_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_retrieve(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.vector_stores.files.with_raw_response.retrieve(
file_id="file-abc123",
vector_store_id="vs_abc123",
@@ -432,7 +432,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncDigitaloceanGenaiS
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_retrieve(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.vector_stores.files.with_streaming_response.retrieve(
file_id="file-abc123",
vector_store_id="vs_abc123",
@@ -447,7 +447,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncDigitalocean
@pytest.mark.skip()
@parametrize
- async def test_path_params_retrieve(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_path_params_retrieve(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `vector_store_id` but received ''"):
await async_client.vector_stores.files.with_raw_response.retrieve(
file_id="file-abc123",
@@ -462,7 +462,7 @@ async def test_path_params_retrieve(self, async_client: AsyncDigitaloceanGenaiSD
@pytest.mark.skip()
@parametrize
- async def test_method_update(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_update(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
file = await async_client.vector_stores.files.update(
file_id="file-abc123",
vector_store_id="vs_abc123",
@@ -472,7 +472,7 @@ async def test_method_update(self, async_client: AsyncDigitaloceanGenaiSDK) -> N
@pytest.mark.skip()
@parametrize
- async def test_raw_response_update(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_update(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.vector_stores.files.with_raw_response.update(
file_id="file-abc123",
vector_store_id="vs_abc123",
@@ -486,7 +486,7 @@ async def test_raw_response_update(self, async_client: AsyncDigitaloceanGenaiSDK
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_update(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_update(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.vector_stores.files.with_streaming_response.update(
file_id="file-abc123",
vector_store_id="vs_abc123",
@@ -502,7 +502,7 @@ async def test_streaming_response_update(self, async_client: AsyncDigitaloceanGe
@pytest.mark.skip()
@parametrize
- async def test_path_params_update(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_path_params_update(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `vector_store_id` but received ''"):
await async_client.vector_stores.files.with_raw_response.update(
file_id="file-abc123",
@@ -519,7 +519,7 @@ async def test_path_params_update(self, async_client: AsyncDigitaloceanGenaiSDK)
@pytest.mark.skip()
@parametrize
- async def test_method_list(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_list(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
file = await async_client.vector_stores.files.list(
vector_store_id="vector_store_id",
)
@@ -527,7 +527,7 @@ async def test_method_list(self, async_client: AsyncDigitaloceanGenaiSDK) -> Non
@pytest.mark.skip()
@parametrize
- async def test_method_list_with_all_params(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_list_with_all_params(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
file = await async_client.vector_stores.files.list(
vector_store_id="vector_store_id",
after="after",
@@ -540,7 +540,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncDigitalocean
@pytest.mark.skip()
@parametrize
- async def test_raw_response_list(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_list(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.vector_stores.files.with_raw_response.list(
vector_store_id="vector_store_id",
)
@@ -552,7 +552,7 @@ async def test_raw_response_list(self, async_client: AsyncDigitaloceanGenaiSDK)
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_list(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_list(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.vector_stores.files.with_streaming_response.list(
vector_store_id="vector_store_id",
) as response:
@@ -566,7 +566,7 @@ async def test_streaming_response_list(self, async_client: AsyncDigitaloceanGena
@pytest.mark.skip()
@parametrize
- async def test_path_params_list(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_path_params_list(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `vector_store_id` but received ''"):
await async_client.vector_stores.files.with_raw_response.list(
vector_store_id="",
@@ -574,7 +574,7 @@ async def test_path_params_list(self, async_client: AsyncDigitaloceanGenaiSDK) -
@pytest.mark.skip()
@parametrize
- async def test_method_delete(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_delete(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
file = await async_client.vector_stores.files.delete(
file_id="file_id",
vector_store_id="vector_store_id",
@@ -583,7 +583,7 @@ async def test_method_delete(self, async_client: AsyncDigitaloceanGenaiSDK) -> N
@pytest.mark.skip()
@parametrize
- async def test_raw_response_delete(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_delete(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.vector_stores.files.with_raw_response.delete(
file_id="file_id",
vector_store_id="vector_store_id",
@@ -596,7 +596,7 @@ async def test_raw_response_delete(self, async_client: AsyncDigitaloceanGenaiSDK
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_delete(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_delete(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.vector_stores.files.with_streaming_response.delete(
file_id="file_id",
vector_store_id="vector_store_id",
@@ -611,7 +611,7 @@ async def test_streaming_response_delete(self, async_client: AsyncDigitaloceanGe
@pytest.mark.skip()
@parametrize
- async def test_path_params_delete(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_path_params_delete(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `vector_store_id` but received ''"):
await async_client.vector_stores.files.with_raw_response.delete(
file_id="file_id",
@@ -626,7 +626,7 @@ async def test_path_params_delete(self, async_client: AsyncDigitaloceanGenaiSDK)
@pytest.mark.skip()
@parametrize
- async def test_method_retrieve_content(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_method_retrieve_content(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
file = await async_client.vector_stores.files.retrieve_content(
file_id="file-abc123",
vector_store_id="vs_abc123",
@@ -635,7 +635,7 @@ async def test_method_retrieve_content(self, async_client: AsyncDigitaloceanGena
@pytest.mark.skip()
@parametrize
- async def test_raw_response_retrieve_content(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_raw_response_retrieve_content(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
response = await async_client.vector_stores.files.with_raw_response.retrieve_content(
file_id="file-abc123",
vector_store_id="vs_abc123",
@@ -648,7 +648,7 @@ async def test_raw_response_retrieve_content(self, async_client: AsyncDigitaloce
@pytest.mark.skip()
@parametrize
- async def test_streaming_response_retrieve_content(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_streaming_response_retrieve_content(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
async with async_client.vector_stores.files.with_streaming_response.retrieve_content(
file_id="file-abc123",
vector_store_id="vs_abc123",
@@ -663,7 +663,7 @@ async def test_streaming_response_retrieve_content(self, async_client: AsyncDigi
@pytest.mark.skip()
@parametrize
- async def test_path_params_retrieve_content(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ async def test_path_params_retrieve_content(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `vector_store_id` but received ''"):
await async_client.vector_stores.files.with_raw_response.retrieve_content(
file_id="file-abc123",
diff --git a/tests/conftest.py b/tests/conftest.py
index abd9aa51..bc8bd1a7 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -7,14 +7,14 @@
import pytest
from pytest_asyncio import is_async_test
-from digitalocean_genai_sdk import DigitaloceanGenaiSDK, AsyncDigitaloceanGenaiSDK
+from serverless_inference_sdk_prod import ServerlessInferenceSDKProd, AsyncServerlessInferenceSDKProd
if TYPE_CHECKING:
from _pytest.fixtures import FixtureRequest # pyright: ignore[reportPrivateImportUsage]
pytest.register_assert_rewrite("tests.utils")
-logging.getLogger("digitalocean_genai_sdk").setLevel(logging.DEBUG)
+logging.getLogger("serverless_inference_sdk_prod").setLevel(logging.DEBUG)
# automatically add `pytest.mark.asyncio()` to all of our async tests
@@ -32,22 +32,22 @@ def pytest_collection_modifyitems(items: list[pytest.Function]) -> None:
@pytest.fixture(scope="session")
-def client(request: FixtureRequest) -> Iterator[DigitaloceanGenaiSDK]:
+def client(request: FixtureRequest) -> Iterator[ServerlessInferenceSDKProd]:
strict = getattr(request, "param", True)
if not isinstance(strict, bool):
raise TypeError(f"Unexpected fixture parameter type {type(strict)}, expected {bool}")
- with DigitaloceanGenaiSDK(base_url=base_url, api_key=api_key, _strict_response_validation=strict) as client:
+ with ServerlessInferenceSDKProd(base_url=base_url, api_key=api_key, _strict_response_validation=strict) as client:
yield client
@pytest.fixture(scope="session")
-async def async_client(request: FixtureRequest) -> AsyncIterator[AsyncDigitaloceanGenaiSDK]:
+async def async_client(request: FixtureRequest) -> AsyncIterator[AsyncServerlessInferenceSDKProd]:
strict = getattr(request, "param", True)
if not isinstance(strict, bool):
raise TypeError(f"Unexpected fixture parameter type {type(strict)}, expected {bool}")
- async with AsyncDigitaloceanGenaiSDK(
+ async with AsyncServerlessInferenceSDKProd(
base_url=base_url, api_key=api_key, _strict_response_validation=strict
) as client:
yield client
diff --git a/tests/test_client.py b/tests/test_client.py
index c13403e3..93c68aa7 100644
--- a/tests/test_client.py
+++ b/tests/test_client.py
@@ -21,17 +21,21 @@
from respx import MockRouter
from pydantic import ValidationError
-from digitalocean_genai_sdk import DigitaloceanGenaiSDK, AsyncDigitaloceanGenaiSDK, APIResponseValidationError
-from digitalocean_genai_sdk._types import Omit
-from digitalocean_genai_sdk._models import BaseModel, FinalRequestOptions
-from digitalocean_genai_sdk._constants import RAW_RESPONSE_HEADER
-from digitalocean_genai_sdk._exceptions import (
+from serverless_inference_sdk_prod import (
+ APIResponseValidationError,
+ ServerlessInferenceSDKProd,
+ AsyncServerlessInferenceSDKProd,
+)
+from serverless_inference_sdk_prod._types import Omit
+from serverless_inference_sdk_prod._models import BaseModel, FinalRequestOptions
+from serverless_inference_sdk_prod._constants import RAW_RESPONSE_HEADER
+from serverless_inference_sdk_prod._exceptions import (
APIStatusError,
APITimeoutError,
- DigitaloceanGenaiSDKError,
APIResponseValidationError,
+ ServerlessInferenceSDKProdError,
)
-from digitalocean_genai_sdk._base_client import (
+from serverless_inference_sdk_prod._base_client import (
DEFAULT_TIMEOUT,
HTTPX_DEFAULT_TIMEOUT,
BaseClient,
@@ -54,7 +58,7 @@ def _low_retry_timeout(*_args: Any, **_kwargs: Any) -> float:
return 0.1
-def _get_open_connections(client: DigitaloceanGenaiSDK | AsyncDigitaloceanGenaiSDK) -> int:
+def _get_open_connections(client: ServerlessInferenceSDKProd | AsyncServerlessInferenceSDKProd) -> int:
transport = client._client._transport
assert isinstance(transport, httpx.HTTPTransport) or isinstance(transport, httpx.AsyncHTTPTransport)
@@ -62,8 +66,8 @@ def _get_open_connections(client: DigitaloceanGenaiSDK | AsyncDigitaloceanGenaiS
return len(pool._requests)
-class TestDigitaloceanGenaiSDK:
- client = DigitaloceanGenaiSDK(base_url=base_url, api_key=api_key, _strict_response_validation=True)
+class TestServerlessInferenceSDKProd:
+ client = ServerlessInferenceSDKProd(base_url=base_url, api_key=api_key, _strict_response_validation=True)
@pytest.mark.respx(base_url=base_url)
def test_raw_response(self, respx_mock: MockRouter) -> None:
@@ -110,7 +114,7 @@ def test_copy_default_options(self) -> None:
assert isinstance(self.client.timeout, httpx.Timeout)
def test_copy_default_headers(self) -> None:
- client = DigitaloceanGenaiSDK(
+ client = ServerlessInferenceSDKProd(
base_url=base_url, api_key=api_key, _strict_response_validation=True, default_headers={"X-Foo": "bar"}
)
assert client.default_headers["X-Foo"] == "bar"
@@ -144,7 +148,7 @@ def test_copy_default_headers(self) -> None:
client.copy(set_default_headers={}, default_headers={"X-Foo": "Bar"})
def test_copy_default_query(self) -> None:
- client = DigitaloceanGenaiSDK(
+ client = ServerlessInferenceSDKProd(
base_url=base_url, api_key=api_key, _strict_response_validation=True, default_query={"foo": "bar"}
)
assert _get_params(client)["foo"] == "bar"
@@ -235,10 +239,10 @@ def add_leak(leaks: list[tracemalloc.StatisticDiff], diff: tracemalloc.Statistic
# to_raw_response_wrapper leaks through the @functools.wraps() decorator.
#
# removing the decorator fixes the leak for reasons we don't understand.
- "digitalocean_genai_sdk/_legacy_response.py",
- "digitalocean_genai_sdk/_response.py",
+ "serverless_inference_sdk_prod/_legacy_response.py",
+ "serverless_inference_sdk_prod/_response.py",
# pydantic.BaseModel.model_dump || pydantic.BaseModel.dict leak memory for some reason.
- "digitalocean_genai_sdk/_compat.py",
+ "serverless_inference_sdk_prod/_compat.py",
# Standard library leaks we don't care about.
"/logging/__init__.py",
]
@@ -269,7 +273,7 @@ def test_request_timeout(self) -> None:
assert timeout == httpx.Timeout(100.0)
def test_client_timeout_option(self) -> None:
- client = DigitaloceanGenaiSDK(
+ client = ServerlessInferenceSDKProd(
base_url=base_url, api_key=api_key, _strict_response_validation=True, timeout=httpx.Timeout(0)
)
@@ -280,7 +284,7 @@ def test_client_timeout_option(self) -> None:
def test_http_client_timeout_option(self) -> None:
# custom timeout given to the httpx client should be used
with httpx.Client(timeout=None) as http_client:
- client = DigitaloceanGenaiSDK(
+ client = ServerlessInferenceSDKProd(
base_url=base_url, api_key=api_key, _strict_response_validation=True, http_client=http_client
)
@@ -290,7 +294,7 @@ def test_http_client_timeout_option(self) -> None:
# no timeout given to the httpx client should not use the httpx default
with httpx.Client() as http_client:
- client = DigitaloceanGenaiSDK(
+ client = ServerlessInferenceSDKProd(
base_url=base_url, api_key=api_key, _strict_response_validation=True, http_client=http_client
)
@@ -300,7 +304,7 @@ def test_http_client_timeout_option(self) -> None:
# explicitly passing the default timeout currently results in it being ignored
with httpx.Client(timeout=HTTPX_DEFAULT_TIMEOUT) as http_client:
- client = DigitaloceanGenaiSDK(
+ client = ServerlessInferenceSDKProd(
base_url=base_url, api_key=api_key, _strict_response_validation=True, http_client=http_client
)
@@ -311,7 +315,7 @@ def test_http_client_timeout_option(self) -> None:
async def test_invalid_http_client(self) -> None:
with pytest.raises(TypeError, match="Invalid `http_client` arg"):
async with httpx.AsyncClient() as http_client:
- DigitaloceanGenaiSDK(
+ ServerlessInferenceSDKProd(
base_url=base_url,
api_key=api_key,
_strict_response_validation=True,
@@ -319,14 +323,14 @@ async def test_invalid_http_client(self) -> None:
)
def test_default_headers_option(self) -> None:
- client = DigitaloceanGenaiSDK(
+ client = ServerlessInferenceSDKProd(
base_url=base_url, api_key=api_key, _strict_response_validation=True, default_headers={"X-Foo": "bar"}
)
request = client._build_request(FinalRequestOptions(method="get", url="/foo"))
assert request.headers.get("x-foo") == "bar"
assert request.headers.get("x-stainless-lang") == "python"
- client2 = DigitaloceanGenaiSDK(
+ client2 = ServerlessInferenceSDKProd(
base_url=base_url,
api_key=api_key,
_strict_response_validation=True,
@@ -340,17 +344,17 @@ def test_default_headers_option(self) -> None:
assert request.headers.get("x-stainless-lang") == "my-overriding-header"
def test_validate_headers(self) -> None:
- client = DigitaloceanGenaiSDK(base_url=base_url, api_key=api_key, _strict_response_validation=True)
+ client = ServerlessInferenceSDKProd(base_url=base_url, api_key=api_key, _strict_response_validation=True)
request = client._build_request(FinalRequestOptions(method="get", url="/foo"))
assert request.headers.get("Authorization") == f"Bearer {api_key}"
- with pytest.raises(DigitaloceanGenaiSDKError):
- with update_env(**{"DIGITALOCEAN_GENAI_SDK_API_KEY": Omit()}):
- client2 = DigitaloceanGenaiSDK(base_url=base_url, api_key=None, _strict_response_validation=True)
+ with pytest.raises(ServerlessInferenceSDKProdError):
+ with update_env(**{"SERVERLESS_INFERENCE_SDK_PROD_API_KEY": Omit()}):
+ client2 = ServerlessInferenceSDKProd(base_url=base_url, api_key=None, _strict_response_validation=True)
_ = client2
def test_default_query_option(self) -> None:
- client = DigitaloceanGenaiSDK(
+ client = ServerlessInferenceSDKProd(
base_url=base_url, api_key=api_key, _strict_response_validation=True, default_query={"query_param": "bar"}
)
request = client._build_request(FinalRequestOptions(method="get", url="/foo"))
@@ -464,7 +468,7 @@ def test_request_extra_query(self) -> None:
params = dict(request.url.params)
assert params == {"foo": "2"}
- def test_multipart_repeating_array(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_multipart_repeating_array(self, client: ServerlessInferenceSDKProd) -> None:
request = client._build_request(
FinalRequestOptions.construct(
method="get",
@@ -551,7 +555,7 @@ class Model(BaseModel):
assert response.foo == 2
def test_base_url_setter(self) -> None:
- client = DigitaloceanGenaiSDK(
+ client = ServerlessInferenceSDKProd(
base_url="https://example.com/from_init", api_key=api_key, _strict_response_validation=True
)
assert client.base_url == "https://example.com/from_init/"
@@ -561,17 +565,17 @@ def test_base_url_setter(self) -> None:
assert client.base_url == "https://example.com/from_setter/"
def test_base_url_env(self) -> None:
- with update_env(DIGITALOCEAN_GENAI_SDK_BASE_URL="http://localhost:5000/from/env"):
- client = DigitaloceanGenaiSDK(api_key=api_key, _strict_response_validation=True)
+ with update_env(SERVERLESS_INFERENCE_SDK_PROD_BASE_URL="http://localhost:5000/from/env"):
+ client = ServerlessInferenceSDKProd(api_key=api_key, _strict_response_validation=True)
assert client.base_url == "http://localhost:5000/from/env/"
@pytest.mark.parametrize(
"client",
[
- DigitaloceanGenaiSDK(
+ ServerlessInferenceSDKProd(
base_url="http://localhost:5000/custom/path/", api_key=api_key, _strict_response_validation=True
),
- DigitaloceanGenaiSDK(
+ ServerlessInferenceSDKProd(
base_url="http://localhost:5000/custom/path/",
api_key=api_key,
_strict_response_validation=True,
@@ -580,7 +584,7 @@ def test_base_url_env(self) -> None:
],
ids=["standard", "custom http client"],
)
- def test_base_url_trailing_slash(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_base_url_trailing_slash(self, client: ServerlessInferenceSDKProd) -> None:
request = client._build_request(
FinalRequestOptions(
method="post",
@@ -593,10 +597,10 @@ def test_base_url_trailing_slash(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.parametrize(
"client",
[
- DigitaloceanGenaiSDK(
+ ServerlessInferenceSDKProd(
base_url="http://localhost:5000/custom/path/", api_key=api_key, _strict_response_validation=True
),
- DigitaloceanGenaiSDK(
+ ServerlessInferenceSDKProd(
base_url="http://localhost:5000/custom/path/",
api_key=api_key,
_strict_response_validation=True,
@@ -605,7 +609,7 @@ def test_base_url_trailing_slash(self, client: DigitaloceanGenaiSDK) -> None:
],
ids=["standard", "custom http client"],
)
- def test_base_url_no_trailing_slash(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_base_url_no_trailing_slash(self, client: ServerlessInferenceSDKProd) -> None:
request = client._build_request(
FinalRequestOptions(
method="post",
@@ -618,10 +622,10 @@ def test_base_url_no_trailing_slash(self, client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.parametrize(
"client",
[
- DigitaloceanGenaiSDK(
+ ServerlessInferenceSDKProd(
base_url="http://localhost:5000/custom/path/", api_key=api_key, _strict_response_validation=True
),
- DigitaloceanGenaiSDK(
+ ServerlessInferenceSDKProd(
base_url="http://localhost:5000/custom/path/",
api_key=api_key,
_strict_response_validation=True,
@@ -630,7 +634,7 @@ def test_base_url_no_trailing_slash(self, client: DigitaloceanGenaiSDK) -> None:
],
ids=["standard", "custom http client"],
)
- def test_absolute_request_url(self, client: DigitaloceanGenaiSDK) -> None:
+ def test_absolute_request_url(self, client: ServerlessInferenceSDKProd) -> None:
request = client._build_request(
FinalRequestOptions(
method="post",
@@ -641,7 +645,7 @@ def test_absolute_request_url(self, client: DigitaloceanGenaiSDK) -> None:
assert request.url == "https://myapi.com/foo"
def test_copied_client_does_not_close_http(self) -> None:
- client = DigitaloceanGenaiSDK(base_url=base_url, api_key=api_key, _strict_response_validation=True)
+ client = ServerlessInferenceSDKProd(base_url=base_url, api_key=api_key, _strict_response_validation=True)
assert not client.is_closed()
copied = client.copy()
@@ -652,7 +656,7 @@ def test_copied_client_does_not_close_http(self) -> None:
assert not client.is_closed()
def test_client_context_manager(self) -> None:
- client = DigitaloceanGenaiSDK(base_url=base_url, api_key=api_key, _strict_response_validation=True)
+ client = ServerlessInferenceSDKProd(base_url=base_url, api_key=api_key, _strict_response_validation=True)
with client as c2:
assert c2 is client
assert not c2.is_closed()
@@ -673,7 +677,7 @@ class Model(BaseModel):
def test_client_max_retries_validation(self) -> None:
with pytest.raises(TypeError, match=r"max_retries cannot be None"):
- DigitaloceanGenaiSDK(
+ ServerlessInferenceSDKProd(
base_url=base_url, api_key=api_key, _strict_response_validation=True, max_retries=cast(Any, None)
)
@@ -684,12 +688,12 @@ class Model(BaseModel):
respx_mock.get("/foo").mock(return_value=httpx.Response(200, text="my-custom-format"))
- strict_client = DigitaloceanGenaiSDK(base_url=base_url, api_key=api_key, _strict_response_validation=True)
+ strict_client = ServerlessInferenceSDKProd(base_url=base_url, api_key=api_key, _strict_response_validation=True)
with pytest.raises(APIResponseValidationError):
strict_client.get("/foo", cast_to=Model)
- client = DigitaloceanGenaiSDK(base_url=base_url, api_key=api_key, _strict_response_validation=False)
+ client = ServerlessInferenceSDKProd(base_url=base_url, api_key=api_key, _strict_response_validation=False)
response = client.get("/foo", cast_to=Model)
assert isinstance(response, str) # type: ignore[unreachable]
@@ -717,14 +721,14 @@ class Model(BaseModel):
)
@mock.patch("time.time", mock.MagicMock(return_value=1696004797))
def test_parse_retry_after_header(self, remaining_retries: int, retry_after: str, timeout: float) -> None:
- client = DigitaloceanGenaiSDK(base_url=base_url, api_key=api_key, _strict_response_validation=True)
+ client = ServerlessInferenceSDKProd(base_url=base_url, api_key=api_key, _strict_response_validation=True)
headers = httpx.Headers({"retry-after": retry_after})
options = FinalRequestOptions(method="get", url="/foo", max_retries=3)
calculated = client._calculate_retry_timeout(remaining_retries, options, headers)
assert calculated == pytest.approx(timeout, 0.5 * 0.875) # pyright: ignore[reportUnknownMemberType]
- @mock.patch("digitalocean_genai_sdk._base_client.BaseClient._calculate_retry_timeout", _low_retry_timeout)
+ @mock.patch("serverless_inference_sdk_prod._base_client.BaseClient._calculate_retry_timeout", _low_retry_timeout)
@pytest.mark.respx(base_url=base_url)
def test_retrying_timeout_errors_doesnt_leak(self, respx_mock: MockRouter) -> None:
respx_mock.get("/assistants").mock(side_effect=httpx.TimeoutException("Test timeout error"))
@@ -734,7 +738,7 @@ def test_retrying_timeout_errors_doesnt_leak(self, respx_mock: MockRouter) -> No
assert _get_open_connections(self.client) == 0
- @mock.patch("digitalocean_genai_sdk._base_client.BaseClient._calculate_retry_timeout", _low_retry_timeout)
+ @mock.patch("serverless_inference_sdk_prod._base_client.BaseClient._calculate_retry_timeout", _low_retry_timeout)
@pytest.mark.respx(base_url=base_url)
def test_retrying_status_errors_doesnt_leak(self, respx_mock: MockRouter) -> None:
respx_mock.get("/assistants").mock(return_value=httpx.Response(500))
@@ -745,12 +749,12 @@ def test_retrying_status_errors_doesnt_leak(self, respx_mock: MockRouter) -> Non
assert _get_open_connections(self.client) == 0
@pytest.mark.parametrize("failures_before_success", [0, 2, 4])
- @mock.patch("digitalocean_genai_sdk._base_client.BaseClient._calculate_retry_timeout", _low_retry_timeout)
+ @mock.patch("serverless_inference_sdk_prod._base_client.BaseClient._calculate_retry_timeout", _low_retry_timeout)
@pytest.mark.respx(base_url=base_url)
@pytest.mark.parametrize("failure_mode", ["status", "exception"])
def test_retries_taken(
self,
- client: DigitaloceanGenaiSDK,
+ client: ServerlessInferenceSDKProd,
failures_before_success: int,
failure_mode: Literal["status", "exception"],
respx_mock: MockRouter,
@@ -776,10 +780,10 @@ def retry_handler(_request: httpx.Request) -> httpx.Response:
assert int(response.http_request.headers.get("x-stainless-retry-count")) == failures_before_success
@pytest.mark.parametrize("failures_before_success", [0, 2, 4])
- @mock.patch("digitalocean_genai_sdk._base_client.BaseClient._calculate_retry_timeout", _low_retry_timeout)
+ @mock.patch("serverless_inference_sdk_prod._base_client.BaseClient._calculate_retry_timeout", _low_retry_timeout)
@pytest.mark.respx(base_url=base_url)
def test_omit_retry_count_header(
- self, client: DigitaloceanGenaiSDK, failures_before_success: int, respx_mock: MockRouter
+ self, client: ServerlessInferenceSDKProd, failures_before_success: int, respx_mock: MockRouter
) -> None:
client = client.with_options(max_retries=4)
@@ -799,10 +803,10 @@ def retry_handler(_request: httpx.Request) -> httpx.Response:
assert len(response.http_request.headers.get_list("x-stainless-retry-count")) == 0
@pytest.mark.parametrize("failures_before_success", [0, 2, 4])
- @mock.patch("digitalocean_genai_sdk._base_client.BaseClient._calculate_retry_timeout", _low_retry_timeout)
+ @mock.patch("serverless_inference_sdk_prod._base_client.BaseClient._calculate_retry_timeout", _low_retry_timeout)
@pytest.mark.respx(base_url=base_url)
def test_overwrite_retry_count_header(
- self, client: DigitaloceanGenaiSDK, failures_before_success: int, respx_mock: MockRouter
+ self, client: ServerlessInferenceSDKProd, failures_before_success: int, respx_mock: MockRouter
) -> None:
client = client.with_options(max_retries=4)
@@ -821,9 +825,36 @@ def retry_handler(_request: httpx.Request) -> httpx.Response:
assert response.http_request.headers.get("x-stainless-retry-count") == "42"
+ @pytest.mark.respx(base_url=base_url)
+ def test_follow_redirects(self, respx_mock: MockRouter) -> None:
+ # Test that the default follow_redirects=True allows following redirects
+ respx_mock.post("/redirect").mock(
+ return_value=httpx.Response(302, headers={"Location": f"{base_url}/redirected"})
+ )
+ respx_mock.get("/redirected").mock(return_value=httpx.Response(200, json={"status": "ok"}))
+
+ response = self.client.post("/redirect", body={"key": "value"}, cast_to=httpx.Response)
+ assert response.status_code == 200
+ assert response.json() == {"status": "ok"}
+
+ @pytest.mark.respx(base_url=base_url)
+ def test_follow_redirects_disabled(self, respx_mock: MockRouter) -> None:
+ # Test that follow_redirects=False prevents following redirects
+ respx_mock.post("/redirect").mock(
+ return_value=httpx.Response(302, headers={"Location": f"{base_url}/redirected"})
+ )
+
+ with pytest.raises(APIStatusError) as exc_info:
+ self.client.post(
+ "/redirect", body={"key": "value"}, options={"follow_redirects": False}, cast_to=httpx.Response
+ )
+
+ assert exc_info.value.response.status_code == 302
+ assert exc_info.value.response.headers["Location"] == f"{base_url}/redirected"
+
-class TestAsyncDigitaloceanGenaiSDK:
- client = AsyncDigitaloceanGenaiSDK(base_url=base_url, api_key=api_key, _strict_response_validation=True)
+class TestAsyncServerlessInferenceSDKProd:
+ client = AsyncServerlessInferenceSDKProd(base_url=base_url, api_key=api_key, _strict_response_validation=True)
@pytest.mark.respx(base_url=base_url)
@pytest.mark.asyncio
@@ -872,7 +903,7 @@ def test_copy_default_options(self) -> None:
assert isinstance(self.client.timeout, httpx.Timeout)
def test_copy_default_headers(self) -> None:
- client = AsyncDigitaloceanGenaiSDK(
+ client = AsyncServerlessInferenceSDKProd(
base_url=base_url, api_key=api_key, _strict_response_validation=True, default_headers={"X-Foo": "bar"}
)
assert client.default_headers["X-Foo"] == "bar"
@@ -906,7 +937,7 @@ def test_copy_default_headers(self) -> None:
client.copy(set_default_headers={}, default_headers={"X-Foo": "Bar"})
def test_copy_default_query(self) -> None:
- client = AsyncDigitaloceanGenaiSDK(
+ client = AsyncServerlessInferenceSDKProd(
base_url=base_url, api_key=api_key, _strict_response_validation=True, default_query={"foo": "bar"}
)
assert _get_params(client)["foo"] == "bar"
@@ -997,10 +1028,10 @@ def add_leak(leaks: list[tracemalloc.StatisticDiff], diff: tracemalloc.Statistic
# to_raw_response_wrapper leaks through the @functools.wraps() decorator.
#
# removing the decorator fixes the leak for reasons we don't understand.
- "digitalocean_genai_sdk/_legacy_response.py",
- "digitalocean_genai_sdk/_response.py",
+ "serverless_inference_sdk_prod/_legacy_response.py",
+ "serverless_inference_sdk_prod/_response.py",
# pydantic.BaseModel.model_dump || pydantic.BaseModel.dict leak memory for some reason.
- "digitalocean_genai_sdk/_compat.py",
+ "serverless_inference_sdk_prod/_compat.py",
# Standard library leaks we don't care about.
"/logging/__init__.py",
]
@@ -1031,7 +1062,7 @@ async def test_request_timeout(self) -> None:
assert timeout == httpx.Timeout(100.0)
async def test_client_timeout_option(self) -> None:
- client = AsyncDigitaloceanGenaiSDK(
+ client = AsyncServerlessInferenceSDKProd(
base_url=base_url, api_key=api_key, _strict_response_validation=True, timeout=httpx.Timeout(0)
)
@@ -1042,7 +1073,7 @@ async def test_client_timeout_option(self) -> None:
async def test_http_client_timeout_option(self) -> None:
# custom timeout given to the httpx client should be used
async with httpx.AsyncClient(timeout=None) as http_client:
- client = AsyncDigitaloceanGenaiSDK(
+ client = AsyncServerlessInferenceSDKProd(
base_url=base_url, api_key=api_key, _strict_response_validation=True, http_client=http_client
)
@@ -1052,7 +1083,7 @@ async def test_http_client_timeout_option(self) -> None:
# no timeout given to the httpx client should not use the httpx default
async with httpx.AsyncClient() as http_client:
- client = AsyncDigitaloceanGenaiSDK(
+ client = AsyncServerlessInferenceSDKProd(
base_url=base_url, api_key=api_key, _strict_response_validation=True, http_client=http_client
)
@@ -1062,7 +1093,7 @@ async def test_http_client_timeout_option(self) -> None:
# explicitly passing the default timeout currently results in it being ignored
async with httpx.AsyncClient(timeout=HTTPX_DEFAULT_TIMEOUT) as http_client:
- client = AsyncDigitaloceanGenaiSDK(
+ client = AsyncServerlessInferenceSDKProd(
base_url=base_url, api_key=api_key, _strict_response_validation=True, http_client=http_client
)
@@ -1073,7 +1104,7 @@ async def test_http_client_timeout_option(self) -> None:
def test_invalid_http_client(self) -> None:
with pytest.raises(TypeError, match="Invalid `http_client` arg"):
with httpx.Client() as http_client:
- AsyncDigitaloceanGenaiSDK(
+ AsyncServerlessInferenceSDKProd(
base_url=base_url,
api_key=api_key,
_strict_response_validation=True,
@@ -1081,14 +1112,14 @@ def test_invalid_http_client(self) -> None:
)
def test_default_headers_option(self) -> None:
- client = AsyncDigitaloceanGenaiSDK(
+ client = AsyncServerlessInferenceSDKProd(
base_url=base_url, api_key=api_key, _strict_response_validation=True, default_headers={"X-Foo": "bar"}
)
request = client._build_request(FinalRequestOptions(method="get", url="/foo"))
assert request.headers.get("x-foo") == "bar"
assert request.headers.get("x-stainless-lang") == "python"
- client2 = AsyncDigitaloceanGenaiSDK(
+ client2 = AsyncServerlessInferenceSDKProd(
base_url=base_url,
api_key=api_key,
_strict_response_validation=True,
@@ -1102,17 +1133,19 @@ def test_default_headers_option(self) -> None:
assert request.headers.get("x-stainless-lang") == "my-overriding-header"
def test_validate_headers(self) -> None:
- client = AsyncDigitaloceanGenaiSDK(base_url=base_url, api_key=api_key, _strict_response_validation=True)
+ client = AsyncServerlessInferenceSDKProd(base_url=base_url, api_key=api_key, _strict_response_validation=True)
request = client._build_request(FinalRequestOptions(method="get", url="/foo"))
assert request.headers.get("Authorization") == f"Bearer {api_key}"
- with pytest.raises(DigitaloceanGenaiSDKError):
- with update_env(**{"DIGITALOCEAN_GENAI_SDK_API_KEY": Omit()}):
- client2 = AsyncDigitaloceanGenaiSDK(base_url=base_url, api_key=None, _strict_response_validation=True)
+ with pytest.raises(ServerlessInferenceSDKProdError):
+ with update_env(**{"SERVERLESS_INFERENCE_SDK_PROD_API_KEY": Omit()}):
+ client2 = AsyncServerlessInferenceSDKProd(
+ base_url=base_url, api_key=None, _strict_response_validation=True
+ )
_ = client2
def test_default_query_option(self) -> None:
- client = AsyncDigitaloceanGenaiSDK(
+ client = AsyncServerlessInferenceSDKProd(
base_url=base_url, api_key=api_key, _strict_response_validation=True, default_query={"query_param": "bar"}
)
request = client._build_request(FinalRequestOptions(method="get", url="/foo"))
@@ -1226,7 +1259,7 @@ def test_request_extra_query(self) -> None:
params = dict(request.url.params)
assert params == {"foo": "2"}
- def test_multipart_repeating_array(self, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+ def test_multipart_repeating_array(self, async_client: AsyncServerlessInferenceSDKProd) -> None:
request = async_client._build_request(
FinalRequestOptions.construct(
method="get",
@@ -1313,7 +1346,7 @@ class Model(BaseModel):
assert response.foo == 2
def test_base_url_setter(self) -> None:
- client = AsyncDigitaloceanGenaiSDK(
+ client = AsyncServerlessInferenceSDKProd(
base_url="https://example.com/from_init", api_key=api_key, _strict_response_validation=True
)
assert client.base_url == "https://example.com/from_init/"
@@ -1323,17 +1356,17 @@ def test_base_url_setter(self) -> None:
assert client.base_url == "https://example.com/from_setter/"
def test_base_url_env(self) -> None:
- with update_env(DIGITALOCEAN_GENAI_SDK_BASE_URL="http://localhost:5000/from/env"):
- client = AsyncDigitaloceanGenaiSDK(api_key=api_key, _strict_response_validation=True)
+ with update_env(SERVERLESS_INFERENCE_SDK_PROD_BASE_URL="http://localhost:5000/from/env"):
+ client = AsyncServerlessInferenceSDKProd(api_key=api_key, _strict_response_validation=True)
assert client.base_url == "http://localhost:5000/from/env/"
@pytest.mark.parametrize(
"client",
[
- AsyncDigitaloceanGenaiSDK(
+ AsyncServerlessInferenceSDKProd(
base_url="http://localhost:5000/custom/path/", api_key=api_key, _strict_response_validation=True
),
- AsyncDigitaloceanGenaiSDK(
+ AsyncServerlessInferenceSDKProd(
base_url="http://localhost:5000/custom/path/",
api_key=api_key,
_strict_response_validation=True,
@@ -1342,7 +1375,7 @@ def test_base_url_env(self) -> None:
],
ids=["standard", "custom http client"],
)
- def test_base_url_trailing_slash(self, client: AsyncDigitaloceanGenaiSDK) -> None:
+ def test_base_url_trailing_slash(self, client: AsyncServerlessInferenceSDKProd) -> None:
request = client._build_request(
FinalRequestOptions(
method="post",
@@ -1355,10 +1388,10 @@ def test_base_url_trailing_slash(self, client: AsyncDigitaloceanGenaiSDK) -> Non
@pytest.mark.parametrize(
"client",
[
- AsyncDigitaloceanGenaiSDK(
+ AsyncServerlessInferenceSDKProd(
base_url="http://localhost:5000/custom/path/", api_key=api_key, _strict_response_validation=True
),
- AsyncDigitaloceanGenaiSDK(
+ AsyncServerlessInferenceSDKProd(
base_url="http://localhost:5000/custom/path/",
api_key=api_key,
_strict_response_validation=True,
@@ -1367,7 +1400,7 @@ def test_base_url_trailing_slash(self, client: AsyncDigitaloceanGenaiSDK) -> Non
],
ids=["standard", "custom http client"],
)
- def test_base_url_no_trailing_slash(self, client: AsyncDigitaloceanGenaiSDK) -> None:
+ def test_base_url_no_trailing_slash(self, client: AsyncServerlessInferenceSDKProd) -> None:
request = client._build_request(
FinalRequestOptions(
method="post",
@@ -1380,10 +1413,10 @@ def test_base_url_no_trailing_slash(self, client: AsyncDigitaloceanGenaiSDK) ->
@pytest.mark.parametrize(
"client",
[
- AsyncDigitaloceanGenaiSDK(
+ AsyncServerlessInferenceSDKProd(
base_url="http://localhost:5000/custom/path/", api_key=api_key, _strict_response_validation=True
),
- AsyncDigitaloceanGenaiSDK(
+ AsyncServerlessInferenceSDKProd(
base_url="http://localhost:5000/custom/path/",
api_key=api_key,
_strict_response_validation=True,
@@ -1392,7 +1425,7 @@ def test_base_url_no_trailing_slash(self, client: AsyncDigitaloceanGenaiSDK) ->
],
ids=["standard", "custom http client"],
)
- def test_absolute_request_url(self, client: AsyncDigitaloceanGenaiSDK) -> None:
+ def test_absolute_request_url(self, client: AsyncServerlessInferenceSDKProd) -> None:
request = client._build_request(
FinalRequestOptions(
method="post",
@@ -1403,7 +1436,7 @@ def test_absolute_request_url(self, client: AsyncDigitaloceanGenaiSDK) -> None:
assert request.url == "https://myapi.com/foo"
async def test_copied_client_does_not_close_http(self) -> None:
- client = AsyncDigitaloceanGenaiSDK(base_url=base_url, api_key=api_key, _strict_response_validation=True)
+ client = AsyncServerlessInferenceSDKProd(base_url=base_url, api_key=api_key, _strict_response_validation=True)
assert not client.is_closed()
copied = client.copy()
@@ -1415,7 +1448,7 @@ async def test_copied_client_does_not_close_http(self) -> None:
assert not client.is_closed()
async def test_client_context_manager(self) -> None:
- client = AsyncDigitaloceanGenaiSDK(base_url=base_url, api_key=api_key, _strict_response_validation=True)
+ client = AsyncServerlessInferenceSDKProd(base_url=base_url, api_key=api_key, _strict_response_validation=True)
async with client as c2:
assert c2 is client
assert not c2.is_closed()
@@ -1437,7 +1470,7 @@ class Model(BaseModel):
async def test_client_max_retries_validation(self) -> None:
with pytest.raises(TypeError, match=r"max_retries cannot be None"):
- AsyncDigitaloceanGenaiSDK(
+ AsyncServerlessInferenceSDKProd(
base_url=base_url, api_key=api_key, _strict_response_validation=True, max_retries=cast(Any, None)
)
@@ -1449,12 +1482,14 @@ class Model(BaseModel):
respx_mock.get("/foo").mock(return_value=httpx.Response(200, text="my-custom-format"))
- strict_client = AsyncDigitaloceanGenaiSDK(base_url=base_url, api_key=api_key, _strict_response_validation=True)
+ strict_client = AsyncServerlessInferenceSDKProd(
+ base_url=base_url, api_key=api_key, _strict_response_validation=True
+ )
with pytest.raises(APIResponseValidationError):
await strict_client.get("/foo", cast_to=Model)
- client = AsyncDigitaloceanGenaiSDK(base_url=base_url, api_key=api_key, _strict_response_validation=False)
+ client = AsyncServerlessInferenceSDKProd(base_url=base_url, api_key=api_key, _strict_response_validation=False)
response = await client.get("/foo", cast_to=Model)
assert isinstance(response, str) # type: ignore[unreachable]
@@ -1483,14 +1518,14 @@ class Model(BaseModel):
@mock.patch("time.time", mock.MagicMock(return_value=1696004797))
@pytest.mark.asyncio
async def test_parse_retry_after_header(self, remaining_retries: int, retry_after: str, timeout: float) -> None:
- client = AsyncDigitaloceanGenaiSDK(base_url=base_url, api_key=api_key, _strict_response_validation=True)
+ client = AsyncServerlessInferenceSDKProd(base_url=base_url, api_key=api_key, _strict_response_validation=True)
headers = httpx.Headers({"retry-after": retry_after})
options = FinalRequestOptions(method="get", url="/foo", max_retries=3)
calculated = client._calculate_retry_timeout(remaining_retries, options, headers)
assert calculated == pytest.approx(timeout, 0.5 * 0.875) # pyright: ignore[reportUnknownMemberType]
- @mock.patch("digitalocean_genai_sdk._base_client.BaseClient._calculate_retry_timeout", _low_retry_timeout)
+ @mock.patch("serverless_inference_sdk_prod._base_client.BaseClient._calculate_retry_timeout", _low_retry_timeout)
@pytest.mark.respx(base_url=base_url)
async def test_retrying_timeout_errors_doesnt_leak(self, respx_mock: MockRouter) -> None:
respx_mock.get("/assistants").mock(side_effect=httpx.TimeoutException("Test timeout error"))
@@ -1502,7 +1537,7 @@ async def test_retrying_timeout_errors_doesnt_leak(self, respx_mock: MockRouter)
assert _get_open_connections(self.client) == 0
- @mock.patch("digitalocean_genai_sdk._base_client.BaseClient._calculate_retry_timeout", _low_retry_timeout)
+ @mock.patch("serverless_inference_sdk_prod._base_client.BaseClient._calculate_retry_timeout", _low_retry_timeout)
@pytest.mark.respx(base_url=base_url)
async def test_retrying_status_errors_doesnt_leak(self, respx_mock: MockRouter) -> None:
respx_mock.get("/assistants").mock(return_value=httpx.Response(500))
@@ -1515,13 +1550,13 @@ async def test_retrying_status_errors_doesnt_leak(self, respx_mock: MockRouter)
assert _get_open_connections(self.client) == 0
@pytest.mark.parametrize("failures_before_success", [0, 2, 4])
- @mock.patch("digitalocean_genai_sdk._base_client.BaseClient._calculate_retry_timeout", _low_retry_timeout)
+ @mock.patch("serverless_inference_sdk_prod._base_client.BaseClient._calculate_retry_timeout", _low_retry_timeout)
@pytest.mark.respx(base_url=base_url)
@pytest.mark.asyncio
@pytest.mark.parametrize("failure_mode", ["status", "exception"])
async def test_retries_taken(
self,
- async_client: AsyncDigitaloceanGenaiSDK,
+ async_client: AsyncServerlessInferenceSDKProd,
failures_before_success: int,
failure_mode: Literal["status", "exception"],
respx_mock: MockRouter,
@@ -1547,11 +1582,11 @@ def retry_handler(_request: httpx.Request) -> httpx.Response:
assert int(response.http_request.headers.get("x-stainless-retry-count")) == failures_before_success
@pytest.mark.parametrize("failures_before_success", [0, 2, 4])
- @mock.patch("digitalocean_genai_sdk._base_client.BaseClient._calculate_retry_timeout", _low_retry_timeout)
+ @mock.patch("serverless_inference_sdk_prod._base_client.BaseClient._calculate_retry_timeout", _low_retry_timeout)
@pytest.mark.respx(base_url=base_url)
@pytest.mark.asyncio
async def test_omit_retry_count_header(
- self, async_client: AsyncDigitaloceanGenaiSDK, failures_before_success: int, respx_mock: MockRouter
+ self, async_client: AsyncServerlessInferenceSDKProd, failures_before_success: int, respx_mock: MockRouter
) -> None:
client = async_client.with_options(max_retries=4)
@@ -1571,11 +1606,11 @@ def retry_handler(_request: httpx.Request) -> httpx.Response:
assert len(response.http_request.headers.get_list("x-stainless-retry-count")) == 0
@pytest.mark.parametrize("failures_before_success", [0, 2, 4])
- @mock.patch("digitalocean_genai_sdk._base_client.BaseClient._calculate_retry_timeout", _low_retry_timeout)
+ @mock.patch("serverless_inference_sdk_prod._base_client.BaseClient._calculate_retry_timeout", _low_retry_timeout)
@pytest.mark.respx(base_url=base_url)
@pytest.mark.asyncio
async def test_overwrite_retry_count_header(
- self, async_client: AsyncDigitaloceanGenaiSDK, failures_before_success: int, respx_mock: MockRouter
+ self, async_client: AsyncServerlessInferenceSDKProd, failures_before_success: int, respx_mock: MockRouter
) -> None:
client = async_client.with_options(max_retries=4)
@@ -1605,8 +1640,8 @@ def test_get_platform(self) -> None:
import nest_asyncio
import threading
- from digitalocean_genai_sdk._utils import asyncify
- from digitalocean_genai_sdk._base_client import get_platform
+ from serverless_inference_sdk_prod._utils import asyncify
+ from serverless_inference_sdk_prod._base_client import get_platform
async def test_main() -> None:
result = await asyncify(get_platform)()
@@ -1638,3 +1673,30 @@ async def test_main() -> None:
raise AssertionError("calling get_platform using asyncify resulted in a hung process")
time.sleep(0.1)
+
+ @pytest.mark.respx(base_url=base_url)
+ async def test_follow_redirects(self, respx_mock: MockRouter) -> None:
+ # Test that the default follow_redirects=True allows following redirects
+ respx_mock.post("/redirect").mock(
+ return_value=httpx.Response(302, headers={"Location": f"{base_url}/redirected"})
+ )
+ respx_mock.get("/redirected").mock(return_value=httpx.Response(200, json={"status": "ok"}))
+
+ response = await self.client.post("/redirect", body={"key": "value"}, cast_to=httpx.Response)
+ assert response.status_code == 200
+ assert response.json() == {"status": "ok"}
+
+ @pytest.mark.respx(base_url=base_url)
+ async def test_follow_redirects_disabled(self, respx_mock: MockRouter) -> None:
+ # Test that follow_redirects=False prevents following redirects
+ respx_mock.post("/redirect").mock(
+ return_value=httpx.Response(302, headers={"Location": f"{base_url}/redirected"})
+ )
+
+ with pytest.raises(APIStatusError) as exc_info:
+ await self.client.post(
+ "/redirect", body={"key": "value"}, options={"follow_redirects": False}, cast_to=httpx.Response
+ )
+
+ assert exc_info.value.response.status_code == 302
+ assert exc_info.value.response.headers["Location"] == f"{base_url}/redirected"
diff --git a/tests/test_deepcopy.py b/tests/test_deepcopy.py
index 317130ef..8c08a923 100644
--- a/tests/test_deepcopy.py
+++ b/tests/test_deepcopy.py
@@ -1,4 +1,4 @@
-from digitalocean_genai_sdk._utils import deepcopy_minimal
+from serverless_inference_sdk_prod._utils import deepcopy_minimal
def assert_different_identities(obj1: object, obj2: object) -> None:
diff --git a/tests/test_extract_files.py b/tests/test_extract_files.py
index aad87e09..d932e0bb 100644
--- a/tests/test_extract_files.py
+++ b/tests/test_extract_files.py
@@ -4,8 +4,8 @@
import pytest
-from digitalocean_genai_sdk._types import FileTypes
-from digitalocean_genai_sdk._utils import extract_files
+from serverless_inference_sdk_prod._types import FileTypes
+from serverless_inference_sdk_prod._utils import extract_files
def test_removes_files_from_input() -> None:
diff --git a/tests/test_files.py b/tests/test_files.py
index f3a07ce0..b7c7e82c 100644
--- a/tests/test_files.py
+++ b/tests/test_files.py
@@ -4,7 +4,7 @@
import pytest
from dirty_equals import IsDict, IsList, IsBytes, IsTuple
-from digitalocean_genai_sdk._files import to_httpx_files, async_to_httpx_files
+from serverless_inference_sdk_prod._files import to_httpx_files, async_to_httpx_files
readme_path = Path(__file__).parent.parent.joinpath("README.md")
diff --git a/tests/test_models.py b/tests/test_models.py
index 0be34866..f345008a 100644
--- a/tests/test_models.py
+++ b/tests/test_models.py
@@ -7,9 +7,9 @@
import pydantic
from pydantic import Field
-from digitalocean_genai_sdk._utils import PropertyInfo
-from digitalocean_genai_sdk._compat import PYDANTIC_V2, parse_obj, model_dump, model_json
-from digitalocean_genai_sdk._models import BaseModel, construct_type
+from serverless_inference_sdk_prod._utils import PropertyInfo
+from serverless_inference_sdk_prod._compat import PYDANTIC_V2, parse_obj, model_dump, model_json
+from serverless_inference_sdk_prod._models import BaseModel, construct_type
class BasicModel(BaseModel):
diff --git a/tests/test_qs.py b/tests/test_qs.py
index 41824698..1023ba41 100644
--- a/tests/test_qs.py
+++ b/tests/test_qs.py
@@ -4,7 +4,7 @@
import pytest
-from digitalocean_genai_sdk._qs import Querystring, stringify
+from serverless_inference_sdk_prod._qs import Querystring, stringify
def test_empty() -> None:
diff --git a/tests/test_required_args.py b/tests/test_required_args.py
index 379ac794..dd492726 100644
--- a/tests/test_required_args.py
+++ b/tests/test_required_args.py
@@ -2,7 +2,7 @@
import pytest
-from digitalocean_genai_sdk._utils import required_args
+from serverless_inference_sdk_prod._utils import required_args
def test_too_many_positional_params() -> None:
diff --git a/tests/test_response.py b/tests/test_response.py
index 768537aa..eceb7b2b 100644
--- a/tests/test_response.py
+++ b/tests/test_response.py
@@ -6,8 +6,8 @@
import pytest
import pydantic
-from digitalocean_genai_sdk import BaseModel, DigitaloceanGenaiSDK, AsyncDigitaloceanGenaiSDK
-from digitalocean_genai_sdk._response import (
+from serverless_inference_sdk_prod import BaseModel, ServerlessInferenceSDKProd, AsyncServerlessInferenceSDKProd
+from serverless_inference_sdk_prod._response import (
APIResponse,
BaseAPIResponse,
AsyncAPIResponse,
@@ -15,8 +15,8 @@
AsyncBinaryAPIResponse,
extract_response_type,
)
-from digitalocean_genai_sdk._streaming import Stream
-from digitalocean_genai_sdk._base_client import FinalRequestOptions
+from serverless_inference_sdk_prod._streaming import Stream
+from serverless_inference_sdk_prod._base_client import FinalRequestOptions
class ConcreteBaseAPIResponse(APIResponse[bytes]): ...
@@ -37,7 +37,7 @@ def test_extract_response_type_direct_classes() -> None:
def test_extract_response_type_direct_class_missing_type_arg() -> None:
with pytest.raises(
RuntimeError,
- match="Expected type to have a type argument at index 0 but it did not",
+ match="Expected type to have a type argument at index 0 but it did not",
):
extract_response_type(AsyncAPIResponse)
@@ -56,7 +56,7 @@ def test_extract_response_type_binary_response() -> None:
class PydanticModel(pydantic.BaseModel): ...
-def test_response_parse_mismatched_basemodel(client: DigitaloceanGenaiSDK) -> None:
+def test_response_parse_mismatched_basemodel(client: ServerlessInferenceSDKProd) -> None:
response = APIResponse(
raw=httpx.Response(200, content=b"foo"),
client=client,
@@ -68,13 +68,13 @@ def test_response_parse_mismatched_basemodel(client: DigitaloceanGenaiSDK) -> No
with pytest.raises(
TypeError,
- match="Pydantic models must subclass our base model type, e.g. `from digitalocean_genai_sdk import BaseModel`",
+ match="Pydantic models must subclass our base model type, e.g. `from serverless_inference_sdk_prod import BaseModel`",
):
response.parse(to=PydanticModel)
@pytest.mark.asyncio
-async def test_async_response_parse_mismatched_basemodel(async_client: AsyncDigitaloceanGenaiSDK) -> None:
+async def test_async_response_parse_mismatched_basemodel(async_client: AsyncServerlessInferenceSDKProd) -> None:
response = AsyncAPIResponse(
raw=httpx.Response(200, content=b"foo"),
client=async_client,
@@ -86,12 +86,12 @@ async def test_async_response_parse_mismatched_basemodel(async_client: AsyncDigi
with pytest.raises(
TypeError,
- match="Pydantic models must subclass our base model type, e.g. `from digitalocean_genai_sdk import BaseModel`",
+ match="Pydantic models must subclass our base model type, e.g. `from serverless_inference_sdk_prod import BaseModel`",
):
await response.parse(to=PydanticModel)
-def test_response_parse_custom_stream(client: DigitaloceanGenaiSDK) -> None:
+def test_response_parse_custom_stream(client: ServerlessInferenceSDKProd) -> None:
response = APIResponse(
raw=httpx.Response(200, content=b"foo"),
client=client,
@@ -106,7 +106,7 @@ def test_response_parse_custom_stream(client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.asyncio
-async def test_async_response_parse_custom_stream(async_client: AsyncDigitaloceanGenaiSDK) -> None:
+async def test_async_response_parse_custom_stream(async_client: AsyncServerlessInferenceSDKProd) -> None:
response = AsyncAPIResponse(
raw=httpx.Response(200, content=b"foo"),
client=async_client,
@@ -125,7 +125,7 @@ class CustomModel(BaseModel):
bar: int
-def test_response_parse_custom_model(client: DigitaloceanGenaiSDK) -> None:
+def test_response_parse_custom_model(client: ServerlessInferenceSDKProd) -> None:
response = APIResponse(
raw=httpx.Response(200, content=json.dumps({"foo": "hello!", "bar": 2})),
client=client,
@@ -141,7 +141,7 @@ def test_response_parse_custom_model(client: DigitaloceanGenaiSDK) -> None:
@pytest.mark.asyncio
-async def test_async_response_parse_custom_model(async_client: AsyncDigitaloceanGenaiSDK) -> None:
+async def test_async_response_parse_custom_model(async_client: AsyncServerlessInferenceSDKProd) -> None:
response = AsyncAPIResponse(
raw=httpx.Response(200, content=json.dumps({"foo": "hello!", "bar": 2})),
client=async_client,
@@ -156,7 +156,7 @@ async def test_async_response_parse_custom_model(async_client: AsyncDigitalocean
assert obj.bar == 2
-def test_response_parse_annotated_type(client: DigitaloceanGenaiSDK) -> None:
+def test_response_parse_annotated_type(client: ServerlessInferenceSDKProd) -> None:
response = APIResponse(
raw=httpx.Response(200, content=json.dumps({"foo": "hello!", "bar": 2})),
client=client,
@@ -173,7 +173,7 @@ def test_response_parse_annotated_type(client: DigitaloceanGenaiSDK) -> None:
assert obj.bar == 2
-async def test_async_response_parse_annotated_type(async_client: AsyncDigitaloceanGenaiSDK) -> None:
+async def test_async_response_parse_annotated_type(async_client: AsyncServerlessInferenceSDKProd) -> None:
response = AsyncAPIResponse(
raw=httpx.Response(200, content=json.dumps({"foo": "hello!", "bar": 2})),
client=async_client,
@@ -201,7 +201,7 @@ async def test_async_response_parse_annotated_type(async_client: AsyncDigitaloce
("FalSe", False),
],
)
-def test_response_parse_bool(client: DigitaloceanGenaiSDK, content: str, expected: bool) -> None:
+def test_response_parse_bool(client: ServerlessInferenceSDKProd, content: str, expected: bool) -> None:
response = APIResponse(
raw=httpx.Response(200, content=content),
client=client,
@@ -226,7 +226,7 @@ def test_response_parse_bool(client: DigitaloceanGenaiSDK, content: str, expecte
("FalSe", False),
],
)
-async def test_async_response_parse_bool(client: AsyncDigitaloceanGenaiSDK, content: str, expected: bool) -> None:
+async def test_async_response_parse_bool(client: AsyncServerlessInferenceSDKProd, content: str, expected: bool) -> None:
response = AsyncAPIResponse(
raw=httpx.Response(200, content=content),
client=client,
@@ -245,7 +245,7 @@ class OtherModel(BaseModel):
@pytest.mark.parametrize("client", [False], indirect=True) # loose validation
-def test_response_parse_expect_model_union_non_json_content(client: DigitaloceanGenaiSDK) -> None:
+def test_response_parse_expect_model_union_non_json_content(client: ServerlessInferenceSDKProd) -> None:
response = APIResponse(
raw=httpx.Response(200, content=b"foo", headers={"Content-Type": "application/text"}),
client=client,
@@ -263,7 +263,7 @@ def test_response_parse_expect_model_union_non_json_content(client: Digitalocean
@pytest.mark.asyncio
@pytest.mark.parametrize("async_client", [False], indirect=True) # loose validation
async def test_async_response_parse_expect_model_union_non_json_content(
- async_client: AsyncDigitaloceanGenaiSDK,
+ async_client: AsyncServerlessInferenceSDKProd,
) -> None:
response = AsyncAPIResponse(
raw=httpx.Response(200, content=b"foo", headers={"Content-Type": "application/text"}),
diff --git a/tests/test_streaming.py b/tests/test_streaming.py
index e707c674..94aa24d3 100644
--- a/tests/test_streaming.py
+++ b/tests/test_streaming.py
@@ -5,13 +5,15 @@
import httpx
import pytest
-from digitalocean_genai_sdk import DigitaloceanGenaiSDK, AsyncDigitaloceanGenaiSDK
-from digitalocean_genai_sdk._streaming import Stream, AsyncStream, ServerSentEvent
+from serverless_inference_sdk_prod import ServerlessInferenceSDKProd, AsyncServerlessInferenceSDKProd
+from serverless_inference_sdk_prod._streaming import Stream, AsyncStream, ServerSentEvent
@pytest.mark.asyncio
@pytest.mark.parametrize("sync", [True, False], ids=["sync", "async"])
-async def test_basic(sync: bool, client: DigitaloceanGenaiSDK, async_client: AsyncDigitaloceanGenaiSDK) -> None:
+async def test_basic(
+ sync: bool, client: ServerlessInferenceSDKProd, async_client: AsyncServerlessInferenceSDKProd
+) -> None:
def body() -> Iterator[bytes]:
yield b"event: completion\n"
yield b'data: {"foo":true}\n'
@@ -29,7 +31,7 @@ def body() -> Iterator[bytes]:
@pytest.mark.asyncio
@pytest.mark.parametrize("sync", [True, False], ids=["sync", "async"])
async def test_data_missing_event(
- sync: bool, client: DigitaloceanGenaiSDK, async_client: AsyncDigitaloceanGenaiSDK
+ sync: bool, client: ServerlessInferenceSDKProd, async_client: AsyncServerlessInferenceSDKProd
) -> None:
def body() -> Iterator[bytes]:
yield b'data: {"foo":true}\n'
@@ -47,7 +49,7 @@ def body() -> Iterator[bytes]:
@pytest.mark.asyncio
@pytest.mark.parametrize("sync", [True, False], ids=["sync", "async"])
async def test_event_missing_data(
- sync: bool, client: DigitaloceanGenaiSDK, async_client: AsyncDigitaloceanGenaiSDK
+ sync: bool, client: ServerlessInferenceSDKProd, async_client: AsyncServerlessInferenceSDKProd
) -> None:
def body() -> Iterator[bytes]:
yield b"event: ping\n"
@@ -65,7 +67,7 @@ def body() -> Iterator[bytes]:
@pytest.mark.asyncio
@pytest.mark.parametrize("sync", [True, False], ids=["sync", "async"])
async def test_multiple_events(
- sync: bool, client: DigitaloceanGenaiSDK, async_client: AsyncDigitaloceanGenaiSDK
+ sync: bool, client: ServerlessInferenceSDKProd, async_client: AsyncServerlessInferenceSDKProd
) -> None:
def body() -> Iterator[bytes]:
yield b"event: ping\n"
@@ -89,7 +91,7 @@ def body() -> Iterator[bytes]:
@pytest.mark.asyncio
@pytest.mark.parametrize("sync", [True, False], ids=["sync", "async"])
async def test_multiple_events_with_data(
- sync: bool, client: DigitaloceanGenaiSDK, async_client: AsyncDigitaloceanGenaiSDK
+ sync: bool, client: ServerlessInferenceSDKProd, async_client: AsyncServerlessInferenceSDKProd
) -> None:
def body() -> Iterator[bytes]:
yield b"event: ping\n"
@@ -115,7 +117,7 @@ def body() -> Iterator[bytes]:
@pytest.mark.asyncio
@pytest.mark.parametrize("sync", [True, False], ids=["sync", "async"])
async def test_multiple_data_lines_with_empty_line(
- sync: bool, client: DigitaloceanGenaiSDK, async_client: AsyncDigitaloceanGenaiSDK
+ sync: bool, client: ServerlessInferenceSDKProd, async_client: AsyncServerlessInferenceSDKProd
) -> None:
def body() -> Iterator[bytes]:
yield b"event: ping\n"
@@ -139,7 +141,7 @@ def body() -> Iterator[bytes]:
@pytest.mark.asyncio
@pytest.mark.parametrize("sync", [True, False], ids=["sync", "async"])
async def test_data_json_escaped_double_new_line(
- sync: bool, client: DigitaloceanGenaiSDK, async_client: AsyncDigitaloceanGenaiSDK
+ sync: bool, client: ServerlessInferenceSDKProd, async_client: AsyncServerlessInferenceSDKProd
) -> None:
def body() -> Iterator[bytes]:
yield b"event: ping\n"
@@ -158,7 +160,7 @@ def body() -> Iterator[bytes]:
@pytest.mark.asyncio
@pytest.mark.parametrize("sync", [True, False], ids=["sync", "async"])
async def test_multiple_data_lines(
- sync: bool, client: DigitaloceanGenaiSDK, async_client: AsyncDigitaloceanGenaiSDK
+ sync: bool, client: ServerlessInferenceSDKProd, async_client: AsyncServerlessInferenceSDKProd
) -> None:
def body() -> Iterator[bytes]:
yield b"event: ping\n"
@@ -179,8 +181,8 @@ def body() -> Iterator[bytes]:
@pytest.mark.parametrize("sync", [True, False], ids=["sync", "async"])
async def test_special_new_line_character(
sync: bool,
- client: DigitaloceanGenaiSDK,
- async_client: AsyncDigitaloceanGenaiSDK,
+ client: ServerlessInferenceSDKProd,
+ async_client: AsyncServerlessInferenceSDKProd,
) -> None:
def body() -> Iterator[bytes]:
yield b'data: {"content":" culpa"}\n'
@@ -210,8 +212,8 @@ def body() -> Iterator[bytes]:
@pytest.mark.parametrize("sync", [True, False], ids=["sync", "async"])
async def test_multi_byte_character_multiple_chunks(
sync: bool,
- client: DigitaloceanGenaiSDK,
- async_client: AsyncDigitaloceanGenaiSDK,
+ client: ServerlessInferenceSDKProd,
+ async_client: AsyncServerlessInferenceSDKProd,
) -> None:
def body() -> Iterator[bytes]:
yield b'data: {"content":"'
@@ -251,8 +253,8 @@ def make_event_iterator(
content: Iterator[bytes],
*,
sync: bool,
- client: DigitaloceanGenaiSDK,
- async_client: AsyncDigitaloceanGenaiSDK,
+ client: ServerlessInferenceSDKProd,
+ async_client: AsyncServerlessInferenceSDKProd,
) -> Iterator[ServerSentEvent] | AsyncIterator[ServerSentEvent]:
if sync:
return Stream(cast_to=object, client=client, response=httpx.Response(200, content=content))._iter_events()
diff --git a/tests/test_transform.py b/tests/test_transform.py
index 3c29084e..7419e0d6 100644
--- a/tests/test_transform.py
+++ b/tests/test_transform.py
@@ -8,15 +8,15 @@
import pytest
-from digitalocean_genai_sdk._types import NOT_GIVEN, Base64FileInput
-from digitalocean_genai_sdk._utils import (
+from serverless_inference_sdk_prod._types import NOT_GIVEN, Base64FileInput
+from serverless_inference_sdk_prod._utils import (
PropertyInfo,
transform as _transform,
parse_datetime,
async_transform as _async_transform,
)
-from digitalocean_genai_sdk._compat import PYDANTIC_V2
-from digitalocean_genai_sdk._models import BaseModel
+from serverless_inference_sdk_prod._compat import PYDANTIC_V2
+from serverless_inference_sdk_prod._models import BaseModel
_T = TypeVar("_T")
diff --git a/tests/test_utils/test_proxy.py b/tests/test_utils/test_proxy.py
index 6fe8c808..6c8f23d6 100644
--- a/tests/test_utils/test_proxy.py
+++ b/tests/test_utils/test_proxy.py
@@ -2,7 +2,7 @@
from typing import Any
from typing_extensions import override
-from digitalocean_genai_sdk._utils import LazyProxy
+from serverless_inference_sdk_prod._utils import LazyProxy
class RecursiveLazyProxy(LazyProxy[Any]):
diff --git a/tests/test_utils/test_typing.py b/tests/test_utils/test_typing.py
index 72bf3422..3e2eccd6 100644
--- a/tests/test_utils/test_typing.py
+++ b/tests/test_utils/test_typing.py
@@ -2,7 +2,7 @@
from typing import Generic, TypeVar, cast
-from digitalocean_genai_sdk._utils import extract_type_var_from_base
+from serverless_inference_sdk_prod._utils import extract_type_var_from_base
_T = TypeVar("_T")
_T2 = TypeVar("_T2")
diff --git a/tests/utils.py b/tests/utils.py
index e795e2e8..a9b3a617 100644
--- a/tests/utils.py
+++ b/tests/utils.py
@@ -8,8 +8,8 @@
from datetime import date, datetime
from typing_extensions import Literal, get_args, get_origin, assert_type
-from digitalocean_genai_sdk._types import Omit, NoneType
-from digitalocean_genai_sdk._utils import (
+from serverless_inference_sdk_prod._types import Omit, NoneType
+from serverless_inference_sdk_prod._utils import (
is_dict,
is_list,
is_list_type,
@@ -18,8 +18,8 @@
is_annotated_type,
is_type_alias_type,
)
-from digitalocean_genai_sdk._compat import PYDANTIC_V2, field_outer_type, get_model_fields
-from digitalocean_genai_sdk._models import BaseModel
+from serverless_inference_sdk_prod._compat import PYDANTIC_V2, field_outer_type, get_model_fields
+from serverless_inference_sdk_prod._models import BaseModel
BaseModelT = TypeVar("BaseModelT", bound=BaseModel)
From 5f239d34b86e29272f37460edc6b38a5964b343b Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Tue, 10 Jun 2025 16:28:33 +0000
Subject: [PATCH 2/5] chore: update SDK settings
---
.github/workflows/publish-pypi.yml | 31 +++++++++
.github/workflows/release-doctor.yml | 21 ++++++
.release-please-manifest.json | 3 +
.stats.yml | 2 +-
CONTRIBUTING.md | 4 +-
README.md | 10 +--
bin/check-release-environment | 21 ++++++
pyproject.toml | 6 +-
release-please-config.json | 66 +++++++++++++++++++
src/serverless_inference_sdk_prod/_files.py | 2 +-
src/serverless_inference_sdk_prod/_version.py | 2 +-
.../resources/assistants.py | 8 +--
.../resources/audio.py | 8 +--
.../resources/batches.py | 8 +--
.../resources/chat/chat.py | 8 +--
.../resources/chat/completions.py | 8 +--
.../resources/completions.py | 8 +--
.../resources/embeddings.py | 8 +--
.../resources/files.py | 8 +--
.../fine_tuning/checkpoints/checkpoints.py | 8 +--
.../fine_tuning/checkpoints/permissions.py | 8 +--
.../resources/fine_tuning/fine_tuning.py | 8 +--
.../resources/fine_tuning/jobs/checkpoints.py | 8 +--
.../resources/fine_tuning/jobs/events.py | 8 +--
.../resources/fine_tuning/jobs/jobs.py | 8 +--
.../resources/images.py | 8 +--
.../resources/models.py | 8 +--
.../resources/moderations.py | 8 +--
.../resources/organization/admin_api_keys.py | 8 +--
.../resources/organization/invites.py | 8 +--
.../resources/organization/organization.py | 8 +--
.../organization/projects/api_keys.py | 8 +--
.../organization/projects/projects.py | 8 +--
.../organization/projects/rate_limits.py | 8 +--
.../organization/projects/service_accounts.py | 8 +--
.../resources/organization/projects/users.py | 8 +--
.../resources/organization/usage.py | 8 +--
.../resources/organization/users.py | 8 +--
.../resources/realtime.py | 8 +--
.../resources/responses.py | 8 +--
.../resources/threads/messages.py | 8 +--
.../resources/threads/runs/runs.py | 8 +--
.../resources/threads/runs/steps.py | 8 +--
.../resources/threads/threads.py | 8 +--
.../resources/uploads.py | 8 +--
.../resources/vector_stores/file_batches.py | 8 +--
.../resources/vector_stores/files.py | 8 +--
.../resources/vector_stores/vector_stores.py | 8 +--
48 files changed, 303 insertions(+), 161 deletions(-)
create mode 100644 .github/workflows/publish-pypi.yml
create mode 100644 .github/workflows/release-doctor.yml
create mode 100644 .release-please-manifest.json
create mode 100644 bin/check-release-environment
create mode 100644 release-please-config.json
diff --git a/.github/workflows/publish-pypi.yml b/.github/workflows/publish-pypi.yml
new file mode 100644
index 00000000..c2ae8d99
--- /dev/null
+++ b/.github/workflows/publish-pypi.yml
@@ -0,0 +1,31 @@
+# This workflow is triggered when a GitHub release is created.
+# It can also be run manually to re-publish to PyPI in case it failed for some reason.
+# You can run this workflow by navigating to https://www.github.com/digitalocean/genai-python/actions/workflows/publish-pypi.yml
+name: Publish PyPI
+on:
+ workflow_dispatch:
+
+ release:
+ types: [published]
+
+jobs:
+ publish:
+ name: publish
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v4
+
+ - name: Install Rye
+ run: |
+ curl -sSf https://rye.astral.sh/get | bash
+ echo "$HOME/.rye/shims" >> $GITHUB_PATH
+ env:
+ RYE_VERSION: '0.44.0'
+ RYE_INSTALL_OPTION: '--yes'
+
+ - name: Publish to PyPI
+ run: |
+ bash ./bin/publish-pypi
+ env:
+ PYPI_TOKEN: ${{ secrets.SERVERLESS_INFERENCE_SDK_PROD_PYPI_TOKEN || secrets.PYPI_TOKEN }}
diff --git a/.github/workflows/release-doctor.yml b/.github/workflows/release-doctor.yml
new file mode 100644
index 00000000..202d5f1c
--- /dev/null
+++ b/.github/workflows/release-doctor.yml
@@ -0,0 +1,21 @@
+name: Release Doctor
+on:
+ pull_request:
+ branches:
+ - main
+ workflow_dispatch:
+
+jobs:
+ release_doctor:
+ name: release doctor
+ runs-on: ubuntu-latest
+ if: github.repository == 'digitalocean/genai-python' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || startsWith(github.head_ref, 'release-please') || github.head_ref == 'next')
+
+ steps:
+ - uses: actions/checkout@v4
+
+ - name: Check release environment
+ run: |
+ bash ./bin/check-release-environment
+ env:
+ PYPI_TOKEN: ${{ secrets.SERVERLESS_INFERENCE_SDK_PROD_PYPI_TOKEN || secrets.PYPI_TOKEN }}
diff --git a/.release-please-manifest.json b/.release-please-manifest.json
new file mode 100644
index 00000000..c4762802
--- /dev/null
+++ b/.release-please-manifest.json
@@ -0,0 +1,3 @@
+{
+ ".": "0.0.1-alpha.0"
+}
\ No newline at end of file
diff --git a/.stats.yml b/.stats.yml
index 6d52ed83..ba11c73a 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 126
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/digitalocean%2Fserverless-inference-sdk-prod-bdf24159c6ebb5402d6c05a5165cb1501dc37cf6c664baa9eb318efb0f89dddd.yml
openapi_spec_hash: 686329a97002025d118dc2367755c18d
-config_hash: 12e97f0629a2a5d6a96762892ecc1b0c
+config_hash: 957c083fd469376dc3f1320ae9222e73
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 114428fc..7ae926fd 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -62,7 +62,7 @@ If you’d like to use the repository from source, you can either install from g
To install via git:
```sh
-$ pip install git+ssh://git@github.com/stainless-sdks/serverless-inference-sdk-prod-python.git
+$ pip install git+ssh://git@github.com/digitalocean/genai-python.git
```
Alternatively, you can build from source and install the wheel file:
@@ -120,7 +120,7 @@ the changes aren't made through the automated pipeline, you may want to make rel
### Publish with a GitHub workflow
-You can release to package managers by using [the `Publish PyPI` GitHub action](https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python/actions/workflows/publish-pypi.yml). This requires a setup organization or repository secret to be set up.
+You can release to package managers by using [the `Publish PyPI` GitHub action](https://www.github.com/digitalocean/genai-python/actions/workflows/publish-pypi.yml). This requires a setup organization or repository secret to be set up.
### Publish manually
diff --git a/README.md b/README.md
index 9e916eee..d7ad0c54 100644
--- a/README.md
+++ b/README.md
@@ -15,8 +15,8 @@ The REST API documentation can be found on [help.openai.com](https://help.openai
## Installation
```sh
-# install from this staging repo
-pip install git+ssh://git@github.com/stainless-sdks/serverless-inference-sdk-prod-python.git
+# install from the production repo
+pip install git+ssh://git@github.com/digitalocean/genai-python.git
```
> [!NOTE]
@@ -244,9 +244,9 @@ assistant = response.parse() # get the object that `assistants.list()` would ha
print(assistant.first_id)
```
-These methods return an [`APIResponse`](https://github.com/stainless-sdks/serverless-inference-sdk-prod-python/tree/main/src/serverless_inference_sdk_prod/_response.py) object.
+These methods return an [`APIResponse`](https://github.com/digitalocean/genai-python/tree/main/src/serverless_inference_sdk_prod/_response.py) object.
-The async client returns an [`AsyncAPIResponse`](https://github.com/stainless-sdks/serverless-inference-sdk-prod-python/tree/main/src/serverless_inference_sdk_prod/_response.py) with the same structure, the only difference being `await`able methods for reading the response content.
+The async client returns an [`AsyncAPIResponse`](https://github.com/digitalocean/genai-python/tree/main/src/serverless_inference_sdk_prod/_response.py) with the same structure, the only difference being `await`able methods for reading the response content.
#### `.with_streaming_response`
@@ -350,7 +350,7 @@ This package generally follows [SemVer](https://semver.org/spec/v2.0.0.html) con
We take backwards-compatibility seriously and work hard to ensure you can rely on a smooth upgrade experience.
-We are keen for your feedback; please open an [issue](https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python/issues) with questions, bugs, or suggestions.
+We are keen for your feedback; please open an [issue](https://www.github.com/digitalocean/genai-python/issues) with questions, bugs, or suggestions.
### Determining the installed version
diff --git a/bin/check-release-environment b/bin/check-release-environment
new file mode 100644
index 00000000..fdce8d07
--- /dev/null
+++ b/bin/check-release-environment
@@ -0,0 +1,21 @@
+#!/usr/bin/env bash
+
+errors=()
+
+if [ -z "${PYPI_TOKEN}" ]; then
+ errors+=("The SERVERLESS_INFERENCE_SDK_PROD_PYPI_TOKEN secret has not been set. Please set it in either this repository's secrets or your organization secrets.")
+fi
+
+lenErrors=${#errors[@]}
+
+if [[ lenErrors -gt 0 ]]; then
+ echo -e "Found the following errors in the release environment:\n"
+
+ for error in "${errors[@]}"; do
+ echo -e "- $error\n"
+ done
+
+ exit 1
+fi
+
+echo "The environment is ready to push releases!"
diff --git a/pyproject.toml b/pyproject.toml
index bab5b45c..e177f969 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -34,8 +34,8 @@ classifiers = [
]
[project.urls]
-Homepage = "https://github.com/stainless-sdks/serverless-inference-sdk-prod-python"
-Repository = "https://github.com/stainless-sdks/serverless-inference-sdk-prod-python"
+Homepage = "https://github.com/digitalocean/genai-python"
+Repository = "https://github.com/digitalocean/genai-python"
[tool.rye]
@@ -121,7 +121,7 @@ path = "README.md"
[[tool.hatch.metadata.hooks.fancy-pypi-readme.substitutions]]
# replace relative links with absolute links
pattern = '\[(.+?)\]\(((?!https?://)\S+?)\)'
-replacement = '[\1](https://github.com/stainless-sdks/serverless-inference-sdk-prod-python/tree/main/\g<2>)'
+replacement = '[\1](https://github.com/digitalocean/genai-python/tree/main/\g<2>)'
[tool.pytest.ini_options]
testpaths = ["tests"]
diff --git a/release-please-config.json b/release-please-config.json
new file mode 100644
index 00000000..83944cc7
--- /dev/null
+++ b/release-please-config.json
@@ -0,0 +1,66 @@
+{
+ "packages": {
+ ".": {}
+ },
+ "$schema": "https://raw.githubusercontent.com/stainless-api/release-please/main/schemas/config.json",
+ "include-v-in-tag": true,
+ "include-component-in-tag": false,
+ "versioning": "prerelease",
+ "prerelease": true,
+ "bump-minor-pre-major": true,
+ "bump-patch-for-minor-pre-major": false,
+ "pull-request-header": "Automated Release PR",
+ "pull-request-title-pattern": "release: ${version}",
+ "changelog-sections": [
+ {
+ "type": "feat",
+ "section": "Features"
+ },
+ {
+ "type": "fix",
+ "section": "Bug Fixes"
+ },
+ {
+ "type": "perf",
+ "section": "Performance Improvements"
+ },
+ {
+ "type": "revert",
+ "section": "Reverts"
+ },
+ {
+ "type": "chore",
+ "section": "Chores"
+ },
+ {
+ "type": "docs",
+ "section": "Documentation"
+ },
+ {
+ "type": "style",
+ "section": "Styles"
+ },
+ {
+ "type": "refactor",
+ "section": "Refactors"
+ },
+ {
+ "type": "test",
+ "section": "Tests",
+ "hidden": true
+ },
+ {
+ "type": "build",
+ "section": "Build System"
+ },
+ {
+ "type": "ci",
+ "section": "Continuous Integration",
+ "hidden": true
+ }
+ ],
+ "release-type": "python",
+ "extra-files": [
+ "src/serverless_inference_sdk_prod/_version.py"
+ ]
+}
\ No newline at end of file
diff --git a/src/serverless_inference_sdk_prod/_files.py b/src/serverless_inference_sdk_prod/_files.py
index 6f32eee2..02512281 100644
--- a/src/serverless_inference_sdk_prod/_files.py
+++ b/src/serverless_inference_sdk_prod/_files.py
@@ -34,7 +34,7 @@ def assert_is_file_content(obj: object, *, key: str | None = None) -> None:
if not is_file_content(obj):
prefix = f"Expected entry at `{key}`" if key is not None else f"Expected file input `{obj!r}`"
raise RuntimeError(
- f"{prefix} to be bytes, an io.IOBase instance, PathLike or a tuple but received {type(obj)} instead. See https://github.com/stainless-sdks/serverless-inference-sdk-prod-python/tree/main#file-uploads"
+ f"{prefix} to be bytes, an io.IOBase instance, PathLike or a tuple but received {type(obj)} instead. See https://github.com/digitalocean/genai-python/tree/main#file-uploads"
) from None
diff --git a/src/serverless_inference_sdk_prod/_version.py b/src/serverless_inference_sdk_prod/_version.py
index c5337335..c835f8b3 100644
--- a/src/serverless_inference_sdk_prod/_version.py
+++ b/src/serverless_inference_sdk_prod/_version.py
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
__title__ = "serverless_inference_sdk_prod"
-__version__ = "0.0.1-alpha.0"
+__version__ = "0.0.1-alpha.0" # x-release-please-version
diff --git a/src/serverless_inference_sdk_prod/resources/assistants.py b/src/serverless_inference_sdk_prod/resources/assistants.py
index 7a10cf0b..f125282c 100644
--- a/src/serverless_inference_sdk_prod/resources/assistants.py
+++ b/src/serverless_inference_sdk_prod/resources/assistants.py
@@ -41,7 +41,7 @@ def with_raw_response(self) -> AssistantsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/digitalocean/genai-python#accessing-raw-response-data-eg-headers
"""
return AssistantsResourceWithRawResponse(self)
@@ -50,7 +50,7 @@ def with_streaming_response(self) -> AssistantsResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
+ For more information, see https://www.github.com/digitalocean/genai-python#with_streaming_response
"""
return AssistantsResourceWithStreamingResponse(self)
@@ -437,7 +437,7 @@ def with_raw_response(self) -> AsyncAssistantsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/digitalocean/genai-python#accessing-raw-response-data-eg-headers
"""
return AsyncAssistantsResourceWithRawResponse(self)
@@ -446,7 +446,7 @@ def with_streaming_response(self) -> AsyncAssistantsResourceWithStreamingRespons
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
+ For more information, see https://www.github.com/digitalocean/genai-python#with_streaming_response
"""
return AsyncAssistantsResourceWithStreamingResponse(self)
diff --git a/src/serverless_inference_sdk_prod/resources/audio.py b/src/serverless_inference_sdk_prod/resources/audio.py
index 47cdb900..bf023ba0 100644
--- a/src/serverless_inference_sdk_prod/resources/audio.py
+++ b/src/serverless_inference_sdk_prod/resources/audio.py
@@ -45,7 +45,7 @@ def with_raw_response(self) -> AudioResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/digitalocean/genai-python#accessing-raw-response-data-eg-headers
"""
return AudioResourceWithRawResponse(self)
@@ -54,7 +54,7 @@ def with_streaming_response(self) -> AudioResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
+ For more information, see https://www.github.com/digitalocean/genai-python#with_streaming_response
"""
return AudioResourceWithStreamingResponse(self)
@@ -319,7 +319,7 @@ def with_raw_response(self) -> AsyncAudioResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/digitalocean/genai-python#accessing-raw-response-data-eg-headers
"""
return AsyncAudioResourceWithRawResponse(self)
@@ -328,7 +328,7 @@ def with_streaming_response(self) -> AsyncAudioResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
+ For more information, see https://www.github.com/digitalocean/genai-python#with_streaming_response
"""
return AsyncAudioResourceWithStreamingResponse(self)
diff --git a/src/serverless_inference_sdk_prod/resources/batches.py b/src/serverless_inference_sdk_prod/resources/batches.py
index ec681d5c..bd92c365 100644
--- a/src/serverless_inference_sdk_prod/resources/batches.py
+++ b/src/serverless_inference_sdk_prod/resources/batches.py
@@ -32,7 +32,7 @@ def with_raw_response(self) -> BatchesResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/digitalocean/genai-python#accessing-raw-response-data-eg-headers
"""
return BatchesResourceWithRawResponse(self)
@@ -41,7 +41,7 @@ def with_streaming_response(self) -> BatchesResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
+ For more information, see https://www.github.com/digitalocean/genai-python#with_streaming_response
"""
return BatchesResourceWithStreamingResponse(self)
@@ -240,7 +240,7 @@ def with_raw_response(self) -> AsyncBatchesResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/digitalocean/genai-python#accessing-raw-response-data-eg-headers
"""
return AsyncBatchesResourceWithRawResponse(self)
@@ -249,7 +249,7 @@ def with_streaming_response(self) -> AsyncBatchesResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
+ For more information, see https://www.github.com/digitalocean/genai-python#with_streaming_response
"""
return AsyncBatchesResourceWithStreamingResponse(self)
diff --git a/src/serverless_inference_sdk_prod/resources/chat/chat.py b/src/serverless_inference_sdk_prod/resources/chat/chat.py
index a64bbc3b..ac19d849 100644
--- a/src/serverless_inference_sdk_prod/resources/chat/chat.py
+++ b/src/serverless_inference_sdk_prod/resources/chat/chat.py
@@ -27,7 +27,7 @@ def with_raw_response(self) -> ChatResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/digitalocean/genai-python#accessing-raw-response-data-eg-headers
"""
return ChatResourceWithRawResponse(self)
@@ -36,7 +36,7 @@ def with_streaming_response(self) -> ChatResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
+ For more information, see https://www.github.com/digitalocean/genai-python#with_streaming_response
"""
return ChatResourceWithStreamingResponse(self)
@@ -52,7 +52,7 @@ def with_raw_response(self) -> AsyncChatResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/digitalocean/genai-python#accessing-raw-response-data-eg-headers
"""
return AsyncChatResourceWithRawResponse(self)
@@ -61,7 +61,7 @@ def with_streaming_response(self) -> AsyncChatResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
+ For more information, see https://www.github.com/digitalocean/genai-python#with_streaming_response
"""
return AsyncChatResourceWithStreamingResponse(self)
diff --git a/src/serverless_inference_sdk_prod/resources/chat/completions.py b/src/serverless_inference_sdk_prod/resources/chat/completions.py
index 0c7f15cf..05f5287b 100644
--- a/src/serverless_inference_sdk_prod/resources/chat/completions.py
+++ b/src/serverless_inference_sdk_prod/resources/chat/completions.py
@@ -44,7 +44,7 @@ def with_raw_response(self) -> CompletionsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/digitalocean/genai-python#accessing-raw-response-data-eg-headers
"""
return CompletionsResourceWithRawResponse(self)
@@ -53,7 +53,7 @@ def with_streaming_response(self) -> CompletionsResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
+ For more information, see https://www.github.com/digitalocean/genai-python#with_streaming_response
"""
return CompletionsResourceWithStreamingResponse(self)
@@ -594,7 +594,7 @@ def with_raw_response(self) -> AsyncCompletionsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/digitalocean/genai-python#accessing-raw-response-data-eg-headers
"""
return AsyncCompletionsResourceWithRawResponse(self)
@@ -603,7 +603,7 @@ def with_streaming_response(self) -> AsyncCompletionsResourceWithStreamingRespon
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
+ For more information, see https://www.github.com/digitalocean/genai-python#with_streaming_response
"""
return AsyncCompletionsResourceWithStreamingResponse(self)
diff --git a/src/serverless_inference_sdk_prod/resources/completions.py b/src/serverless_inference_sdk_prod/resources/completions.py
index 28e0e371..cde13a53 100644
--- a/src/serverless_inference_sdk_prod/resources/completions.py
+++ b/src/serverless_inference_sdk_prod/resources/completions.py
@@ -33,7 +33,7 @@ def with_raw_response(self) -> CompletionsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/digitalocean/genai-python#accessing-raw-response-data-eg-headers
"""
return CompletionsResourceWithRawResponse(self)
@@ -42,7 +42,7 @@ def with_streaming_response(self) -> CompletionsResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
+ For more information, see https://www.github.com/digitalocean/genai-python#with_streaming_response
"""
return CompletionsResourceWithStreamingResponse(self)
@@ -232,7 +232,7 @@ def with_raw_response(self) -> AsyncCompletionsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/digitalocean/genai-python#accessing-raw-response-data-eg-headers
"""
return AsyncCompletionsResourceWithRawResponse(self)
@@ -241,7 +241,7 @@ def with_streaming_response(self) -> AsyncCompletionsResourceWithStreamingRespon
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
+ For more information, see https://www.github.com/digitalocean/genai-python#with_streaming_response
"""
return AsyncCompletionsResourceWithStreamingResponse(self)
diff --git a/src/serverless_inference_sdk_prod/resources/embeddings.py b/src/serverless_inference_sdk_prod/resources/embeddings.py
index 67fc8434..7dc90e34 100644
--- a/src/serverless_inference_sdk_prod/resources/embeddings.py
+++ b/src/serverless_inference_sdk_prod/resources/embeddings.py
@@ -31,7 +31,7 @@ def with_raw_response(self) -> EmbeddingsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/digitalocean/genai-python#accessing-raw-response-data-eg-headers
"""
return EmbeddingsResourceWithRawResponse(self)
@@ -40,7 +40,7 @@ def with_streaming_response(self) -> EmbeddingsResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
+ For more information, see https://www.github.com/digitalocean/genai-python#with_streaming_response
"""
return EmbeddingsResourceWithStreamingResponse(self)
@@ -119,7 +119,7 @@ def with_raw_response(self) -> AsyncEmbeddingsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/digitalocean/genai-python#accessing-raw-response-data-eg-headers
"""
return AsyncEmbeddingsResourceWithRawResponse(self)
@@ -128,7 +128,7 @@ def with_streaming_response(self) -> AsyncEmbeddingsResourceWithStreamingRespons
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
+ For more information, see https://www.github.com/digitalocean/genai-python#with_streaming_response
"""
return AsyncEmbeddingsResourceWithStreamingResponse(self)
diff --git a/src/serverless_inference_sdk_prod/resources/files.py b/src/serverless_inference_sdk_prod/resources/files.py
index cd363104..a93712fd 100644
--- a/src/serverless_inference_sdk_prod/resources/files.py
+++ b/src/serverless_inference_sdk_prod/resources/files.py
@@ -33,7 +33,7 @@ def with_raw_response(self) -> FilesResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/digitalocean/genai-python#accessing-raw-response-data-eg-headers
"""
return FilesResourceWithRawResponse(self)
@@ -42,7 +42,7 @@ def with_streaming_response(self) -> FilesResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
+ For more information, see https://www.github.com/digitalocean/genai-python#with_streaming_response
"""
return FilesResourceWithStreamingResponse(self)
@@ -282,7 +282,7 @@ def with_raw_response(self) -> AsyncFilesResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/digitalocean/genai-python#accessing-raw-response-data-eg-headers
"""
return AsyncFilesResourceWithRawResponse(self)
@@ -291,7 +291,7 @@ def with_streaming_response(self) -> AsyncFilesResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
+ For more information, see https://www.github.com/digitalocean/genai-python#with_streaming_response
"""
return AsyncFilesResourceWithStreamingResponse(self)
diff --git a/src/serverless_inference_sdk_prod/resources/fine_tuning/checkpoints/checkpoints.py b/src/serverless_inference_sdk_prod/resources/fine_tuning/checkpoints/checkpoints.py
index c89c6c51..d2bd64ef 100644
--- a/src/serverless_inference_sdk_prod/resources/fine_tuning/checkpoints/checkpoints.py
+++ b/src/serverless_inference_sdk_prod/resources/fine_tuning/checkpoints/checkpoints.py
@@ -27,7 +27,7 @@ def with_raw_response(self) -> CheckpointsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/digitalocean/genai-python#accessing-raw-response-data-eg-headers
"""
return CheckpointsResourceWithRawResponse(self)
@@ -36,7 +36,7 @@ def with_streaming_response(self) -> CheckpointsResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
+ For more information, see https://www.github.com/digitalocean/genai-python#with_streaming_response
"""
return CheckpointsResourceWithStreamingResponse(self)
@@ -52,7 +52,7 @@ def with_raw_response(self) -> AsyncCheckpointsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/digitalocean/genai-python#accessing-raw-response-data-eg-headers
"""
return AsyncCheckpointsResourceWithRawResponse(self)
@@ -61,7 +61,7 @@ def with_streaming_response(self) -> AsyncCheckpointsResourceWithStreamingRespon
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
+ For more information, see https://www.github.com/digitalocean/genai-python#with_streaming_response
"""
return AsyncCheckpointsResourceWithStreamingResponse(self)
diff --git a/src/serverless_inference_sdk_prod/resources/fine_tuning/checkpoints/permissions.py b/src/serverless_inference_sdk_prod/resources/fine_tuning/checkpoints/permissions.py
index 42f8d6b8..39e6a210 100644
--- a/src/serverless_inference_sdk_prod/resources/fine_tuning/checkpoints/permissions.py
+++ b/src/serverless_inference_sdk_prod/resources/fine_tuning/checkpoints/permissions.py
@@ -32,7 +32,7 @@ def with_raw_response(self) -> PermissionsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/digitalocean/genai-python#accessing-raw-response-data-eg-headers
"""
return PermissionsResourceWithRawResponse(self)
@@ -41,7 +41,7 @@ def with_streaming_response(self) -> PermissionsResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
+ For more information, see https://www.github.com/digitalocean/genai-python#with_streaming_response
"""
return PermissionsResourceWithStreamingResponse(self)
@@ -189,7 +189,7 @@ def with_raw_response(self) -> AsyncPermissionsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/digitalocean/genai-python#accessing-raw-response-data-eg-headers
"""
return AsyncPermissionsResourceWithRawResponse(self)
@@ -198,7 +198,7 @@ def with_streaming_response(self) -> AsyncPermissionsResourceWithStreamingRespon
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
+ For more information, see https://www.github.com/digitalocean/genai-python#with_streaming_response
"""
return AsyncPermissionsResourceWithStreamingResponse(self)
diff --git a/src/serverless_inference_sdk_prod/resources/fine_tuning/fine_tuning.py b/src/serverless_inference_sdk_prod/resources/fine_tuning/fine_tuning.py
index 7dc2b367..9c097afe 100644
--- a/src/serverless_inference_sdk_prod/resources/fine_tuning/fine_tuning.py
+++ b/src/serverless_inference_sdk_prod/resources/fine_tuning/fine_tuning.py
@@ -39,7 +39,7 @@ def with_raw_response(self) -> FineTuningResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/digitalocean/genai-python#accessing-raw-response-data-eg-headers
"""
return FineTuningResourceWithRawResponse(self)
@@ -48,7 +48,7 @@ def with_streaming_response(self) -> FineTuningResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
+ For more information, see https://www.github.com/digitalocean/genai-python#with_streaming_response
"""
return FineTuningResourceWithStreamingResponse(self)
@@ -68,7 +68,7 @@ def with_raw_response(self) -> AsyncFineTuningResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/digitalocean/genai-python#accessing-raw-response-data-eg-headers
"""
return AsyncFineTuningResourceWithRawResponse(self)
@@ -77,7 +77,7 @@ def with_streaming_response(self) -> AsyncFineTuningResourceWithStreamingRespons
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
+ For more information, see https://www.github.com/digitalocean/genai-python#with_streaming_response
"""
return AsyncFineTuningResourceWithStreamingResponse(self)
diff --git a/src/serverless_inference_sdk_prod/resources/fine_tuning/jobs/checkpoints.py b/src/serverless_inference_sdk_prod/resources/fine_tuning/jobs/checkpoints.py
index aa99e4e4..adac27a5 100644
--- a/src/serverless_inference_sdk_prod/resources/fine_tuning/jobs/checkpoints.py
+++ b/src/serverless_inference_sdk_prod/resources/fine_tuning/jobs/checkpoints.py
@@ -28,7 +28,7 @@ def with_raw_response(self) -> CheckpointsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/digitalocean/genai-python#accessing-raw-response-data-eg-headers
"""
return CheckpointsResourceWithRawResponse(self)
@@ -37,7 +37,7 @@ def with_streaming_response(self) -> CheckpointsResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
+ For more information, see https://www.github.com/digitalocean/genai-python#with_streaming_response
"""
return CheckpointsResourceWithStreamingResponse(self)
@@ -98,7 +98,7 @@ def with_raw_response(self) -> AsyncCheckpointsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/digitalocean/genai-python#accessing-raw-response-data-eg-headers
"""
return AsyncCheckpointsResourceWithRawResponse(self)
@@ -107,7 +107,7 @@ def with_streaming_response(self) -> AsyncCheckpointsResourceWithStreamingRespon
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
+ For more information, see https://www.github.com/digitalocean/genai-python#with_streaming_response
"""
return AsyncCheckpointsResourceWithStreamingResponse(self)
diff --git a/src/serverless_inference_sdk_prod/resources/fine_tuning/jobs/events.py b/src/serverless_inference_sdk_prod/resources/fine_tuning/jobs/events.py
index db06a0b5..56d64766 100644
--- a/src/serverless_inference_sdk_prod/resources/fine_tuning/jobs/events.py
+++ b/src/serverless_inference_sdk_prod/resources/fine_tuning/jobs/events.py
@@ -28,7 +28,7 @@ def with_raw_response(self) -> EventsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/digitalocean/genai-python#accessing-raw-response-data-eg-headers
"""
return EventsResourceWithRawResponse(self)
@@ -37,7 +37,7 @@ def with_streaming_response(self) -> EventsResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
+ For more information, see https://www.github.com/digitalocean/genai-python#with_streaming_response
"""
return EventsResourceWithStreamingResponse(self)
@@ -98,7 +98,7 @@ def with_raw_response(self) -> AsyncEventsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/digitalocean/genai-python#accessing-raw-response-data-eg-headers
"""
return AsyncEventsResourceWithRawResponse(self)
@@ -107,7 +107,7 @@ def with_streaming_response(self) -> AsyncEventsResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
+ For more information, see https://www.github.com/digitalocean/genai-python#with_streaming_response
"""
return AsyncEventsResourceWithStreamingResponse(self)
diff --git a/src/serverless_inference_sdk_prod/resources/fine_tuning/jobs/jobs.py b/src/serverless_inference_sdk_prod/resources/fine_tuning/jobs/jobs.py
index bc592094..09670aa9 100644
--- a/src/serverless_inference_sdk_prod/resources/fine_tuning/jobs/jobs.py
+++ b/src/serverless_inference_sdk_prod/resources/fine_tuning/jobs/jobs.py
@@ -57,7 +57,7 @@ def with_raw_response(self) -> JobsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/digitalocean/genai-python#accessing-raw-response-data-eg-headers
"""
return JobsResourceWithRawResponse(self)
@@ -66,7 +66,7 @@ def with_streaming_response(self) -> JobsResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
+ For more information, see https://www.github.com/digitalocean/genai-python#with_streaming_response
"""
return JobsResourceWithStreamingResponse(self)
@@ -318,7 +318,7 @@ def with_raw_response(self) -> AsyncJobsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/digitalocean/genai-python#accessing-raw-response-data-eg-headers
"""
return AsyncJobsResourceWithRawResponse(self)
@@ -327,7 +327,7 @@ def with_streaming_response(self) -> AsyncJobsResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
+ For more information, see https://www.github.com/digitalocean/genai-python#with_streaming_response
"""
return AsyncJobsResourceWithStreamingResponse(self)
diff --git a/src/serverless_inference_sdk_prod/resources/images.py b/src/serverless_inference_sdk_prod/resources/images.py
index 35fbc3b9..6003c71b 100644
--- a/src/serverless_inference_sdk_prod/resources/images.py
+++ b/src/serverless_inference_sdk_prod/resources/images.py
@@ -31,7 +31,7 @@ def with_raw_response(self) -> ImagesResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/digitalocean/genai-python#accessing-raw-response-data-eg-headers
"""
return ImagesResourceWithRawResponse(self)
@@ -40,7 +40,7 @@ def with_streaming_response(self) -> ImagesResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
+ For more information, see https://www.github.com/digitalocean/genai-python#with_streaming_response
"""
return ImagesResourceWithStreamingResponse(self)
@@ -285,7 +285,7 @@ def with_raw_response(self) -> AsyncImagesResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/digitalocean/genai-python#accessing-raw-response-data-eg-headers
"""
return AsyncImagesResourceWithRawResponse(self)
@@ -294,7 +294,7 @@ def with_streaming_response(self) -> AsyncImagesResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
+ For more information, see https://www.github.com/digitalocean/genai-python#with_streaming_response
"""
return AsyncImagesResourceWithStreamingResponse(self)
diff --git a/src/serverless_inference_sdk_prod/resources/models.py b/src/serverless_inference_sdk_prod/resources/models.py
index bf1ff3a3..9bdebc56 100644
--- a/src/serverless_inference_sdk_prod/resources/models.py
+++ b/src/serverless_inference_sdk_prod/resources/models.py
@@ -28,7 +28,7 @@ def with_raw_response(self) -> ModelsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/digitalocean/genai-python#accessing-raw-response-data-eg-headers
"""
return ModelsResourceWithRawResponse(self)
@@ -37,7 +37,7 @@ def with_streaming_response(self) -> ModelsResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
+ For more information, see https://www.github.com/digitalocean/genai-python#with_streaming_response
"""
return ModelsResourceWithStreamingResponse(self)
@@ -140,7 +140,7 @@ def with_raw_response(self) -> AsyncModelsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/digitalocean/genai-python#accessing-raw-response-data-eg-headers
"""
return AsyncModelsResourceWithRawResponse(self)
@@ -149,7 +149,7 @@ def with_streaming_response(self) -> AsyncModelsResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
+ For more information, see https://www.github.com/digitalocean/genai-python#with_streaming_response
"""
return AsyncModelsResourceWithStreamingResponse(self)
diff --git a/src/serverless_inference_sdk_prod/resources/moderations.py b/src/serverless_inference_sdk_prod/resources/moderations.py
index fd7fc49a..5979cc29 100644
--- a/src/serverless_inference_sdk_prod/resources/moderations.py
+++ b/src/serverless_inference_sdk_prod/resources/moderations.py
@@ -31,7 +31,7 @@ def with_raw_response(self) -> ModerationsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/digitalocean/genai-python#accessing-raw-response-data-eg-headers
"""
return ModerationsResourceWithRawResponse(self)
@@ -40,7 +40,7 @@ def with_streaming_response(self) -> ModerationsResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
+ For more information, see https://www.github.com/digitalocean/genai-python#with_streaming_response
"""
return ModerationsResourceWithStreamingResponse(self)
@@ -109,7 +109,7 @@ def with_raw_response(self) -> AsyncModerationsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/digitalocean/genai-python#accessing-raw-response-data-eg-headers
"""
return AsyncModerationsResourceWithRawResponse(self)
@@ -118,7 +118,7 @@ def with_streaming_response(self) -> AsyncModerationsResourceWithStreamingRespon
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
+ For more information, see https://www.github.com/digitalocean/genai-python#with_streaming_response
"""
return AsyncModerationsResourceWithStreamingResponse(self)
diff --git a/src/serverless_inference_sdk_prod/resources/organization/admin_api_keys.py b/src/serverless_inference_sdk_prod/resources/organization/admin_api_keys.py
index 664c5e64..d98c5fb7 100644
--- a/src/serverless_inference_sdk_prod/resources/organization/admin_api_keys.py
+++ b/src/serverless_inference_sdk_prod/resources/organization/admin_api_keys.py
@@ -33,7 +33,7 @@ def with_raw_response(self) -> AdminAPIKeysResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/digitalocean/genai-python#accessing-raw-response-data-eg-headers
"""
return AdminAPIKeysResourceWithRawResponse(self)
@@ -42,7 +42,7 @@ def with_streaming_response(self) -> AdminAPIKeysResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
+ For more information, see https://www.github.com/digitalocean/genai-python#with_streaming_response
"""
return AdminAPIKeysResourceWithStreamingResponse(self)
@@ -206,7 +206,7 @@ def with_raw_response(self) -> AsyncAdminAPIKeysResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/digitalocean/genai-python#accessing-raw-response-data-eg-headers
"""
return AsyncAdminAPIKeysResourceWithRawResponse(self)
@@ -215,7 +215,7 @@ def with_streaming_response(self) -> AsyncAdminAPIKeysResourceWithStreamingRespo
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
+ For more information, see https://www.github.com/digitalocean/genai-python#with_streaming_response
"""
return AsyncAdminAPIKeysResourceWithStreamingResponse(self)
diff --git a/src/serverless_inference_sdk_prod/resources/organization/invites.py b/src/serverless_inference_sdk_prod/resources/organization/invites.py
index ce6b6feb..392d4308 100644
--- a/src/serverless_inference_sdk_prod/resources/organization/invites.py
+++ b/src/serverless_inference_sdk_prod/resources/organization/invites.py
@@ -33,7 +33,7 @@ def with_raw_response(self) -> InvitesResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/digitalocean/genai-python#accessing-raw-response-data-eg-headers
"""
return InvitesResourceWithRawResponse(self)
@@ -42,7 +42,7 @@ def with_streaming_response(self) -> InvitesResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
+ For more information, see https://www.github.com/digitalocean/genai-python#with_streaming_response
"""
return InvitesResourceWithStreamingResponse(self)
@@ -222,7 +222,7 @@ def with_raw_response(self) -> AsyncInvitesResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/digitalocean/genai-python#accessing-raw-response-data-eg-headers
"""
return AsyncInvitesResourceWithRawResponse(self)
@@ -231,7 +231,7 @@ def with_streaming_response(self) -> AsyncInvitesResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
+ For more information, see https://www.github.com/digitalocean/genai-python#with_streaming_response
"""
return AsyncInvitesResourceWithStreamingResponse(self)
diff --git a/src/serverless_inference_sdk_prod/resources/organization/organization.py b/src/serverless_inference_sdk_prod/resources/organization/organization.py
index 892ac56f..abb1d7c8 100644
--- a/src/serverless_inference_sdk_prod/resources/organization/organization.py
+++ b/src/serverless_inference_sdk_prod/resources/organization/organization.py
@@ -93,7 +93,7 @@ def with_raw_response(self) -> OrganizationResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/digitalocean/genai-python#accessing-raw-response-data-eg-headers
"""
return OrganizationResourceWithRawResponse(self)
@@ -102,7 +102,7 @@ def with_streaming_response(self) -> OrganizationResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
+ For more information, see https://www.github.com/digitalocean/genai-python#with_streaming_response
"""
return OrganizationResourceWithStreamingResponse(self)
@@ -289,7 +289,7 @@ def with_raw_response(self) -> AsyncOrganizationResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/digitalocean/genai-python#accessing-raw-response-data-eg-headers
"""
return AsyncOrganizationResourceWithRawResponse(self)
@@ -298,7 +298,7 @@ def with_streaming_response(self) -> AsyncOrganizationResourceWithStreamingRespo
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
+ For more information, see https://www.github.com/digitalocean/genai-python#with_streaming_response
"""
return AsyncOrganizationResourceWithStreamingResponse(self)
diff --git a/src/serverless_inference_sdk_prod/resources/organization/projects/api_keys.py b/src/serverless_inference_sdk_prod/resources/organization/projects/api_keys.py
index 299f166a..390b7a3b 100644
--- a/src/serverless_inference_sdk_prod/resources/organization/projects/api_keys.py
+++ b/src/serverless_inference_sdk_prod/resources/organization/projects/api_keys.py
@@ -30,7 +30,7 @@ def with_raw_response(self) -> APIKeysResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/digitalocean/genai-python#accessing-raw-response-data-eg-headers
"""
return APIKeysResourceWithRawResponse(self)
@@ -39,7 +39,7 @@ def with_streaming_response(self) -> APIKeysResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
+ For more information, see https://www.github.com/digitalocean/genai-python#with_streaming_response
"""
return APIKeysResourceWithStreamingResponse(self)
@@ -176,7 +176,7 @@ def with_raw_response(self) -> AsyncAPIKeysResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/digitalocean/genai-python#accessing-raw-response-data-eg-headers
"""
return AsyncAPIKeysResourceWithRawResponse(self)
@@ -185,7 +185,7 @@ def with_streaming_response(self) -> AsyncAPIKeysResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
+ For more information, see https://www.github.com/digitalocean/genai-python#with_streaming_response
"""
return AsyncAPIKeysResourceWithStreamingResponse(self)
diff --git a/src/serverless_inference_sdk_prod/resources/organization/projects/projects.py b/src/serverless_inference_sdk_prod/resources/organization/projects/projects.py
index 2ab4aee6..942c8773 100644
--- a/src/serverless_inference_sdk_prod/resources/organization/projects/projects.py
+++ b/src/serverless_inference_sdk_prod/resources/organization/projects/projects.py
@@ -77,7 +77,7 @@ def with_raw_response(self) -> ProjectsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/digitalocean/genai-python#accessing-raw-response-data-eg-headers
"""
return ProjectsResourceWithRawResponse(self)
@@ -86,7 +86,7 @@ def with_streaming_response(self) -> ProjectsResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
+ For more information, see https://www.github.com/digitalocean/genai-python#with_streaming_response
"""
return ProjectsResourceWithStreamingResponse(self)
@@ -311,7 +311,7 @@ def with_raw_response(self) -> AsyncProjectsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/digitalocean/genai-python#accessing-raw-response-data-eg-headers
"""
return AsyncProjectsResourceWithRawResponse(self)
@@ -320,7 +320,7 @@ def with_streaming_response(self) -> AsyncProjectsResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
+ For more information, see https://www.github.com/digitalocean/genai-python#with_streaming_response
"""
return AsyncProjectsResourceWithStreamingResponse(self)
diff --git a/src/serverless_inference_sdk_prod/resources/organization/projects/rate_limits.py b/src/serverless_inference_sdk_prod/resources/organization/projects/rate_limits.py
index 9ea0b180..c12f7fbe 100644
--- a/src/serverless_inference_sdk_prod/resources/organization/projects/rate_limits.py
+++ b/src/serverless_inference_sdk_prod/resources/organization/projects/rate_limits.py
@@ -29,7 +29,7 @@ def with_raw_response(self) -> RateLimitsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/digitalocean/genai-python#accessing-raw-response-data-eg-headers
"""
return RateLimitsResourceWithRawResponse(self)
@@ -38,7 +38,7 @@ def with_streaming_response(self) -> RateLimitsResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
+ For more information, see https://www.github.com/digitalocean/genai-python#with_streaming_response
"""
return RateLimitsResourceWithStreamingResponse(self)
@@ -174,7 +174,7 @@ def with_raw_response(self) -> AsyncRateLimitsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/digitalocean/genai-python#accessing-raw-response-data-eg-headers
"""
return AsyncRateLimitsResourceWithRawResponse(self)
@@ -183,7 +183,7 @@ def with_streaming_response(self) -> AsyncRateLimitsResourceWithStreamingRespons
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
+ For more information, see https://www.github.com/digitalocean/genai-python#with_streaming_response
"""
return AsyncRateLimitsResourceWithStreamingResponse(self)
diff --git a/src/serverless_inference_sdk_prod/resources/organization/projects/service_accounts.py b/src/serverless_inference_sdk_prod/resources/organization/projects/service_accounts.py
index fb68758a..d6c729c1 100644
--- a/src/serverless_inference_sdk_prod/resources/organization/projects/service_accounts.py
+++ b/src/serverless_inference_sdk_prod/resources/organization/projects/service_accounts.py
@@ -31,7 +31,7 @@ def with_raw_response(self) -> ServiceAccountsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/digitalocean/genai-python#accessing-raw-response-data-eg-headers
"""
return ServiceAccountsResourceWithRawResponse(self)
@@ -40,7 +40,7 @@ def with_streaming_response(self) -> ServiceAccountsResourceWithStreamingRespons
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
+ For more information, see https://www.github.com/digitalocean/genai-python#with_streaming_response
"""
return ServiceAccountsResourceWithStreamingResponse(self)
@@ -216,7 +216,7 @@ def with_raw_response(self) -> AsyncServiceAccountsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/digitalocean/genai-python#accessing-raw-response-data-eg-headers
"""
return AsyncServiceAccountsResourceWithRawResponse(self)
@@ -225,7 +225,7 @@ def with_streaming_response(self) -> AsyncServiceAccountsResourceWithStreamingRe
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
+ For more information, see https://www.github.com/digitalocean/genai-python#with_streaming_response
"""
return AsyncServiceAccountsResourceWithStreamingResponse(self)
diff --git a/src/serverless_inference_sdk_prod/resources/organization/projects/users.py b/src/serverless_inference_sdk_prod/resources/organization/projects/users.py
index 1e5f3e86..6e40263a 100644
--- a/src/serverless_inference_sdk_prod/resources/organization/projects/users.py
+++ b/src/serverless_inference_sdk_prod/resources/organization/projects/users.py
@@ -32,7 +32,7 @@ def with_raw_response(self) -> UsersResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/digitalocean/genai-python#accessing-raw-response-data-eg-headers
"""
return UsersResourceWithRawResponse(self)
@@ -41,7 +41,7 @@ def with_streaming_response(self) -> UsersResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
+ For more information, see https://www.github.com/digitalocean/genai-python#with_streaming_response
"""
return UsersResourceWithStreamingResponse(self)
@@ -266,7 +266,7 @@ def with_raw_response(self) -> AsyncUsersResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/digitalocean/genai-python#accessing-raw-response-data-eg-headers
"""
return AsyncUsersResourceWithRawResponse(self)
@@ -275,7 +275,7 @@ def with_streaming_response(self) -> AsyncUsersResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
+ For more information, see https://www.github.com/digitalocean/genai-python#with_streaming_response
"""
return AsyncUsersResourceWithStreamingResponse(self)
diff --git a/src/serverless_inference_sdk_prod/resources/organization/usage.py b/src/serverless_inference_sdk_prod/resources/organization/usage.py
index 318bac7c..2eae3b13 100644
--- a/src/serverless_inference_sdk_prod/resources/organization/usage.py
+++ b/src/serverless_inference_sdk_prod/resources/organization/usage.py
@@ -40,7 +40,7 @@ def with_raw_response(self) -> UsageResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/digitalocean/genai-python#accessing-raw-response-data-eg-headers
"""
return UsageResourceWithRawResponse(self)
@@ -49,7 +49,7 @@ def with_streaming_response(self) -> UsageResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
+ For more information, see https://www.github.com/digitalocean/genai-python#with_streaming_response
"""
return UsageResourceWithStreamingResponse(self)
@@ -735,7 +735,7 @@ def with_raw_response(self) -> AsyncUsageResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/digitalocean/genai-python#accessing-raw-response-data-eg-headers
"""
return AsyncUsageResourceWithRawResponse(self)
@@ -744,7 +744,7 @@ def with_streaming_response(self) -> AsyncUsageResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
+ For more information, see https://www.github.com/digitalocean/genai-python#with_streaming_response
"""
return AsyncUsageResourceWithStreamingResponse(self)
diff --git a/src/serverless_inference_sdk_prod/resources/organization/users.py b/src/serverless_inference_sdk_prod/resources/organization/users.py
index d7457d87..794b038b 100644
--- a/src/serverless_inference_sdk_prod/resources/organization/users.py
+++ b/src/serverless_inference_sdk_prod/resources/organization/users.py
@@ -33,7 +33,7 @@ def with_raw_response(self) -> UsersResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/digitalocean/genai-python#accessing-raw-response-data-eg-headers
"""
return UsersResourceWithRawResponse(self)
@@ -42,7 +42,7 @@ def with_streaming_response(self) -> UsersResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
+ For more information, see https://www.github.com/digitalocean/genai-python#with_streaming_response
"""
return UsersResourceWithStreamingResponse(self)
@@ -211,7 +211,7 @@ def with_raw_response(self) -> AsyncUsersResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/digitalocean/genai-python#accessing-raw-response-data-eg-headers
"""
return AsyncUsersResourceWithRawResponse(self)
@@ -220,7 +220,7 @@ def with_streaming_response(self) -> AsyncUsersResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
+ For more information, see https://www.github.com/digitalocean/genai-python#with_streaming_response
"""
return AsyncUsersResourceWithStreamingResponse(self)
diff --git a/src/serverless_inference_sdk_prod/resources/realtime.py b/src/serverless_inference_sdk_prod/resources/realtime.py
index 23fdc244..bfa61beb 100644
--- a/src/serverless_inference_sdk_prod/resources/realtime.py
+++ b/src/serverless_inference_sdk_prod/resources/realtime.py
@@ -33,7 +33,7 @@ def with_raw_response(self) -> RealtimeResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/digitalocean/genai-python#accessing-raw-response-data-eg-headers
"""
return RealtimeResourceWithRawResponse(self)
@@ -42,7 +42,7 @@ def with_streaming_response(self) -> RealtimeResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
+ For more information, see https://www.github.com/digitalocean/genai-python#with_streaming_response
"""
return RealtimeResourceWithStreamingResponse(self)
@@ -283,7 +283,7 @@ def with_raw_response(self) -> AsyncRealtimeResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/digitalocean/genai-python#accessing-raw-response-data-eg-headers
"""
return AsyncRealtimeResourceWithRawResponse(self)
@@ -292,7 +292,7 @@ def with_streaming_response(self) -> AsyncRealtimeResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
+ For more information, see https://www.github.com/digitalocean/genai-python#with_streaming_response
"""
return AsyncRealtimeResourceWithStreamingResponse(self)
diff --git a/src/serverless_inference_sdk_prod/resources/responses.py b/src/serverless_inference_sdk_prod/resources/responses.py
index ddf33834..1890002e 100644
--- a/src/serverless_inference_sdk_prod/resources/responses.py
+++ b/src/serverless_inference_sdk_prod/resources/responses.py
@@ -33,7 +33,7 @@ def with_raw_response(self) -> ResponsesResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/digitalocean/genai-python#accessing-raw-response-data-eg-headers
"""
return ResponsesResourceWithRawResponse(self)
@@ -42,7 +42,7 @@ def with_streaming_response(self) -> ResponsesResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
+ For more information, see https://www.github.com/digitalocean/genai-python#with_streaming_response
"""
return ResponsesResourceWithStreamingResponse(self)
@@ -434,7 +434,7 @@ def with_raw_response(self) -> AsyncResponsesResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/digitalocean/genai-python#accessing-raw-response-data-eg-headers
"""
return AsyncResponsesResourceWithRawResponse(self)
@@ -443,7 +443,7 @@ def with_streaming_response(self) -> AsyncResponsesResourceWithStreamingResponse
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
+ For more information, see https://www.github.com/digitalocean/genai-python#with_streaming_response
"""
return AsyncResponsesResourceWithStreamingResponse(self)
diff --git a/src/serverless_inference_sdk_prod/resources/threads/messages.py b/src/serverless_inference_sdk_prod/resources/threads/messages.py
index 6cdf9202..c4f75672 100644
--- a/src/serverless_inference_sdk_prod/resources/threads/messages.py
+++ b/src/serverless_inference_sdk_prod/resources/threads/messages.py
@@ -33,7 +33,7 @@ def with_raw_response(self) -> MessagesResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/digitalocean/genai-python#accessing-raw-response-data-eg-headers
"""
return MessagesResourceWithRawResponse(self)
@@ -42,7 +42,7 @@ def with_streaming_response(self) -> MessagesResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
+ For more information, see https://www.github.com/digitalocean/genai-python#with_streaming_response
"""
return MessagesResourceWithStreamingResponse(self)
@@ -305,7 +305,7 @@ def with_raw_response(self) -> AsyncMessagesResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/digitalocean/genai-python#accessing-raw-response-data-eg-headers
"""
return AsyncMessagesResourceWithRawResponse(self)
@@ -314,7 +314,7 @@ def with_streaming_response(self) -> AsyncMessagesResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
+ For more information, see https://www.github.com/digitalocean/genai-python#with_streaming_response
"""
return AsyncMessagesResourceWithStreamingResponse(self)
diff --git a/src/serverless_inference_sdk_prod/resources/threads/runs/runs.py b/src/serverless_inference_sdk_prod/resources/threads/runs/runs.py
index 122aaf8d..102ea165 100644
--- a/src/serverless_inference_sdk_prod/resources/threads/runs/runs.py
+++ b/src/serverless_inference_sdk_prod/resources/threads/runs/runs.py
@@ -58,7 +58,7 @@ def with_raw_response(self) -> RunsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/digitalocean/genai-python#accessing-raw-response-data-eg-headers
"""
return RunsResourceWithRawResponse(self)
@@ -67,7 +67,7 @@ def with_streaming_response(self) -> RunsResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
+ For more information, see https://www.github.com/digitalocean/genai-python#with_streaming_response
"""
return RunsResourceWithStreamingResponse(self)
@@ -686,7 +686,7 @@ def with_raw_response(self) -> AsyncRunsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/digitalocean/genai-python#accessing-raw-response-data-eg-headers
"""
return AsyncRunsResourceWithRawResponse(self)
@@ -695,7 +695,7 @@ def with_streaming_response(self) -> AsyncRunsResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
+ For more information, see https://www.github.com/digitalocean/genai-python#with_streaming_response
"""
return AsyncRunsResourceWithStreamingResponse(self)
diff --git a/src/serverless_inference_sdk_prod/resources/threads/runs/steps.py b/src/serverless_inference_sdk_prod/resources/threads/runs/steps.py
index c5ef1c22..bf0b8749 100644
--- a/src/serverless_inference_sdk_prod/resources/threads/runs/steps.py
+++ b/src/serverless_inference_sdk_prod/resources/threads/runs/steps.py
@@ -32,7 +32,7 @@ def with_raw_response(self) -> StepsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/digitalocean/genai-python#accessing-raw-response-data-eg-headers
"""
return StepsResourceWithRawResponse(self)
@@ -41,7 +41,7 @@ def with_streaming_response(self) -> StepsResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
+ For more information, see https://www.github.com/digitalocean/genai-python#with_streaming_response
"""
return StepsResourceWithStreamingResponse(self)
@@ -183,7 +183,7 @@ def with_raw_response(self) -> AsyncStepsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/digitalocean/genai-python#accessing-raw-response-data-eg-headers
"""
return AsyncStepsResourceWithRawResponse(self)
@@ -192,7 +192,7 @@ def with_streaming_response(self) -> AsyncStepsResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
+ For more information, see https://www.github.com/digitalocean/genai-python#with_streaming_response
"""
return AsyncStepsResourceWithStreamingResponse(self)
diff --git a/src/serverless_inference_sdk_prod/resources/threads/threads.py b/src/serverless_inference_sdk_prod/resources/threads/threads.py
index 676f970e..5fdf5ea8 100644
--- a/src/serverless_inference_sdk_prod/resources/threads/threads.py
+++ b/src/serverless_inference_sdk_prod/resources/threads/threads.py
@@ -56,7 +56,7 @@ def with_raw_response(self) -> ThreadsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/digitalocean/genai-python#accessing-raw-response-data-eg-headers
"""
return ThreadsResourceWithRawResponse(self)
@@ -65,7 +65,7 @@ def with_streaming_response(self) -> ThreadsResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
+ For more information, see https://www.github.com/digitalocean/genai-python#with_streaming_response
"""
return ThreadsResourceWithStreamingResponse(self)
@@ -260,7 +260,7 @@ def with_raw_response(self) -> AsyncThreadsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/digitalocean/genai-python#accessing-raw-response-data-eg-headers
"""
return AsyncThreadsResourceWithRawResponse(self)
@@ -269,7 +269,7 @@ def with_streaming_response(self) -> AsyncThreadsResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
+ For more information, see https://www.github.com/digitalocean/genai-python#with_streaming_response
"""
return AsyncThreadsResourceWithStreamingResponse(self)
diff --git a/src/serverless_inference_sdk_prod/resources/uploads.py b/src/serverless_inference_sdk_prod/resources/uploads.py
index 774b31c9..d36ad23e 100644
--- a/src/serverless_inference_sdk_prod/resources/uploads.py
+++ b/src/serverless_inference_sdk_prod/resources/uploads.py
@@ -32,7 +32,7 @@ def with_raw_response(self) -> UploadsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/digitalocean/genai-python#accessing-raw-response-data-eg-headers
"""
return UploadsResourceWithRawResponse(self)
@@ -41,7 +41,7 @@ def with_streaming_response(self) -> UploadsResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
+ For more information, see https://www.github.com/digitalocean/genai-python#with_streaming_response
"""
return UploadsResourceWithStreamingResponse(self)
@@ -270,7 +270,7 @@ def with_raw_response(self) -> AsyncUploadsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/digitalocean/genai-python#accessing-raw-response-data-eg-headers
"""
return AsyncUploadsResourceWithRawResponse(self)
@@ -279,7 +279,7 @@ def with_streaming_response(self) -> AsyncUploadsResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
+ For more information, see https://www.github.com/digitalocean/genai-python#with_streaming_response
"""
return AsyncUploadsResourceWithStreamingResponse(self)
diff --git a/src/serverless_inference_sdk_prod/resources/vector_stores/file_batches.py b/src/serverless_inference_sdk_prod/resources/vector_stores/file_batches.py
index 100e3f5b..d6dba5f9 100644
--- a/src/serverless_inference_sdk_prod/resources/vector_stores/file_batches.py
+++ b/src/serverless_inference_sdk_prod/resources/vector_stores/file_batches.py
@@ -33,7 +33,7 @@ def with_raw_response(self) -> FileBatchesResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/digitalocean/genai-python#accessing-raw-response-data-eg-headers
"""
return FileBatchesResourceWithRawResponse(self)
@@ -42,7 +42,7 @@ def with_streaming_response(self) -> FileBatchesResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
+ For more information, see https://www.github.com/digitalocean/genai-python#with_streaming_response
"""
return FileBatchesResourceWithStreamingResponse(self)
@@ -256,7 +256,7 @@ def with_raw_response(self) -> AsyncFileBatchesResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/digitalocean/genai-python#accessing-raw-response-data-eg-headers
"""
return AsyncFileBatchesResourceWithRawResponse(self)
@@ -265,7 +265,7 @@ def with_streaming_response(self) -> AsyncFileBatchesResourceWithStreamingRespon
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
+ For more information, see https://www.github.com/digitalocean/genai-python#with_streaming_response
"""
return AsyncFileBatchesResourceWithStreamingResponse(self)
diff --git a/src/serverless_inference_sdk_prod/resources/vector_stores/files.py b/src/serverless_inference_sdk_prod/resources/vector_stores/files.py
index 617c5267..84576820 100644
--- a/src/serverless_inference_sdk_prod/resources/vector_stores/files.py
+++ b/src/serverless_inference_sdk_prod/resources/vector_stores/files.py
@@ -40,7 +40,7 @@ def with_raw_response(self) -> FilesResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/digitalocean/genai-python#accessing-raw-response-data-eg-headers
"""
return FilesResourceWithRawResponse(self)
@@ -49,7 +49,7 @@ def with_streaming_response(self) -> FilesResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
+ For more information, see https://www.github.com/digitalocean/genai-python#with_streaming_response
"""
return FilesResourceWithStreamingResponse(self)
@@ -342,7 +342,7 @@ def with_raw_response(self) -> AsyncFilesResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/digitalocean/genai-python#accessing-raw-response-data-eg-headers
"""
return AsyncFilesResourceWithRawResponse(self)
@@ -351,7 +351,7 @@ def with_streaming_response(self) -> AsyncFilesResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
+ For more information, see https://www.github.com/digitalocean/genai-python#with_streaming_response
"""
return AsyncFilesResourceWithStreamingResponse(self)
diff --git a/src/serverless_inference_sdk_prod/resources/vector_stores/vector_stores.py b/src/serverless_inference_sdk_prod/resources/vector_stores/vector_stores.py
index fb5dd4dc..0e80da49 100644
--- a/src/serverless_inference_sdk_prod/resources/vector_stores/vector_stores.py
+++ b/src/serverless_inference_sdk_prod/resources/vector_stores/vector_stores.py
@@ -64,7 +64,7 @@ def with_raw_response(self) -> VectorStoresResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/digitalocean/genai-python#accessing-raw-response-data-eg-headers
"""
return VectorStoresResourceWithRawResponse(self)
@@ -73,7 +73,7 @@ def with_streaming_response(self) -> VectorStoresResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
+ For more information, see https://www.github.com/digitalocean/genai-python#with_streaming_response
"""
return VectorStoresResourceWithStreamingResponse(self)
@@ -399,7 +399,7 @@ def with_raw_response(self) -> AsyncVectorStoresResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/digitalocean/genai-python#accessing-raw-response-data-eg-headers
"""
return AsyncVectorStoresResourceWithRawResponse(self)
@@ -408,7 +408,7 @@ def with_streaming_response(self) -> AsyncVectorStoresResourceWithStreamingRespo
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/serverless-inference-sdk-prod-python#with_streaming_response
+ For more information, see https://www.github.com/digitalocean/genai-python#with_streaming_response
"""
return AsyncVectorStoresResourceWithStreamingResponse(self)
From 53efef7c21a5e666e103a76a36059810c2532f05 Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Tue, 10 Jun 2025 16:29:52 +0000
Subject: [PATCH 3/5] chore: update SDK settings
---
.stats.yml | 2 +-
README.md | 9 +++------
pyproject.toml | 2 +-
requirements-dev.lock | 12 ++++++------
requirements.lock | 12 ++++++------
5 files changed, 17 insertions(+), 20 deletions(-)
diff --git a/.stats.yml b/.stats.yml
index ba11c73a..8fbaae1c 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 126
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/digitalocean%2Fserverless-inference-sdk-prod-bdf24159c6ebb5402d6c05a5165cb1501dc37cf6c664baa9eb318efb0f89dddd.yml
openapi_spec_hash: 686329a97002025d118dc2367755c18d
-config_hash: 957c083fd469376dc3f1320ae9222e73
+config_hash: 458cab7339af0d949371a36b603d7dcd
diff --git a/README.md b/README.md
index d7ad0c54..f70b8bd3 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
# Serverless Inference SDK Prod Python API library
-[](https://pypi.org/project/serverless_inference_sdk_prod/)
+[](https://pypi.org/project/do-genai/)
The Serverless Inference SDK Prod Python library provides convenient access to the Serverless Inference SDK Prod REST API from any Python 3.8+
application. The library includes type definitions for all request params and response fields,
@@ -15,13 +15,10 @@ The REST API documentation can be found on [help.openai.com](https://help.openai
## Installation
```sh
-# install from the production repo
-pip install git+ssh://git@github.com/digitalocean/genai-python.git
+# install from PyPI
+pip install --pre do-genai
```
-> [!NOTE]
-> Once this package is [published to PyPI](https://app.stainless.com/docs/guides/publish), this will become: `pip install --pre serverless_inference_sdk_prod`
-
## Usage
The full API of this library can be found in [api.md](api.md).
diff --git a/pyproject.toml b/pyproject.toml
index e177f969..fc9862c6 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,5 +1,5 @@
[project]
-name = "serverless_inference_sdk_prod"
+name = "do-genai"
version = "0.0.1-alpha.0"
description = "The official Python library for the serverless-inference-sdk-prod API"
dynamic = ["readme"]
diff --git a/requirements-dev.lock b/requirements-dev.lock
index 0c57deb0..8a2680e6 100644
--- a/requirements-dev.lock
+++ b/requirements-dev.lock
@@ -13,8 +13,8 @@
annotated-types==0.6.0
# via pydantic
anyio==4.4.0
+ # via do-genai
# via httpx
- # via serverless-inference-sdk-prod
argcomplete==3.1.2
# via nox
certifi==2023.7.22
@@ -26,7 +26,7 @@ dirty-equals==0.6.0
distlib==0.3.7
# via virtualenv
distro==1.8.0
- # via serverless-inference-sdk-prod
+ # via do-genai
exceptiongroup==1.2.2
# via anyio
# via pytest
@@ -37,8 +37,8 @@ h11==0.14.0
httpcore==1.0.2
# via httpx
httpx==0.28.1
+ # via do-genai
# via respx
- # via serverless-inference-sdk-prod
idna==3.4
# via anyio
# via httpx
@@ -64,7 +64,7 @@ platformdirs==3.11.0
pluggy==1.5.0
# via pytest
pydantic==2.10.3
- # via serverless-inference-sdk-prod
+ # via do-genai
pydantic-core==2.27.1
# via pydantic
pygments==2.18.0
@@ -86,18 +86,18 @@ six==1.16.0
# via python-dateutil
sniffio==1.3.0
# via anyio
- # via serverless-inference-sdk-prod
+ # via do-genai
time-machine==2.9.0
tomli==2.0.2
# via mypy
# via pytest
typing-extensions==4.12.2
# via anyio
+ # via do-genai
# via mypy
# via pydantic
# via pydantic-core
# via pyright
- # via serverless-inference-sdk-prod
virtualenv==20.24.5
# via nox
zipp==3.17.0
diff --git a/requirements.lock b/requirements.lock
index 44c96759..832a9acd 100644
--- a/requirements.lock
+++ b/requirements.lock
@@ -13,13 +13,13 @@
annotated-types==0.6.0
# via pydantic
anyio==4.4.0
+ # via do-genai
# via httpx
- # via serverless-inference-sdk-prod
certifi==2023.7.22
# via httpcore
# via httpx
distro==1.8.0
- # via serverless-inference-sdk-prod
+ # via do-genai
exceptiongroup==1.2.2
# via anyio
h11==0.14.0
@@ -27,19 +27,19 @@ h11==0.14.0
httpcore==1.0.2
# via httpx
httpx==0.28.1
- # via serverless-inference-sdk-prod
+ # via do-genai
idna==3.4
# via anyio
# via httpx
pydantic==2.10.3
- # via serverless-inference-sdk-prod
+ # via do-genai
pydantic-core==2.27.1
# via pydantic
sniffio==1.3.0
# via anyio
- # via serverless-inference-sdk-prod
+ # via do-genai
typing-extensions==4.12.2
# via anyio
+ # via do-genai
# via pydantic
# via pydantic-core
- # via serverless-inference-sdk-prod
From 93d6f555b479f494e270f4e16b9bf93f6ebe7ea3 Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Thu, 12 Jun 2025 13:47:13 +0000
Subject: [PATCH 4/5] chore: update SDK settings
---
.github/workflows/release-doctor.yml | 2 +-
.stats.yml | 2 +-
CONTRIBUTING.md | 2 +-
README.md | 4 ++--
pyproject.toml | 2 +-
src/serverless_inference_sdk_prod/_files.py | 2 +-
6 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/.github/workflows/release-doctor.yml b/.github/workflows/release-doctor.yml
index 202d5f1c..56d17248 100644
--- a/.github/workflows/release-doctor.yml
+++ b/.github/workflows/release-doctor.yml
@@ -2,7 +2,7 @@ name: Release Doctor
on:
pull_request:
branches:
- - main
+ - staging
workflow_dispatch:
jobs:
diff --git a/.stats.yml b/.stats.yml
index 8fbaae1c..0e86dd50 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 126
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/digitalocean%2Fserverless-inference-sdk-prod-bdf24159c6ebb5402d6c05a5165cb1501dc37cf6c664baa9eb318efb0f89dddd.yml
openapi_spec_hash: 686329a97002025d118dc2367755c18d
-config_hash: 458cab7339af0d949371a36b603d7dcd
+config_hash: b2d18a80de0575ef49312bbfe224597b
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 7ae926fd..86451689 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -62,7 +62,7 @@ If you’d like to use the repository from source, you can either install from g
To install via git:
```sh
-$ pip install git+ssh://git@github.com/digitalocean/genai-python.git
+$ pip install git+ssh://git@github.com/digitalocean/genai-python#staging.git
```
Alternatively, you can build from source and install the wheel file:
diff --git a/README.md b/README.md
index f70b8bd3..07e67dbe 100644
--- a/README.md
+++ b/README.md
@@ -241,9 +241,9 @@ assistant = response.parse() # get the object that `assistants.list()` would ha
print(assistant.first_id)
```
-These methods return an [`APIResponse`](https://github.com/digitalocean/genai-python/tree/main/src/serverless_inference_sdk_prod/_response.py) object.
+These methods return an [`APIResponse`](https://github.com/digitalocean/genai-python/tree/staging/src/serverless_inference_sdk_prod/_response.py) object.
-The async client returns an [`AsyncAPIResponse`](https://github.com/digitalocean/genai-python/tree/main/src/serverless_inference_sdk_prod/_response.py) with the same structure, the only difference being `await`able methods for reading the response content.
+The async client returns an [`AsyncAPIResponse`](https://github.com/digitalocean/genai-python/tree/staging/src/serverless_inference_sdk_prod/_response.py) with the same structure, the only difference being `await`able methods for reading the response content.
#### `.with_streaming_response`
diff --git a/pyproject.toml b/pyproject.toml
index fc9862c6..78349152 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -121,7 +121,7 @@ path = "README.md"
[[tool.hatch.metadata.hooks.fancy-pypi-readme.substitutions]]
# replace relative links with absolute links
pattern = '\[(.+?)\]\(((?!https?://)\S+?)\)'
-replacement = '[\1](https://github.com/digitalocean/genai-python/tree/main/\g<2>)'
+replacement = '[\1](https://github.com/digitalocean/genai-python/tree/staging/\g<2>)'
[tool.pytest.ini_options]
testpaths = ["tests"]
diff --git a/src/serverless_inference_sdk_prod/_files.py b/src/serverless_inference_sdk_prod/_files.py
index 02512281..f7f36799 100644
--- a/src/serverless_inference_sdk_prod/_files.py
+++ b/src/serverless_inference_sdk_prod/_files.py
@@ -34,7 +34,7 @@ def assert_is_file_content(obj: object, *, key: str | None = None) -> None:
if not is_file_content(obj):
prefix = f"Expected entry at `{key}`" if key is not None else f"Expected file input `{obj!r}`"
raise RuntimeError(
- f"{prefix} to be bytes, an io.IOBase instance, PathLike or a tuple but received {type(obj)} instead. See https://github.com/digitalocean/genai-python/tree/main#file-uploads"
+ f"{prefix} to be bytes, an io.IOBase instance, PathLike or a tuple but received {type(obj)} instead. See https://github.com/digitalocean/genai-python/tree/staging#file-uploads"
) from None
From 9c2857c956678fad16154e6d03bd5723e08c0b34 Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Thu, 12 Jun 2025 13:47:44 +0000
Subject: [PATCH 5/5] release: 0.0.2
---
.release-please-manifest.json | 2 +-
CHANGELOG.md | 12 ++++++++++++
README.md | 2 +-
pyproject.toml | 2 +-
src/serverless_inference_sdk_prod/_version.py | 2 +-
5 files changed, 16 insertions(+), 4 deletions(-)
create mode 100644 CHANGELOG.md
diff --git a/.release-please-manifest.json b/.release-please-manifest.json
index c4762802..c7159c1a 100644
--- a/.release-please-manifest.json
+++ b/.release-please-manifest.json
@@ -1,3 +1,3 @@
{
- ".": "0.0.1-alpha.0"
+ ".": "0.0.2"
}
\ No newline at end of file
diff --git a/CHANGELOG.md b/CHANGELOG.md
new file mode 100644
index 00000000..61812549
--- /dev/null
+++ b/CHANGELOG.md
@@ -0,0 +1,12 @@
+# Changelog
+
+## 0.0.2 (2025-06-12)
+
+Full Changelog: [v0.0.1-alpha.0...v0.0.2](https://github.com/digitalocean/genai-python/compare/v0.0.1-alpha.0...v0.0.2)
+
+### Chores
+
+* sync repo ([2c8aea2](https://github.com/digitalocean/genai-python/commit/2c8aea218c5d674ab3a9ec0ffda949d588e39866))
+* update SDK settings ([93d6f55](https://github.com/digitalocean/genai-python/commit/93d6f555b479f494e270f4e16b9bf93f6ebe7ea3))
+* update SDK settings ([53efef7](https://github.com/digitalocean/genai-python/commit/53efef7c21a5e666e103a76a36059810c2532f05))
+* update SDK settings ([5f239d3](https://github.com/digitalocean/genai-python/commit/5f239d34b86e29272f37460edc6b38a5964b343b))
diff --git a/README.md b/README.md
index 07e67dbe..5962285d 100644
--- a/README.md
+++ b/README.md
@@ -16,7 +16,7 @@ The REST API documentation can be found on [help.openai.com](https://help.openai
```sh
# install from PyPI
-pip install --pre do-genai
+pip install do-genai
```
## Usage
diff --git a/pyproject.toml b/pyproject.toml
index 78349152..12b6e38d 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,6 +1,6 @@
[project]
name = "do-genai"
-version = "0.0.1-alpha.0"
+version = "0.0.2"
description = "The official Python library for the serverless-inference-sdk-prod API"
dynamic = ["readme"]
license = "MIT"
diff --git a/src/serverless_inference_sdk_prod/_version.py b/src/serverless_inference_sdk_prod/_version.py
index c835f8b3..e93197ab 100644
--- a/src/serverless_inference_sdk_prod/_version.py
+++ b/src/serverless_inference_sdk_prod/_version.py
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
__title__ = "serverless_inference_sdk_prod"
-__version__ = "0.0.1-alpha.0" # x-release-please-version
+__version__ = "0.0.2" # x-release-please-version