mirror of
https://github.com/BerriAI/litellm.git
synced 2026-08-28 05:25:59 +00:00
Add perplexity response api routing
This commit is contained in:
parent
849d6b7cdb
commit
be0ebb153e
3 changed files with 77 additions and 0 deletions
|
|
@ -274,6 +274,7 @@ LLM_CONFIG_NAMES = (
|
||||||
"LmStudioEmbeddingConfig",
|
"LmStudioEmbeddingConfig",
|
||||||
"NscaleConfig",
|
"NscaleConfig",
|
||||||
"PerplexityChatConfig",
|
"PerplexityChatConfig",
|
||||||
|
"PerplexityResponsesConfig",
|
||||||
"AzureOpenAIO1Config",
|
"AzureOpenAIO1Config",
|
||||||
"IBMWatsonXAIConfig",
|
"IBMWatsonXAIConfig",
|
||||||
"IBMWatsonXChatConfig",
|
"IBMWatsonXChatConfig",
|
||||||
|
|
@ -1033,6 +1034,10 @@ _LLM_CONFIGS_IMPORT_MAP = {
|
||||||
".llms.perplexity.chat.transformation",
|
".llms.perplexity.chat.transformation",
|
||||||
"PerplexityChatConfig",
|
"PerplexityChatConfig",
|
||||||
),
|
),
|
||||||
|
"PerplexityResponsesConfig": (
|
||||||
|
".llms.perplexity.responses.transformation",
|
||||||
|
"PerplexityResponsesConfig",
|
||||||
|
),
|
||||||
"AzureOpenAIO1Config": (
|
"AzureOpenAIO1Config": (
|
||||||
".llms.azure.chat.o_series_transformation",
|
".llms.azure.chat.o_series_transformation",
|
||||||
"AzureOpenAIO1Config",
|
"AzureOpenAIO1Config",
|
||||||
|
|
|
||||||
|
|
@ -8243,6 +8243,8 @@ class ProviderConfigManager:
|
||||||
return litellm.VolcEngineResponsesAPIConfig()
|
return litellm.VolcEngineResponsesAPIConfig()
|
||||||
elif litellm.LlmProviders.MANUS == provider:
|
elif litellm.LlmProviders.MANUS == provider:
|
||||||
return litellm.ManusResponsesAPIConfig()
|
return litellm.ManusResponsesAPIConfig()
|
||||||
|
elif litellm.LlmProviders.PERPLEXITY == provider:
|
||||||
|
return litellm.PerplexityResponsesConfig()
|
||||||
return None
|
return None
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
|
|
||||||
|
|
@ -25614,6 +25614,76 @@
|
||||||
"supports_function_calling": true,
|
"supports_function_calling": true,
|
||||||
"supports_tool_choice": true
|
"supports_tool_choice": true
|
||||||
},
|
},
|
||||||
|
"perplexity/preset/pro-search": {
|
||||||
|
"litellm_provider": "perplexity",
|
||||||
|
"mode": "responses",
|
||||||
|
"supports_web_search": true,
|
||||||
|
"supports_preset": true,
|
||||||
|
"preset_name": "pro-search"
|
||||||
|
},
|
||||||
|
"perplexity/openai/gpt-4o": {
|
||||||
|
"litellm_provider": "perplexity",
|
||||||
|
"mode": "responses",
|
||||||
|
"supports_web_search": true,
|
||||||
|
"supports_reasoning": false,
|
||||||
|
"third_party_provider": "openai"
|
||||||
|
},
|
||||||
|
"perplexity/openai/gpt-4o-mini": {
|
||||||
|
"litellm_provider": "perplexity",
|
||||||
|
"mode": "responses",
|
||||||
|
"supports_web_search": true,
|
||||||
|
"supports_reasoning": false,
|
||||||
|
"third_party_provider": "openai"
|
||||||
|
},
|
||||||
|
"perplexity/openai/gpt-5.2": {
|
||||||
|
"litellm_provider": "perplexity",
|
||||||
|
"mode": "responses",
|
||||||
|
"supports_web_search": true,
|
||||||
|
"supports_reasoning": true,
|
||||||
|
"third_party_provider": "openai"
|
||||||
|
},
|
||||||
|
"perplexity/anthropic/claude-3-5-sonnet-20241022": {
|
||||||
|
"litellm_provider": "perplexity",
|
||||||
|
"mode": "responses",
|
||||||
|
"supports_web_search": true,
|
||||||
|
"supports_reasoning": false,
|
||||||
|
"third_party_provider": "anthropic"
|
||||||
|
},
|
||||||
|
"perplexity/anthropic/claude-3-5-haiku-20241022": {
|
||||||
|
"litellm_provider": "perplexity",
|
||||||
|
"mode": "responses",
|
||||||
|
"supports_web_search": true,
|
||||||
|
"supports_reasoning": false,
|
||||||
|
"third_party_provider": "anthropic"
|
||||||
|
},
|
||||||
|
"perplexity/google/gemini-2.0-flash-exp": {
|
||||||
|
"litellm_provider": "perplexity",
|
||||||
|
"mode": "responses",
|
||||||
|
"supports_web_search": true,
|
||||||
|
"supports_reasoning": false,
|
||||||
|
"third_party_provider": "google"
|
||||||
|
},
|
||||||
|
"perplexity/google/gemini-2.0-flash-thinking-exp": {
|
||||||
|
"litellm_provider": "perplexity",
|
||||||
|
"mode": "responses",
|
||||||
|
"supports_web_search": true,
|
||||||
|
"supports_reasoning": true,
|
||||||
|
"third_party_provider": "google"
|
||||||
|
},
|
||||||
|
"perplexity/xai/grok-2-1212": {
|
||||||
|
"litellm_provider": "perplexity",
|
||||||
|
"mode": "responses",
|
||||||
|
"supports_web_search": true,
|
||||||
|
"supports_reasoning": false,
|
||||||
|
"third_party_provider": "xai"
|
||||||
|
},
|
||||||
|
"perplexity/xai/grok-2-vision-1212": {
|
||||||
|
"litellm_provider": "perplexity",
|
||||||
|
"mode": "responses",
|
||||||
|
"supports_web_search": true,
|
||||||
|
"supports_reasoning": false,
|
||||||
|
"third_party_provider": "xai"
|
||||||
|
},
|
||||||
"publicai/aisingapore/Qwen-SEA-LION-v4-32B-IT": {
|
"publicai/aisingapore/Qwen-SEA-LION-v4-32B-IT": {
|
||||||
"input_cost_per_token": 0.0,
|
"input_cost_per_token": 0.0,
|
||||||
"litellm_provider": "publicai",
|
"litellm_provider": "publicai",
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue