tokencostauto 0.1.29__py3-none-any.whl → 0.1.32__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.
@@ -2021,6 +2021,11 @@
2021
2021
  "output_cost_per_token": 1.5e-05,
2022
2022
  "cache_creation_input_token_cost": 3.75e-06,
2023
2023
  "cache_read_input_token_cost": 3e-07,
2024
+ "search_context_cost_per_query": {
2025
+ "search_context_size_low": 0.01,
2026
+ "search_context_size_medium": 0.01,
2027
+ "search_context_size_high": 0.01
2028
+ },
2024
2029
  "litellm_provider": "anthropic",
2025
2030
  "mode": "chat",
2026
2031
  "supports_function_calling": true,
@@ -2031,7 +2036,8 @@
2031
2036
  "supports_prompt_caching": true,
2032
2037
  "supports_response_schema": true,
2033
2038
  "deprecation_date": "2025-10-01",
2034
- "supports_tool_choice": true
2039
+ "supports_tool_choice": true,
2040
+ "supports_web_search": true
2035
2041
  },
2036
2042
  "claude-3-5-sonnet-latest": {
2037
2043
  "max_tokens": 8192,
@@ -2041,6 +2047,11 @@
2041
2047
  "output_cost_per_token": 1.5e-05,
2042
2048
  "cache_creation_input_token_cost": 3.75e-06,
2043
2049
  "cache_read_input_token_cost": 3e-07,
2050
+ "search_context_cost_per_query": {
2051
+ "search_context_size_low": 0.01,
2052
+ "search_context_size_medium": 0.01,
2053
+ "search_context_size_high": 0.01
2054
+ },
2044
2055
  "litellm_provider": "anthropic",
2045
2056
  "mode": "chat",
2046
2057
  "supports_function_calling": true,
@@ -2051,7 +2062,8 @@
2051
2062
  "supports_prompt_caching": true,
2052
2063
  "supports_response_schema": true,
2053
2064
  "deprecation_date": "2025-06-01",
2054
- "supports_tool_choice": true
2065
+ "supports_tool_choice": true,
2066
+ "supports_web_search": true
2055
2067
  },
2056
2068
  "text-bison": {
2057
2069
  "max_tokens": 2048,
@@ -7507,6 +7519,11 @@
7507
7519
  "output_cost_per_token": 4e-06,
7508
7520
  "cache_creation_input_token_cost": 1e-06,
7509
7521
  "cache_read_input_token_cost": 8e-08,
7522
+ "search_context_cost_per_query": {
7523
+ "search_context_size_low": 0.01,
7524
+ "search_context_size_medium": 0.01,
7525
+ "search_context_size_high": 0.01
7526
+ },
7510
7527
  "litellm_provider": "anthropic",
7511
7528
  "mode": "chat",
7512
7529
  "supports_function_calling": true,
@@ -7517,7 +7534,8 @@
7517
7534
  "supports_prompt_caching": true,
7518
7535
  "supports_response_schema": true,
7519
7536
  "deprecation_date": "2025-10-01",
7520
- "supports_tool_choice": true
7537
+ "supports_tool_choice": true,
7538
+ "supports_web_search": true
7521
7539
  },
7522
7540
  "vertex_ai/claude-3-5-haiku@20241022": {
7523
7541
  "max_tokens": 8192,
@@ -9585,6 +9603,11 @@
9585
9603
  "output_cost_per_token": 5e-06,
9586
9604
  "cache_creation_input_token_cost": 1.25e-06,
9587
9605
  "cache_read_input_token_cost": 1e-07,
9606
+ "search_context_cost_per_query": {
9607
+ "search_context_size_low": 0.01,
9608
+ "search_context_size_medium": 0.01,
9609
+ "search_context_size_high": 0.01
9610
+ },
9588
9611
  "litellm_provider": "anthropic",
9589
9612
  "mode": "chat",
9590
9613
  "supports_function_calling": true,
@@ -9595,7 +9618,8 @@
9595
9618
  "supports_prompt_caching": true,
9596
9619
  "supports_response_schema": true,
9597
9620
  "deprecation_date": "2025-10-01",
9598
- "supports_tool_choice": true
9621
+ "supports_tool_choice": true,
9622
+ "supports_web_search": true
9599
9623
  },
