Skip to content

Commit 416429e

Browse files
authored
Add New Perplexity Models (#10652)
* add new perplexity models * update backup json * updated deep research * updated backup json
1 parent ff279fa commit 416429e

File tree

2 files changed

+125
-9
lines changed

2 files changed

+125
-9
lines changed

litellm/model_prices_and_context_window_backup.json

+63-5
Original file line numberDiff line numberDiff line change
@@ -4257,7 +4257,7 @@
42574257
"supports_function_calling": true,
42584258
"supports_tool_choice": true
42594259
},
4260-
"cerebras/llama3.3-70b": {
4260+
"cerebras/llama-3.3-70b": {
42614261
"max_tokens": 128000,
42624262
"max_input_tokens": 128000,
42634263
"max_output_tokens": 128000,
@@ -11163,13 +11163,71 @@
1116311163
"litellm_provider": "perplexity",
1116411164
"mode": "chat"
1116511165
},
11166+
"perplexity/sonar": {
11167+
"max_tokens": 128000,
11168+
"max_input_tokens": 128000,
11169+
"input_cost_per_token": 1e-6,
11170+
"output_cost_per_token": 1e-6,
11171+
"litellm_provider": "perplexity",
11172+
"mode": "chat",
11173+
"search_context_cost_per_query": {
11174+
"search_context_size_low": 5e-3,
11175+
"search_context_size_medium": 8e-3,
11176+
"search_context_size_high": 12e-3
11177+
},
11178+
"supports_web_search": true
11179+
},
11180+
"perplexity/sonar-pro": {
11181+
"max_tokens": 8000,
11182+
"max_input_tokens": 200000,
11183+
"max_output_tokens": 8000,
11184+
"input_cost_per_token": 3e-6,
11185+
"output_cost_per_token": 15e-6,
11186+
"litellm_provider": "perplexity",
11187+
"mode": "chat",
11188+
"search_context_cost_per_query": {
11189+
"search_context_size_low": 6e-3,
11190+
"search_context_size_medium": 10e-3,
11191+
"search_context_size_high": 14e-3
11192+
},
11193+
"supports_web_search": true
11194+
},
11195+
"perplexity/sonar-reasoning": {
11196+
"max_tokens": 128000,
11197+
"max_input_tokens": 128000,
11198+
"input_cost_per_token": 1e-6,
11199+
"output_cost_per_token": 5e-6,
11200+
"litellm_provider": "perplexity",
11201+
"mode": "chat",
11202+
"search_context_cost_per_query": {
11203+
"search_context_size_low": 5e-3,
11204+
"search_context_size_medium": 8e-3,
11205+
"search_context_size_high": 14e-3
11206+
},
11207+
"supports_web_search": true,
11208+
"supports_reasoning": true
11209+
},
11210+
"perplexity/sonar-reasoning-pro": {
11211+
"max_tokens": 128000,
11212+
"max_input_tokens": 128000,
11213+
"input_cost_per_token": 2e-6,
11214+
"output_cost_per_token": 8e-6,
11215+
"litellm_provider": "perplexity",
11216+
"mode": "chat",
11217+
"search_context_cost_per_query": {
11218+
"search_context_size_low": 6e-3,
11219+
"search_context_size_medium": 10e-3,
11220+
"search_context_size_high": 14e-3
11221+
},
11222+
"supports_web_search": true,
11223+
"supports_reasoning": true
11224+
},
1116611225
"perplexity/sonar-deep-research": {
11167-
"max_tokens": 12000,
11168-
"max_input_tokens": 12000,
11169-
"max_output_tokens": 12000,
11226+
"max_tokens": 128000,
11227+
"max_input_tokens": 128000,
1117011228
"input_cost_per_token": 2e-6,
1117111229
"output_cost_per_token": 8e-6,
11172-
"output_cost_per_reasoning_token": 3e-5,
11230+
"output_cost_per_reasoning_token": 3e-6,
1117311231
"litellm_provider": "perplexity",
1117411232
"mode": "chat",
1117511233
"search_context_cost_per_query": {

model_prices_and_context_window.json

+62-4
Original file line numberDiff line numberDiff line change
@@ -11163,13 +11163,71 @@
1116311163
"litellm_provider": "perplexity",
1116411164
"mode": "chat"
1116511165
},
11166+
"perplexity/sonar": {
11167+
"max_tokens": 128000,
11168+
"max_input_tokens": 128000,
11169+
"input_cost_per_token": 1e-6,
11170+
"output_cost_per_token": 1e-6,
11171+
"litellm_provider": "perplexity",
11172+
"mode": "chat",
11173+
"search_context_cost_per_query": {
11174+
"search_context_size_low": 5e-3,
11175+
"search_context_size_medium": 8e-3,
11176+
"search_context_size_high": 12e-3
11177+
},
11178+
"supports_web_search": true
11179+
},
11180+
"perplexity/sonar-pro": {
11181+
"max_tokens": 8000,
11182+
"max_input_tokens": 200000,
11183+
"max_output_tokens": 8000,
11184+
"input_cost_per_token": 3e-6,
11185+
"output_cost_per_token": 15e-6,
11186+
"litellm_provider": "perplexity",
11187+
"mode": "chat",
11188+
"search_context_cost_per_query": {
11189+
"search_context_size_low": 6e-3,
11190+
"search_context_size_medium": 10e-3,
11191+
"search_context_size_high": 14e-3
11192+
},
11193+
"supports_web_search": true
11194+
},
11195+
"perplexity/sonar-reasoning": {
11196+
"max_tokens": 128000,
11197+
"max_input_tokens": 128000,
11198+
"input_cost_per_token": 1e-6,
11199+
"output_cost_per_token": 5e-6,
11200+
"litellm_provider": "perplexity",
11201+
"mode": "chat",
11202+
"search_context_cost_per_query": {
11203+
"search_context_size_low": 5e-3,
11204+
"search_context_size_medium": 8e-3,
11205+
"search_context_size_high": 14e-3
11206+
},
11207+
"supports_web_search": true,
11208+
"supports_reasoning": true
11209+
},
11210+
"perplexity/sonar-reasoning-pro": {
11211+
"max_tokens": 128000,
11212+
"max_input_tokens": 128000,
11213+
"input_cost_per_token": 2e-6,
11214+
"output_cost_per_token": 8e-6,
11215+
"litellm_provider": "perplexity",
11216+
"mode": "chat",
11217+
"search_context_cost_per_query": {
11218+
"search_context_size_low": 6e-3,
11219+
"search_context_size_medium": 10e-3,
11220+
"search_context_size_high": 14e-3
11221+
},
11222+
"supports_web_search": true,
11223+
"supports_reasoning": true
11224+
},
1116611225
"perplexity/sonar-deep-research": {
11167-
"max_tokens": 12000,
11168-
"max_input_tokens": 12000,
11169-
"max_output_tokens": 12000,
11226+
"max_tokens": 128000,
11227+
"max_input_tokens": 128000,
1117011228
"input_cost_per_token": 2e-6,
1117111229
"output_cost_per_token": 8e-6,
11172-
"output_cost_per_reasoning_token": 3e-5,
11230+
"output_cost_per_reasoning_token": 3e-6,
1117311231
"litellm_provider": "perplexity",
1117411232
"mode": "chat",
1117511233
"search_context_cost_per_query": {

0 commit comments

Comments
 (0)