anthropic 0.71.0__py3-none-any.whl → 0.71.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
anthropic/_base_client.py CHANGED
@@ -843,6 +843,8 @@ class _DefaultHttpxClient(httpx.Client):
843
843
  arg: kwargs[arg] for arg in ("verify", "cert", "trust_env", "http1", "http2", "limits") if arg in kwargs
844
844
  }
845
845
 
846
+ transport_kwargs["socket_options"] = socket_options
847
+
846
848
  proxy_mounts = {
847
849
  key: None if proxy is None else HTTPTransport(proxy=proxy, **transport_kwargs)
848
850
  for key, proxy in proxy_map.items()
@@ -854,7 +856,7 @@ class _DefaultHttpxClient(httpx.Client):
854
856
  kwargs["mounts"] = proxy_mounts
855
857
 
856
858
  # Sets the default transport so that HTTPX won't automatically configure proxies.
857
- kwargs["transport"] = kwargs.get("transport", default_transport)
859
+ kwargs["transport"] = default_transport
858
860
 
859
861
  super().__init__(**kwargs)
860
862
 
@@ -1404,6 +1406,8 @@ class _DefaultAsyncHttpxClient(httpx.AsyncClient):
1404
1406
  arg: kwargs[arg] for arg in ("verify", "cert", "trust_env", "http1", "http2", "limits") if arg in kwargs
1405
1407
  }
1406
1408
 