9600
9624
  "claude-3-7-sonnet-latest": {
9601
9625
  "max_tokens": 128000,
@@ -9603,6 +9627,11 @@
9603
9627
  "max_output_tokens": 128000,
9604
9628
  "input_cost_per_token": 3e-06,
9605
9629
  "output_cost_per_token": 1.5e-05,
9630
+ "search_context_cost_per_query": {
9631
+ "search_context_size_low": 0.01,
9632
+ "search_context_size_medium": 0.01,
9633
+ "search_context_size_high": 0.01
9634
+ },
9606
9635
  "cache_creation_input_token_cost": 3.75e-06,
9607
9636
  "cache_read_input_token_cost": 3e-07,
9608
9637
  "litellm_provider": "anthropic",
@@ -9626,6 +9655,11 @@
9626
9655
  "output_cost_per_token": 1.5e-05,
9627
9656
  "cache_creation_input_token_cost": 3.75e-06,
9628
9657
  "cache_read_input_token_cost": 3e-07,
9658
+ "search_context_cost_per_query": {
9659
+ "search_context_size_low": 0.01,
9660
+ "search_context_size_medium": 0.01,
9661
+ "search_context_size_high": 0.01
9662
+ },
9629
9663
  "litellm_provider": "anthropic",
9630
9664
  "mode": "chat",
9631
9665
  "supports_function_calling": true,
@@ -9637,7 +9671,8 @@
9637
9671
  "supports_response_schema": true,
9638
9672
  "deprecation_date": "2026-02-01",
9639
9673
  "supports_tool_choice": true,
9640
- "supports_reasoning": true
9674
+ "supports_reasoning": true,
9675
+ "supports_web_search": true
9641
9676
  },
9642
9677
  "vertex_ai/claude-3-7-sonnet@20250219": {
9643
9678
  "max_tokens": 8192,
@@ -13134,5 +13169,58 @@
13134
13169
  "/v1/images/generations"
13135
13170
  ],
13136
13171
  "source": "https://docs.nscale.com/docs/inference/serverless-models/current#image-models"
13172
+ },
13173
+ "azure/gpt-4o-mini-tts": {
13174
+ "mode": "audio_speech",
13175
+ "input_cost_per_token": 2.5e-06,
13176
+ "output_cost_per_token": 1e-05,
13177
+ "output_cost_per_audio_token": 1.2e-05,
13178
+ "output_cost_per_second": 0.00025,
13179
+ "litellm_provider": "azure",
13180
+ "supported_modalities": [
13181
+ "text",
13182
+ "audio"
13183
+ ],
13184
+ "supported_output_modalities": [
13185
+ "audio"
13186
+ ],
13187
+ "supported_endpoints": [
13188
+ "/v1/audio/speech"
13189
+ ]
13190
+ },
13191
+ "azure_ai/embed-v-4-0": {
13192
+ "max_tokens": 128000,
13193
+ "max_input_tokens": 128000,
13194
+ "output_vector_size": 3072,
13195
+ "input_cost_per_token": 1.2e-07,
13196
+ "output_cost_per_token": 0.0,
13197
+ "litellm_provider": "azure_ai",
13198
+ "mode": "embedding",
13199
+ "supports_embedding_image_input": true,
13200
+ "supported_endpoints": [
13201
+ "/v1/embeddings"
13202
+ ],
13203
+ "supported_modalities": [
13204
+ "text",
13205
+ "image"
13206
+ ],
13207
+ "source": "https://azuremarketplace.microsoft.com/pt-br/marketplace/apps/cohere.cohere-embed-4-offer?tab=PlansAndPrice"
13208
+ },
13209
+ "eu.anthropic.claude-3-7-sonnet-20250219-v1:0": {
13210
+ "max_tokens": 8192,
13211
+ "max_input_tokens": 200000,
13212
+ "max_output_tokens": 8192,
13213
+ "input_cost_per_token": 3e-06,
13214
+ "output_cost_per_token": 1.5e-05,
13215
+ "litellm_provider": "bedrock",
13216
+ "mode": "chat",
13217
+ "supports_function_calling": true,
13218
+ "supports_vision": true,
13219
+ "supports_assistant_prefill": true,
13220
+ "supports_prompt_caching": true,
13221
+ "supports_response_schema": true,
13222
+ "supports_pdf_input": true,
13223
+ "supports_tool_choice": true,
13224
+ "supports_reasoning": true
13137
13225
  }
