anthropic 0.55.0__tar.gz → 0.56.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- anthropic-0.56.0/.release-please-manifest.json +3 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/CHANGELOG.md +29 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/PKG-INFO +1 -1
- {anthropic-0.55.0 → anthropic-0.56.0}/bin/check-release-environment +1 -1
- {anthropic-0.55.0 → anthropic-0.56.0}/pyproject.toml +1 -1
- {anthropic-0.55.0 → anthropic-0.56.0}/requirements-dev.lock +1 -1
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/_version.py +1 -1
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/lib/bedrock/_client.py +28 -6
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/lib/vertex/_client.py +8 -2
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/resources/messages/messages.py +1 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/tests/lib/streaming/fixtures/basic_response.txt +1 -1
- {anthropic-0.55.0 → anthropic-0.56.0}/tests/lib/streaming/test_beta_messages.py +4 -4
- {anthropic-0.55.0 → anthropic-0.56.0}/tests/lib/streaming/test_messages.py +5 -5
- {anthropic-0.55.0 → anthropic-0.56.0}/tests/lib/test_bedrock.py +69 -1
- {anthropic-0.55.0 → anthropic-0.56.0}/tests/lib/test_vertex.py +54 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/tests/test_client.py +2 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/uv.lock +1681 -1679
- anthropic-0.55.0/.release-please-manifest.json +0 -3
- {anthropic-0.55.0 → anthropic-0.56.0}/.gitignore +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/CONTRIBUTING.md +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/LICENSE +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/README.md +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/SECURITY.md +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/api.md +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/bin/publish-pypi +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/examples/.keep +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/examples/batch_results.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/examples/bedrock.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/examples/images.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/examples/logo.png +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/examples/mcp.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/examples/messages.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/examples/messages_stream.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/examples/text_completions_demo_async.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/examples/text_completions_demo_sync.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/examples/text_completions_streaming.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/examples/thinking.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/examples/thinking_stream.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/examples/tools.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/examples/tools_stream.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/examples/vertex.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/examples/web_search.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/examples/web_search_stream.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/helpers.md +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/mypy.ini +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/release-please-config.json +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/__init__.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/_base_client.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/_client.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/_compat.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/_constants.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/_decoders/jsonl.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/_exceptions.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/_files.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/_legacy_response.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/_models.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/_qs.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/_resource.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/_response.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/_streaming.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/_types.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/_utils/__init__.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/_utils/_httpx.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/_utils/_logs.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/_utils/_proxy.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/_utils/_reflection.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/_utils/_resources_proxy.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/_utils/_streams.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/_utils/_sync.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/_utils/_transform.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/_utils/_typing.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/_utils/_utils.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/lib/.keep +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/lib/__init__.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/lib/_extras/__init__.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/lib/_extras/_common.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/lib/_extras/_google_auth.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/lib/bedrock/__init__.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/lib/bedrock/_auth.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/lib/bedrock/_beta.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/lib/bedrock/_beta_messages.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/lib/bedrock/_stream.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/lib/bedrock/_stream_decoder.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/lib/streaming/__init__.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/lib/streaming/_beta_messages.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/lib/streaming/_beta_types.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/lib/streaming/_messages.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/lib/streaming/_types.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/lib/vertex/__init__.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/lib/vertex/_auth.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/lib/vertex/_beta.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/lib/vertex/_beta_messages.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/pagination.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/py.typed +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/resources/__init__.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/resources/beta/__init__.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/resources/beta/beta.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/resources/beta/files.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/resources/beta/messages/__init__.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/resources/beta/messages/batches.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/resources/beta/messages/messages.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/resources/beta/models.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/resources/completions.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/resources/messages/__init__.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/resources/messages/batches.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/resources/models.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/__init__.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/anthropic_beta_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/base64_image_source_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/base64_pdf_source_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/__init__.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_base64_image_source_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_base64_pdf_block_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_base64_pdf_source_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_cache_control_ephemeral_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_cache_creation.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_citation_char_location.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_citation_char_location_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_citation_content_block_location.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_citation_content_block_location_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_citation_page_location.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_citation_page_location_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_citation_web_search_result_location_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_citations_config_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_citations_delta.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_citations_web_search_result_location.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_code_execution_output_block.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_code_execution_output_block_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_code_execution_result_block.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_code_execution_result_block_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_code_execution_tool_20250522_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_code_execution_tool_result_block.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_code_execution_tool_result_block_content.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_code_execution_tool_result_block_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_code_execution_tool_result_block_param_content_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_code_execution_tool_result_error.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_code_execution_tool_result_error_code.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_code_execution_tool_result_error_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_container.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_container_upload_block.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_container_upload_block_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_content_block.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_content_block_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_content_block_source_content_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_content_block_source_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_file_document_source_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_file_image_source_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_image_block_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_input_json_delta.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_mcp_tool_result_block.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_mcp_tool_use_block.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_mcp_tool_use_block_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_message.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_message_delta_usage.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_message_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_message_tokens_count.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_metadata_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_model_info.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_plain_text_source_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_raw_content_block_delta.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_raw_content_block_delta_event.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_raw_content_block_start_event.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_raw_content_block_stop_event.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_raw_message_delta_event.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_raw_message_start_event.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_raw_message_stop_event.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_raw_message_stream_event.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_redacted_thinking_block.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_redacted_thinking_block_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_request_document_block_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_request_mcp_server_tool_configuration_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_request_mcp_server_url_definition_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_request_mcp_tool_result_block_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_server_tool_usage.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_server_tool_use_block.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_server_tool_use_block_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_signature_delta.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_stop_reason.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_text_block.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_text_block_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_text_citation.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_text_citation_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_text_delta.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_thinking_block.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_thinking_block_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_thinking_config_disabled_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_thinking_config_enabled_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_thinking_config_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_thinking_delta.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_tool_bash_20241022_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_tool_bash_20250124_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_tool_choice_any_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_tool_choice_auto_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_tool_choice_none_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_tool_choice_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_tool_choice_tool_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_tool_computer_use_20241022_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_tool_computer_use_20250124_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_tool_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_tool_result_block_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_tool_text_editor_20241022_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_tool_text_editor_20250124_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_tool_text_editor_20250429_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_tool_union_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_tool_use_block.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_tool_use_block_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_url_image_source_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_url_pdf_source_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_usage.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_web_search_result_block.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_web_search_result_block_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_web_search_tool_20250305_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_web_search_tool_request_error_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_web_search_tool_result_block.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_web_search_tool_result_block_content.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_web_search_tool_result_block_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_web_search_tool_result_block_param_content_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_web_search_tool_result_error.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_web_search_tool_result_error_code.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/deleted_file.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/file_list_params.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/file_metadata.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/file_upload_params.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/message_count_tokens_params.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/message_create_params.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/messages/__init__.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/messages/batch_create_params.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/messages/batch_list_params.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/messages/beta_deleted_message_batch.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/messages/beta_message_batch.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/messages/beta_message_batch_canceled_result.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/messages/beta_message_batch_errored_result.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/messages/beta_message_batch_expired_result.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/messages/beta_message_batch_individual_response.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/messages/beta_message_batch_request_counts.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/messages/beta_message_batch_result.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/messages/beta_message_batch_succeeded_result.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/model_list_params.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta_api_error.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta_authentication_error.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta_billing_error.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta_error.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta_error_response.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta_gateway_timeout_error.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta_invalid_request_error.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta_not_found_error.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta_overloaded_error.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta_permission_error.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta_rate_limit_error.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/cache_control_ephemeral_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/citation_char_location.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/citation_char_location_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/citation_content_block_location.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/citation_content_block_location_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/citation_page_location.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/citation_page_location_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/citation_web_search_result_location_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/citations_config_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/citations_delta.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/citations_web_search_result_location.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/completion.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/completion_create_params.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/content_block.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/content_block_delta_event.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/content_block_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/content_block_source_content_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/content_block_source_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/content_block_start_event.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/content_block_stop_event.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/document_block_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/image_block_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/input_json_delta.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/message.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/message_count_tokens_params.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/message_count_tokens_tool_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/message_create_params.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/message_delta_event.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/message_delta_usage.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/message_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/message_start_event.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/message_stop_event.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/message_stream_event.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/message_tokens_count.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/messages/__init__.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/messages/batch_create_params.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/messages/batch_list_params.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/messages/deleted_message_batch.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/messages/message_batch.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/messages/message_batch_canceled_result.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/messages/message_batch_errored_result.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/messages/message_batch_expired_result.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/messages/message_batch_individual_response.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/messages/message_batch_request_counts.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/messages/message_batch_result.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/messages/message_batch_succeeded_result.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/metadata_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/model.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/model_info.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/model_list_params.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/model_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/plain_text_source_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/raw_content_block_delta.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/raw_content_block_delta_event.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/raw_content_block_start_event.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/raw_content_block_stop_event.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/raw_message_delta_event.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/raw_message_start_event.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/raw_message_stop_event.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/raw_message_stream_event.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/redacted_thinking_block.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/redacted_thinking_block_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/server_tool_usage.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/server_tool_use_block.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/server_tool_use_block_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/shared/__init__.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/shared/api_error_object.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/shared/authentication_error.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/shared/billing_error.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/shared/error_object.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/shared/error_response.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/shared/gateway_timeout_error.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/shared/invalid_request_error.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/shared/not_found_error.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/shared/overloaded_error.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/shared/permission_error.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/shared/rate_limit_error.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/signature_delta.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/stop_reason.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/text_block.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/text_block_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/text_citation.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/text_citation_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/text_delta.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/thinking_block.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/thinking_block_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/thinking_config_disabled_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/thinking_config_enabled_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/thinking_config_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/thinking_delta.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/tool_bash_20250124_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/tool_choice_any_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/tool_choice_auto_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/tool_choice_none_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/tool_choice_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/tool_choice_tool_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/tool_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/tool_result_block_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/tool_text_editor_20250124_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/tool_union_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/tool_use_block.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/tool_use_block_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/url_image_source_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/url_pdf_source_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/usage.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/web_search_result_block.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/web_search_result_block_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/web_search_tool_20250305_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/web_search_tool_request_error_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/web_search_tool_result_block.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/web_search_tool_result_block_content.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/web_search_tool_result_block_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/web_search_tool_result_block_param_content_param.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/web_search_tool_result_error.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/tests/__init__.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/tests/api_resources/__init__.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/tests/api_resources/beta/__init__.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/tests/api_resources/beta/messages/__init__.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/tests/api_resources/beta/messages/test_batches.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/tests/api_resources/beta/test_files.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/tests/api_resources/beta/test_messages.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/tests/api_resources/beta/test_models.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/tests/api_resources/messages/__init__.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/tests/api_resources/messages/test_batches.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/tests/api_resources/test_completions.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/tests/api_resources/test_messages.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/tests/api_resources/test_models.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/tests/conftest.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/tests/decoders/test_jsonl.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/tests/lib/streaming/__init__.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/tests/lib/streaming/fixtures/incomplete_partial_json_response.txt +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/tests/lib/streaming/fixtures/tool_use_response.txt +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/tests/lib/streaming/helpers.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/tests/lib/streaming/test_partial_json.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/tests/sample_file.txt +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/tests/test_deepcopy.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/tests/test_extract_files.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/tests/test_files.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/tests/test_legacy_response.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/tests/test_models.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/tests/test_qs.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/tests/test_required_args.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/tests/test_response.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/tests/test_streaming.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/tests/test_transform.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/tests/test_utils/test_proxy.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/tests/test_utils/test_typing.py +0 -0
- {anthropic-0.55.0 → anthropic-0.56.0}/tests/utils.py +0 -0
|
@@ -1,5 +1,34 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.56.0 (2025-07-01)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.55.0...v0.56.0](https://github.com/anthropics/anthropic-sdk-python/compare/v0.55.0...v0.56.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **bedrock:** automatically infer AWS Region ([#974](https://github.com/anthropics/anthropic-sdk-python/issues/974)) ([f648e09](https://github.com/anthropics/anthropic-sdk-python/commit/f648e09c43ea227a7a388cbdd21e8ddb762963e4))
|
|
10
|
+
* **vertex:** support global region endpoint ([1fd1adf](https://github.com/anthropics/anthropic-sdk-python/commit/1fd1adf736e4e5a3e16819c052903dfe4a436132))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* **ci:** correct conditional ([18e625a](https://github.com/anthropics/anthropic-sdk-python/commit/18e625a1a6de15ff7729149c19b8c22191ed8622))
|
|
16
|
+
* **ci:** release-doctor — report correct token name ([c91f50d](https://github.com/anthropics/anthropic-sdk-python/commit/c91f50dbd7057ea465b9d71795488cdae8c1a13a))
|
|
17
|
+
* **tests:** avoid deprecation warnings ([71b432f](https://github.com/anthropics/anthropic-sdk-python/commit/71b432f2d22d72f6763d7042677cb43122302ded))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Chores
|
|
21
|
+
|
|
22
|
+
* **ci:** only run for pushes and fork pull requests ([447b793](https://github.com/anthropics/anthropic-sdk-python/commit/447b793baf8ba4df63a8fcfcd870a85dd2d07f07))
|
|
23
|
+
* **internal:** add breaking change detection ([e6d0eca](https://github.com/anthropics/anthropic-sdk-python/commit/e6d0eca3fc5c918b56e42fbe46fcf9bedd26ca4d))
|
|
24
|
+
* **internal:** codegen related update ([f88517b](https://github.com/anthropics/anthropic-sdk-python/commit/f88517bfb56969674b82193b788d2043806e5a39))
|
|
25
|
+
* **internal:** codegen related update ([a385cb9](https://github.com/anthropics/anthropic-sdk-python/commit/a385cb9270f8214907ce1f4923e16537ac10cdab))
|
|
26
|
+
* **internal:** codegen related update ([9d4b537](https://github.com/anthropics/anthropic-sdk-python/commit/9d4b537be3e248f2ce0d98721f9bbbdc32b75575))
|
|
27
|
+
* **internal:** codegen related update ([6a3a6fe](https://github.com/anthropics/anthropic-sdk-python/commit/6a3a6fe3743ee448a83f294d394c5bf9b214176f))
|
|
28
|
+
* **internal:** codegen related update ([28704a6](https://github.com/anthropics/anthropic-sdk-python/commit/28704a63eb20f6ed78f13b424190cac14aca8a0f))
|
|
29
|
+
* **tests:** run tests with min and max supported Python versions by default ([0ad8534](https://github.com/anthropics/anthropic-sdk-python/commit/0ad85343fbe4d2934aa826fde36c7927f7b57803))
|
|
30
|
+
* **tests:** skip some failing tests on the latest python versions ([f63a2d2](https://github.com/anthropics/anthropic-sdk-python/commit/f63a2d29d5c56175078eaf5c67a142aec0937174))
|
|
31
|
+
|
|
3
32
|
## 0.55.0 (2025-06-23)
|
|
4
33
|
|
|
5
34
|
Full Changelog: [v0.54.0...v0.55.0](https://github.com/anthropics/anthropic-sdk-python/compare/v0.54.0...v0.55.0)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: anthropic
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.56.0
|
|
4
4
|
Summary: The official Python library for the anthropic API
|
|
5
5
|
Project-URL: Homepage, https://github.com/anthropics/anthropic-sdk-python
|
|
6
6
|
Project-URL: Repository, https://github.com/anthropics/anthropic-sdk-python
|
|
@@ -7,7 +7,7 @@ if [ -z "${STAINLESS_API_KEY}" ]; then
|
|
|
7
7
|
fi
|
|
8
8
|
|
|
9
9
|
if [ -z "${PYPI_TOKEN}" ]; then
|
|
10
|
-
errors+=("The
|
|
10
|
+
errors+=("The PYPI_TOKEN secret has not been set. Please set it in either this repository's secrets or your organization secrets.")
|
|
11
11
|
fi
|
|
12
12
|
|
|
13
13
|
lenErrors=${#errors[@]}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
from __future__ import annotations
|
|
2
2
|
|
|
3
3
|
import os
|
|
4
|
+
import logging
|
|
4
5
|
import urllib.parse
|
|
5
6
|
from typing import Any, Union, Mapping, TypeVar
|
|
6
7
|
from typing_extensions import Self, override
|
|
@@ -26,6 +27,8 @@ from ._stream_decoder import AWSEventStreamDecoder
|
|
|
26
27
|
from ...resources.messages import Messages, AsyncMessages
|
|
27
28
|
from ...resources.completions import Completions, AsyncCompletions
|
|
28
29
|
|
|
30
|
+
log: logging.Logger = logging.getLogger(__name__)
|
|
31
|
+
|
|
29
32
|
DEFAULT_VERSION = "bedrock-2023-05-31"
|
|
30
33
|
|
|
31
34
|
_HttpxClientT = TypeVar("_HttpxClientT", bound=Union[httpx.Client, httpx.AsyncClient])
|
|
@@ -64,6 +67,29 @@ def _prepare_options(input_options: FinalRequestOptions) -> FinalRequestOptions:
|
|
|
64
67
|
return options
|
|
65
68
|
|
|
66
69
|
|
|
70
|
+
def _infer_region() -> str:
|
|
71
|
+
"""
|
|
72
|
+
Infer the AWS region from the environment variables or
|
|
73
|
+
from the boto3 session if available.
|
|
74
|
+
"""
|
|
75
|
+
aws_region = os.environ.get("AWS_REGION")
|
|
76
|
+
if aws_region is None:
|
|
77
|
+
try:
|
|
78
|
+
import boto3
|
|
79
|
+
|
|
80
|
+
session = boto3.Session()
|
|
81
|
+
if session.region_name:
|
|
82
|
+
aws_region = session.region_name
|
|
83
|
+
except ImportError:
|
|
84
|
+
pass
|
|
85
|
+
|
|
86
|
+
if aws_region is None:
|
|
87
|
+
log.warning("No AWS region specified, defaulting to us-east-1")
|
|
88
|
+
aws_region = "us-east-1" # fall back to legacy behavior
|
|
89
|
+
|
|
90
|
+
return aws_region
|
|
91
|
+
|
|
92
|
+
|
|
67
93
|
class BaseBedrockClient(BaseClient[_HttpxClientT, _DefaultStreamT]):
|
|
68
94
|
@override
|
|
69
95
|
def _make_status_error(
|
|
@@ -135,9 +161,7 @@ class AnthropicBedrock(BaseBedrockClient[httpx.Client, Stream[Any]], SyncAPIClie
|
|
|
135
161
|
|
|
136
162
|
self.aws_access_key = aws_access_key
|
|
137
163
|
|
|
138
|
-
if aws_region is None
|
|
139
|
-
aws_region = os.environ.get("AWS_REGION") or "us-east-1"
|
|
140
|
-
self.aws_region = aws_region
|
|
164
|
+
self.aws_region = _infer_region() if aws_region is None else aws_region
|
|
141
165
|
self.aws_profile = aws_profile
|
|
142
166
|
|
|
143
167
|
self.aws_session_token = aws_session_token
|
|
@@ -279,9 +303,7 @@ class AsyncAnthropicBedrock(BaseBedrockClient[httpx.AsyncClient, AsyncStream[Any
|
|
|
279
303
|
|
|
280
304
|
self.aws_access_key = aws_access_key
|
|
281
305
|
|
|
282
|
-
if aws_region is None
|
|
283
|
-
aws_region = os.environ.get("AWS_REGION") or "us-east-1"
|
|
284
|
-
self.aws_region = aws_region
|
|
306
|
+
self.aws_region = _infer_region() if aws_region is None else aws_region
|
|
285
307
|
self.aws_profile = aws_profile
|
|
286
308
|
|
|
287
309
|
self.aws_session_token = aws_session_token
|
|
@@ -117,7 +117,10 @@ class AnthropicVertex(BaseVertexClient[httpx.Client, Stream[Any]], SyncAPIClient
|
|
|
117
117
|
if base_url is None:
|
|
118
118
|
base_url = os.environ.get("ANTHROPIC_VERTEX_BASE_URL")
|
|
119
119
|
if base_url is None:
|
|
120
|
-
|
|
120
|
+
if region == "global":
|
|
121
|
+
base_url = "https://aiplatform.googleapis.com/v1"
|
|
122
|
+
else:
|
|
123
|
+
base_url = f"https://{region}-aiplatform.googleapis.com/v1"
|
|
121
124
|
|
|
122
125
|
super().__init__(
|
|
123
126
|
version=__version__,
|
|
@@ -259,7 +262,10 @@ class AsyncAnthropicVertex(BaseVertexClient[httpx.AsyncClient, AsyncStream[Any]]
|
|
|
259
262
|
if base_url is None:
|
|
260
263
|
base_url = os.environ.get("ANTHROPIC_VERTEX_BASE_URL")
|
|
261
264
|
if base_url is None:
|
|
262
|
-
|
|
265
|
+
if region == "global":
|
|
266
|
+
base_url = "https://aiplatform.googleapis.com/v1"
|
|
267
|
+
else:
|
|
268
|
+
base_url = f"https://{region}-aiplatform.googleapis.com/v1"
|
|
263
269
|
|
|
264
270
|
super().__init__(
|
|
265
271
|
version=__version__,
|
|
@@ -54,6 +54,7 @@ DEPRECATED_MODELS = {
|
|
|
54
54
|
"claude-instant-1.1-100k": "November 6th, 2024",
|
|
55
55
|
"claude-instant-1.2": "November 6th, 2024",
|
|
56
56
|
"claude-3-sonnet-20240229": "July 21st, 2025",
|
|
57
|
+
"claude-3-opus-20240229": "January 5th, 2026",
|
|
57
58
|
"claude-2.1": "July 21st, 2025",
|
|
58
59
|
"claude-2.0": "July 21st, 2025",
|
|
59
60
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
event: message_start
|
|
2
|
-
data: {"type":"message_start","message":{"id":"msg_4QpJur2dWWDjF6C758FbBw5vm12BaVipnK","type":"message","role":"assistant","content":[],"model":"claude-3-opus-
|
|
2
|
+
data: {"type":"message_start","message":{"id":"msg_4QpJur2dWWDjF6C758FbBw5vm12BaVipnK","type":"message","role":"assistant","content":[],"model":"claude-3-opus-latest","stop_reason":null,"stop_sequence":null,"usage":{"input_tokens":11,"output_tokens":1}}}
|
|
3
3
|
|
|
4
4
|
event: content_block_start
|
|
5
5
|
data: {"type":"content_block_start","index":0,"content_block":{"type":"text","text":""}}
|
|
@@ -30,7 +30,7 @@ _T = TypeVar("_T")
|
|
|
30
30
|
# Expected message fixtures
|
|
31
31
|
EXPECTED_BASIC_MESSAGE = {
|
|
32
32
|
"id": "msg_4QpJur2dWWDjF6C758FbBw5vm12BaVipnK",
|
|
33
|
-
"model": "claude-3-opus-
|
|
33
|
+
"model": "claude-3-opus-latest",
|
|
34
34
|
"role": "assistant",
|
|
35
35
|
"stop_reason": "end_turn",
|
|
36
36
|
"type": "message",
|
|
@@ -200,7 +200,7 @@ class TestSyncMessages:
|
|
|
200
200
|
"content": "Say hello there!",
|
|
201
201
|
}
|
|
202
202
|
],
|
|
203
|
-
model="claude-3-opus-
|
|
203
|
+
model="claude-3-opus-latest",
|
|
204
204
|
) as stream:
|
|
205
205
|
assert isinstance(cast(Any, stream), BetaMessageStream)
|
|
206
206
|
|
|
@@ -240,7 +240,7 @@ class TestSyncMessages:
|
|
|
240
240
|
"content": "Say hello there!",
|
|
241
241
|
}
|
|
242
242
|
],
|
|
243
|
-
model="claude-3-opus-
|
|
243
|
+
model="claude-3-opus-latest",
|
|
244
244
|
) as stream:
|
|
245
245
|
assert not stream.response.is_closed
|
|
246
246
|
|
|
@@ -301,7 +301,7 @@ class TestAsyncMessages:
|
|
|
301
301
|
"content": "Say hello there!",
|
|
302
302
|
}
|
|
303
303
|
],
|
|
304
|
-
model="claude-3-opus-
|
|
304
|
+
model="claude-3-opus-latest",
|
|
305
305
|
) as stream:
|
|
306
306
|
assert not stream.response.is_closed
|
|
307
307
|
|
|
@@ -28,7 +28,7 @@ _T = TypeVar("_T")
|
|
|
28
28
|
|
|
29
29
|
def assert_basic_response(events: list[MessageStreamEvent], message: Message) -> None:
|
|
30
30
|
assert message.id == "msg_4QpJur2dWWDjF6C758FbBw5vm12BaVipnK"
|
|
31
|
-
assert message.model == "claude-3-opus-
|
|
31
|
+
assert message.model == "claude-3-opus-latest"
|
|
32
32
|
assert message.role == "assistant"
|
|
33
33
|
assert message.stop_reason == "end_turn"
|
|
34
34
|
assert message.stop_sequence is None
|
|
@@ -120,7 +120,7 @@ class TestSyncMessages:
|
|
|
120
120
|
"content": "Say hello there!",
|
|
121
121
|
}
|
|
122
122
|
],
|
|
123
|
-
model="claude-3-opus-
|
|
123
|
+
model="claude-3-opus-latest",
|
|
124
124
|
) as stream:
|
|
125
125
|
with pytest.warns(DeprecationWarning):
|
|
126
126
|
assert isinstance(cast(Any, stream), Stream)
|
|
@@ -141,7 +141,7 @@ class TestSyncMessages:
|
|
|
141
141
|
"content": "Say hello there!",
|
|
142
142
|
}
|
|
143
143
|
],
|
|
144
|
-
model="claude-3-opus-
|
|
144
|
+
model="claude-3-opus-latest",
|
|
145
145
|
) as stream:
|
|
146
146
|
assert not stream.response.is_closed
|
|
147
147
|
|
|
@@ -202,7 +202,7 @@ class TestAsyncMessages:
|
|
|
202
202
|
"content": "Say hello there!",
|
|
203
203
|
}
|
|
204
204
|
],
|
|
205
|
-
model="claude-3-opus-
|
|
205
|
+
model="claude-3-opus-latest",
|
|
206
206
|
) as stream:
|
|
207
207
|
with pytest.warns(DeprecationWarning):
|
|
208
208
|
assert isinstance(cast(Any, stream), AsyncStream)
|
|
@@ -224,7 +224,7 @@ class TestAsyncMessages:
|
|
|
224
224
|
"content": "Say hello there!",
|
|
225
225
|
}
|
|
226
226
|
],
|
|
227
|
-
model="claude-3-opus-
|
|
227
|
+
model="claude-3-opus-latest",
|
|
228
228
|
) as stream:
|
|
229
229
|
assert not stream.response.is_closed
|
|
230
230
|
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import re
|
|
2
|
-
|
|
2
|
+
import typing as t
|
|
3
|
+
import tempfile
|
|
4
|
+
from typing import TypedDict, cast
|
|
3
5
|
from typing_extensions import Protocol
|
|
4
6
|
|
|
5
7
|
import httpx
|
|
@@ -24,6 +26,41 @@ class MockRequestCall(Protocol):
|
|
|
24
26
|
request: httpx.Request
|
|
25
27
|
|
|
26
28
|
|
|
29
|
+
class AwsConfigProfile(TypedDict):
|
|
30
|
+
# Available regions: https://docs.aws.amazon.com/global-infrastructure/latest/regions/aws-regions.html#available-regions
|
|
31
|
+
name: t.Union[t.Literal["default"], str]
|
|
32
|
+
region: str
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
def profile_to_ini(profile: AwsConfigProfile) -> str:
|
|
36
|
+
"""
|
|
37
|
+
Convert an AWS config profile to an INI format string.
|
|
38
|
+
"""
|
|
39
|
+
|
|
40
|
+
profile_name = profile["name"] if profile["name"] == "default" else f"profile {profile['name']}"
|
|
41
|
+
return f"[{profile_name}]\nregion = {profile['region']}\n"
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
@pytest.fixture
|
|
45
|
+
def profiles() -> t.List[AwsConfigProfile]:
|
|
46
|
+
return [
|
|
47
|
+
{"name": "default", "region": "us-east-2"},
|
|
48
|
+
]
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
@pytest.fixture
|
|
52
|
+
def mock_aws_config(
|
|
53
|
+
profiles: t.List[AwsConfigProfile],
|
|
54
|
+
monkeypatch: t.Any,
|
|
55
|
+
) -> t.Iterable[None]:
|
|
56
|
+
with tempfile.NamedTemporaryFile(mode="w+", delete=True) as temp_file:
|
|
57
|
+
for profile in profiles:
|
|
58
|
+
temp_file.write(profile_to_ini(profile))
|
|
59
|
+
temp_file.flush()
|
|
60
|
+
monkeypatch.setenv("AWS_CONFIG_FILE", str(temp_file.name))
|
|
61
|
+
yield
|
|
62
|
+
|
|
63
|
+
|
|
27
64
|
@pytest.mark.filterwarnings("ignore::DeprecationWarning")
|
|
28
65
|
@pytest.mark.respx()
|
|
29
66
|
def test_messages_retries(respx_mock: MockRouter) -> None:
|
|
@@ -127,3 +164,34 @@ def test_application_inference_profile(respx_mock: MockRouter) -> None:
|
|
|
127
164
|
calls[1].request.url
|
|
128
165
|
== "https://bedrock-runtime.us-east-1.amazonaws.com/model/arn:aws:bedrock:us-east-1:123456789012:application-inference-profile%2Fjf2sje1c0jnb/invoke"
|
|
129
166
|
)
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
def test_region_infer_from_profile(
|
|
170
|
+
mock_aws_config: None, # noqa: ARG001
|
|
171
|
+
profiles: t.List[AwsConfigProfile],
|
|
172
|
+
) -> None:
|
|
173
|
+
client = AnthropicBedrock()
|
|
174
|
+
assert client.aws_region == profiles[0]["region"]
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
@pytest.mark.parametrize(
|
|
178
|
+
"profiles, aws_profile",
|
|
179
|
+
[
|
|
180
|
+
pytest.param([{"name": "default", "region": "us-east-2"}], "default", id="default profile"),
|
|
181
|
+
pytest.param(
|
|
182
|
+
[{"name": "default", "region": "us-east-2"}, {"name": "custom", "region": "us-west-1"}],
|
|
183
|
+
"custom",
|
|
184
|
+
id="custom profile",
|
|
185
|
+
),
|
|
186
|
+
],
|
|
187
|
+
)
|
|
188
|
+
def test_region_infer_from_specified_profile(
|
|
189
|
+
mock_aws_config: None, # noqa: ARG001
|
|
190
|
+
profiles: t.List[AwsConfigProfile],
|
|
191
|
+
aws_profile: str,
|
|
192
|
+
monkeypatch: t.Any,
|
|
193
|
+
) -> None:
|
|
194
|
+
monkeypatch.setenv("AWS_PROFILE", aws_profile)
|
|
195
|
+
client = AnthropicBedrock()
|
|
196
|
+
|
|
197
|
+
assert client.aws_region == next(profile for profile in profiles if profile["name"] == aws_profile)["region"]
|
|
@@ -119,6 +119,32 @@ class TestAnthropicVertex:
|
|
|
119
119
|
):
|
|
120
120
|
client.copy(set_default_headers={}, default_headers={"X-Foo": "Bar"})
|
|
121
121
|
|
|
122
|
+
def test_global_region_base_url(self) -> None:
|
|
123
|
+
"""Test that global region uses the correct base URL."""
|
|
124
|
+
client = AnthropicVertex(region="global", project_id="test-project", access_token="fake-token")
|
|
125
|
+
assert str(client.base_url).rstrip("/") == "https://aiplatform.googleapis.com/v1"
|
|
126
|
+
|
|
127
|
+
@pytest.mark.parametrize("region", ["us-central1", "europe-west1", "asia-southeast1"])
|
|
128
|
+
def test_regional_base_url(self, region: str) -> None:
|
|
129
|
+
"""Test that regional endpoints use the correct base URL format."""
|
|
130
|
+
client = AnthropicVertex(region=region, project_id="test-project", access_token="fake-token")
|
|
131
|
+
expected_url = f"https://{region}-aiplatform.googleapis.com/v1"
|
|
132
|
+
assert str(client.base_url).rstrip("/") == expected_url
|
|
133
|
+
|
|
134
|
+
def test_env_var_base_url_override(self, monkeypatch: pytest.MonkeyPatch) -> None:
|
|
135
|
+
"""Test that ANTHROPIC_VERTEX_BASE_URL environment variable does not override client arg."""
|
|
136
|
+
test_url = "https://custom-endpoint.googleapis.com/v1"
|
|
137
|
+
|
|
138
|
+
monkeypatch.setenv("ANTHROPIC_VERTEX_BASE_URL", test_url)
|
|
139
|
+
|
|
140
|
+
client = AnthropicVertex(
|
|
141
|
+
region="global", # we expect this to get ignored since the user is providing a base_url
|
|
142
|
+
project_id="test-project",
|
|
143
|
+
access_token="fake-token",
|
|
144
|
+
base_url="https://test.googleapis.com/v1",
|
|
145
|
+
)
|
|
146
|
+
assert str(client.base_url).rstrip("/") == "https://test.googleapis.com/v1"
|
|
147
|
+
|
|
122
148
|
|
|
123
149
|
class TestAsyncAnthropicVertex:
|
|
124
150
|
client = AsyncAnthropicVertex(region="region", project_id="project", access_token="my-access-token")
|
|
@@ -222,3 +248,31 @@ class TestAsyncAnthropicVertex:
|
|
|
222
248
|
match="`default_headers` and `set_default_headers` arguments are mutually exclusive",
|
|
223
249
|
):
|
|
224
250
|
client.copy(set_default_headers={}, default_headers={"X-Foo": "Bar"})
|
|
251
|
+
|
|
252
|
+
def test_global_region_base_url(self) -> None:
|
|
253
|
+
"""Test that global region uses the correct base URL."""
|
|
254
|
+
client = AsyncAnthropicVertex(region="global", project_id="test-project", access_token="fake-token")
|
|
255
|
+
assert str(client.base_url).rstrip("/") == "https://aiplatform.googleapis.com/v1"
|
|
256
|
+
|
|
257
|
+
def test_regional_base_url(self) -> None:
|
|
258
|
+
"""Test that regional endpoints use the correct base URL format."""
|
|
259
|
+
test_regions = ["us-central1", "europe-west1", "asia-southeast1"]
|
|
260
|
+
|
|
261
|
+
for region in test_regions:
|
|
262
|
+
client = AsyncAnthropicVertex(region=region, project_id="test-project", access_token="fake-token")
|
|
263
|
+
expected_url = f"https://{region}-aiplatform.googleapis.com/v1"
|
|
264
|
+
assert str(client.base_url).rstrip("/") == expected_url
|
|
265
|
+
|
|
266
|
+
def test_env_var_base_url_override(self, monkeypatch: pytest.MonkeyPatch) -> None:
|
|
267
|
+
"""Test that ANTHROPIC_VERTEX_BASE_URL environment variable does not override client arg."""
|
|
268
|
+
test_url = "https://custom-endpoint.googleapis.com/v1"
|
|
269
|
+
|
|
270
|
+
monkeypatch.setenv("ANTHROPIC_VERTEX_BASE_URL", test_url)
|
|
271
|
+
|
|
272
|
+
client = AsyncAnthropicVertex(
|
|
273
|
+
region="global", # we expect this to get ignored since the user is providing a base_url
|
|
274
|
+
project_id="test-project",
|
|
275
|
+
access_token="fake-token",
|
|
276
|
+
base_url="https://test.googleapis.com/v1",
|
|
277
|
+
)
|
|
278
|
+
assert str(client.base_url).rstrip("/") == "https://test.googleapis.com/v1"
|
|
@@ -192,6 +192,7 @@ class TestAnthropic:
|
|
|
192
192
|
copy_param = copy_signature.parameters.get(name)
|
|
193
193
|
assert copy_param is not None, f"copy() signature is missing the {name} param"
|
|
194
194
|
|
|
195
|
+
@pytest.mark.skipif(sys.version_info >= (3, 10), reason="fails because of a memory leak that started from 3.12")
|
|
195
196
|
def test_copy_build_request(self) -> None:
|
|
196
197
|
options = FinalRequestOptions(method="get", url="/foo")
|
|
197
198
|
|
|
@@ -1089,6 +1090,7 @@ class TestAsyncAnthropic:
|
|
|
1089
1090
|
copy_param = copy_signature.parameters.get(name)
|
|
1090
1091
|
assert copy_param is not None, f"copy() signature is missing the {name} param"
|
|
1091
1092
|
|
|
1093
|
+
@pytest.mark.skipif(sys.version_info >= (3, 10), reason="fails because of a memory leak that started from 3.12")
|
|
1092
1094
|
def test_copy_build_request(self) -> None:
|
|
1093
1095
|
options = FinalRequestOptions(method="get", url="/foo")
|
|
1094
1096
|
|