1409
+ transport_kwargs["socket_options"] = socket_options
1410
+
1407
1411
  proxy_mounts = {
1408
1412
  key: None if proxy is None else AsyncHTTPTransport(proxy=proxy, **transport_kwargs)
1409
1413
  for key, proxy in proxy_map.items()
@@ -1415,7 +1419,7 @@ class _DefaultAsyncHttpxClient(httpx.AsyncClient):
1415
1419
  kwargs["mounts"] = proxy_mounts
1416
1420
 
1417
1421
  # Sets the default transport so that HTTPX won't automatically configure proxies.
1418
- kwargs["transport"] = kwargs.get("transport", default_transport)
1422
+ kwargs["transport"] = default_transport
1419
1423
 
1420
1424
  super().__init__(**kwargs)
1421
1425
 
anthropic/_version.py CHANGED
@@ -1,4 +1,4 @@
1
1
  # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  __title__ = "anthropic"
4
- __version__ = "0.71.0" # x-release-please-version
4
+ __version__ = "0.71.1" # x-release-please-version
@@ -57,8 +57,8 @@ DEPRECATED_MODELS = {
57
57
  "claude-3-opus-20240229": "January 5th, 2026",
58
58
  "claude-2.1": "July 21st, 2025",
59
59
  "claude-2.0": "July 21st, 2025",
60
- "claude-3-5-sonnet-20241022": "October 22, 2025",
61
- "claude-3-5-sonnet-20240620": "October 22, 2025",
60
+ "claude-3-7-sonnet-latest": "February 19th, 2026",
61
+ "claude-3-7-sonnet-20250219": "February 19th, 2026",
62
62
  }
63
63
 
64
64
 
anthropic/types/model.py CHANGED
@@ -18,9 +18,6 @@ Model: TypeAlias = Union[
18
18
  "claude-4-sonnet-20250514",
19
19
  "claude-sonnet-4-5",
20
20
  "claude-sonnet-4-5-20250929",
21
- "claude-3-5-sonnet-latest",
22
- "claude-3-5-sonnet-20241022",
23
- "claude-3-5-sonnet-20240620",
24
21
  "claude-opus-4-0",
25
22
  "claude-opus-4-20250514",
26
23
  "claude-4-opus-20250514",
@@ -20,9 +20,6 @@ ModelParam: TypeAlias = Union[
20
20
  "claude-4-sonnet-20250514",
21
21
  "claude-sonnet-4-5",
22
22
  "claude-sonnet-4-5-20250929",
23
- "claude-3-5-sonnet-latest",
24
- "claude-3-5-sonnet-20241022",
25
- "claude-3-5-sonnet-20240620",
26
23
  "claude-opus-4-0",
27
24
  "claude-opus-4-20250514",
28
25
  "claude-4-opus-20250514",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: anthropic
3
- Version: 0.71.0
3
+ Version: 0.71.1
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
@@ -32,7 +32,7 @@ Requires-Dist: sniffio
32
32
  Requires-Dist: typing-extensions<5,>=4.10
33
33
  Provides-Extra: aiohttp
34
34
  Requires-Dist: aiohttp; extra == 'aiohttp'
35
- Requires-Dist: httpx-aiohttp>=0.1.8; extra == 'aiohttp'
35
+ Requires-Dist: httpx-aiohttp>=0.1.9; extra == 'aiohttp'
36
36
  Provides-Extra: bedrock
37
37
  Requires-Dist: boto3>=1.28.57; extra == 'bedrock'
38
38
  Requires-Dist: botocore>=1.31.57; extra == 'bedrock'
@@ -1,5 +1,5 @@
1
1
  anthropic/__init__.py,sha256=sPNLvrXJGDKWSF87xPj6CidUbcMD4sAVIzip4BeEP7g,2981
2
- anthropic/_base_client.py,sha256=wzBPPq1xjyx7okxIAAaNuKmrP-1w6v20girS-VrgT3U,72849
2
+ anthropic/_base_client.py,sha256=Ca5ANeCg2kvkN3Ego42boLcHIhj9npORXzh3VGQs1tw,72929
3
3
  anthropic/_client.py,sha256=M90bE_o_HRuBNrbA-D-grLZua841_5NTkzeUQpyE75Y,22812
4
4
  anthropic/_compat.py,sha256=DQBVORjFb33zch24jzkhM14msvnzY7mmSmgDLaVFUM8,6562
5
5
  anthropic/_constants.py,sha256=wADeUqY3lsseF0L6jIen-PexfQ06FOtf2dVESXDM828,885
@@ -12,7 +12,7 @@ anthropic/_resource.py,sha256=FYEOzfhB-XWTR2gyTmQuuFoecRiVXxe_SpjZlQQGytU,1080
12
12
  anthropic/_response.py,sha256=1Y7-OrGn1lOwvZ_SmMlwT9Nb2i9A1RYw2Q4-F1cwPSU,30542
13
13
  anthropic/_streaming.py,sha256=vn8K5KgfO3Bv9NE8nwHIQEjEhkQeVE6YMnGqiJlCgqE,14023
14
14
  anthropic/_types.py,sha256=vEab5B5Hp7xQQafVrgSCHeEPUmf74jofqIPo-n7Xljk,7338
15
- anthropic/_version.py,sha256=H7B-6VS76QjLh0Uua-lR_zmrEZFN8S_zuVwjAFi3HNo,162
15
+ anthropic/_version.py,sha256=bOtoMxc6DENRbWC9R66igNBXu3_Vvar9dVprQLq9Uno,162
16
16
  anthropic/pagination.py,sha256=MgGFbx3GDm4XASijWas0-2eVb1iGR-DgqyPrDf5Jll8,5152
17
17
  anthropic/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
18
18
  anthropic/_decoders/jsonl.py,sha256=KDLw-Frjo7gRup5qDp_BWkXIZ-mFZU5vFDz0WBhEKcs,3510
@@ -71,7 +71,7 @@ anthropic/resources/beta/skills/skills.py,sha256=ytCR9JN7Qgn9GbWT0oBgpy-nvYXWwqo
71
71
  anthropic/resources/beta/skills/versions.py,sha256=iWSrZ4iqVGm16f7r_aE79gDxeUTUaSw5dEBAyHIxRu8,25212
72
72
  anthropic/resources/messages/__init__.py,sha256=iOSBh4D7NTXqe7RNhw9HZCiFmJvDfIgVFnjaF7r27YU,897
73
73
  anthropic/resources/messages/batches.py,sha256=oTuHN8jUqwJYbUybLiuHG6wFItO0jlwLWyxZeRLGr0Y,28548
74
- anthropic/resources/messages/messages.py,sha256=JxErUoJZjHQTTxDvfHCJZaguQZJPamOmhkLQoflA_ZM,108522
74
+ anthropic/resources/messages/messages.py,sha256=O4mKyIIKPSTIL9Ud7j-F2QBMTciwbfkTuWnb7hiSjVk,108526
75
75
  anthropic/types/__init__.py,sha256=H56hkiGRNPgQE1PANpHed0ns8nMqJGVqLmM7gVWLRWg,9458
76
76
  anthropic/types/anthropic_beta_param.py,sha256=TLDPgIjC5ZYDJXPCbszi6CoGBgeBdLRs3qs7Rw5AgEk,970
77
77
  anthropic/types/base64_image_source_param.py,sha256=4djZ4GfXcL2khwcg8KpUdZILKmmzHro5YFXTdkhSqpw,725
@@ -125,10 +125,10 @@ anthropic/types/message_stop_event.py,sha256=rtYh1F-b9xilu8s_RdaHijP7kf3om6FvK9c
125
125
  anthropic/types/message_stream_event.py,sha256=OspCo1IFpItyJDr4Ta16o8DQmTsgVWSmeNg4BhfMM0M,285
126
126
  anthropic/types/message_tokens_count.py,sha256=JmkcWw9nZAUgr2WY5G4Mwqs2jcnMuZXh920MlUkvY70,329
127
127
  anthropic/types/metadata_param.py,sha256=p6j8bWh3FfI3PB-vJjU4JhRukP2NZdrcE2gQixw5zgw,594
128
- anthropic/types/model.py,sha256=p6smk4Xte5Z_y8Lo07kk_0O5yHFT0bm-xDlAavXAhaU,963
128
+ anthropic/types/model.py,sha256=snPrs9phxAQqz6Eky_lVHDya0WttYlrQyjR0toiD6nc,851
129
129
  anthropic/types/model_info.py,sha256=JrqNQwWcOiC5ItKTZqRfeAQhPWzi0AyzzOTF6AdE-ss,646
130
130
  anthropic/types/model_list_params.py,sha256=O2GJOAHr6pB7yGAJhLjcwsDJ8ACtE1GrOrI2JDkj0w8,974
131
- anthropic/types/model_param.py,sha256=sf2ibTNyO2efOvTgReosHWrSzpx02ZmQEVaGtHVliLk,1009
131
+ anthropic/types/model_param.py,sha256=RciNjl0f1i_BBlpdO800-LomLSrngA96hsRK97gHgL0,897
132
132
  anthropic/types/plain_text_source_param.py,sha256=zdzLMfSQZH2_9Z8ssVc5hLG1w_AuFZ2Z3E17lEntAzg,382
133
133
  anthropic/types/raw_content_block_delta.py,sha256=T1i1gSGq9u9obYbxgXYAwux-WIRqSRWJW9tBjBDXoP8,611
134
134
  anthropic/types/raw_content_block_delta_event.py,sha256=XKpY_cCljZ6NFtVCt5R38imPbnZAbFyQVIB5d4K4ZgY,393
@@ -403,7 +403,7 @@ anthropic/types/shared/not_found_error.py,sha256=R6OsCvAmsf_SB2TwoX6E63o049qZMaA
403
403
  anthropic/types/shared/overloaded_error.py,sha256=PlyhHt3wmzcnynSfkWbfP4XkLoWsPa9B39V3CyAdgx8,282
404
404
  anthropic/types/shared/permission_error.py,sha256=nuyxtLXOiEkYEbFRXiAWjxU6XtdyjkAaXQ2NgMB3pjw,282
405
405
  anthropic/types/shared/rate_limit_error.py,sha256=eYULATjXa6KKdqeBauest7RzuN-bhGsY5BWwH9eYv4c,280
406
- anthropic-0.71.0.dist-info/METADATA,sha256=tRlefsrkv7BRH_gbZiMOs6WmAqc4vMRaGT4XUoO-6kw,28564
407
- anthropic-0.71.0.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
408
- anthropic-0.71.0.dist-info/licenses/LICENSE,sha256=i_lphP-Lz65-SMrnalKeiiUxe6ngKr9_08xk_flWV6Y,1056
409
- anthropic-0.71.0.dist-info/RECORD,,
406
+ anthropic-0.71.1.dist-info/METADATA,sha256=POPFz3Z8GAU6VfJ6b-LSXrHgQ895bytGBb3vVw3GSgE,28564
407
+ anthropic-0.71.1.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
408
+ anthropic-0.71.1.dist-info/licenses/LICENSE,sha256=i_lphP-Lz65-SMrnalKeiiUxe6ngKr9_08xk_flWV6Y,1056
409
+ anthropic-0.71.1.dist-info/RECORD,,