13138
13226
  }
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tokencostauto
3
- Version: 0.1.29
3
+ Version: 0.1.32
4
4
  Summary: To calculate token and translated USD cost of string and message calls to OpenAI, for example when used by AI agents
5
5
  Author-email: Trisha Pan <trishaepan@gmail.com>, Alex Reibman <areibman@gmail.com>, Pratyush Shukla <ps4534@nyu.edu>, Thiago MadPin <madpin@gmail.com>
6
6
  Project-URL: Homepage, https://github.com/madpin/tokencostaudo
@@ -0,0 +1,9 @@
1
+ tokencostauto/__init__.py,sha256=-4d_ryFH62SgNXPXA8vGPFZoAKtOBjnsg37EB_RkZG8,289
2
+ tokencostauto/constants.py,sha256=_82MlTkTrdrwzyRosQD7d3JdgNP9KAUM-cZo8DE00P0,3395
3
+ tokencostauto/costs.py,sha256=tXsgrTypq-dCHaHtoXcg2XepezWsAvZpl9gEsv_53iE,10679
4
+ tokencostauto/model_prices.json,sha256=InjmBIw79wgw6mXtQixVp0GzP33cKJLv_9yuN5LeD5A,471612
5
+ tokencostauto-0.1.32.dist-info/licenses/LICENSE,sha256=4PLv_CD6Ughnsvg_nM2XeTqGwVK6lQVR77kVWbPq-0U,1065
6
+ tokencostauto-0.1.32.dist-info/METADATA,sha256=wrKjPG1aE3gw7t2OO8-4JNiDsancCUyxEI6Ma5okzpc,204075
7
+ tokencostauto-0.1.32.dist-info/WHEEL,sha256=DnLRTWE75wApRYVsjgc6wsVswC54sMSJhAEd4xhDpBk,91
8
+ tokencostauto-0.1.32.dist-info/top_level.txt,sha256=szZQTUJRotfIaeZCDsOgvofIkLt2ak88RP13oI51-TU,14
9
+ tokencostauto-0.1.32.dist-info/RECORD,,
@@ -1,9 +0,0 @@
1
- tokencostauto/__init__.py,sha256=-4d_ryFH62SgNXPXA8vGPFZoAKtOBjnsg37EB_RkZG8,289
2
- tokencostauto/constants.py,sha256=_82MlTkTrdrwzyRosQD7d3JdgNP9KAUM-cZo8DE00P0,3395
3
- tokencostauto/costs.py,sha256=tXsgrTypq-dCHaHtoXcg2XepezWsAvZpl9gEsv_53iE,10679
4
- tokencostauto/model_prices.json,sha256=pjU4wUl3QQHwEvJFywqGIFYGcIb_Q3IxL4NSEL87uNg,468528
5
- tokencostauto-0.1.29.dist-info/licenses/LICENSE,sha256=4PLv_CD6Ughnsvg_nM2XeTqGwVK6lQVR77kVWbPq-0U,1065
6
- tokencostauto-0.1.29.dist-info/METADATA,sha256=Hy5LqxUViLLrjTFin0a0YwU8x6e9OSF8U3k262C253Y,204075
7
- tokencostauto-0.1.29.dist-info/WHEEL,sha256=DnLRTWE75wApRYVsjgc6wsVswC54sMSJhAEd4xhDpBk,91
8
- tokencostauto-0.1.29.dist-info/top_level.txt,sha256=szZQTUJRotfIaeZCDsOgvofIkLt2ak88RP13oI51-TU,14
9
- tokencostauto-0.1.29.dist-info/RECORD,,