mirror of
https://github.com/Nezumi-2711/9router.git
synced 2026-09-22 13:38:31 +00:00
- image/embed/tts/search base URLs derive from media.*Config.baseUrl / searchViaChat.endpoint (single source); handlers read PROVIDER_MEDIA. - ~18 hardcoded endpoints moved: bfl/fal/stability/runway/hf/gemini/ cloudflare/recraft/sdwebui/comfyui/nanobanana image, voyage embed, gemini/openrouter tts, chatSearch endpoints. - Byte-identical: PROVIDERS 62 + alias 90 baselines, image buildUrl outputs. Co-authored-by: Cursor <cursoragent@cursor.com>
38 lines
896 B
JavaScript
38 lines
896 B
JavaScript
|
|
export default {
|
|
"id": "perplexity",
|
|
"alias": "perplexity",
|
|
display: {
|
|
"name": "Perplexity",
|
|
"icon": "search",
|
|
"color": "#20808D",
|
|
"textIcon": "PP",
|
|
"website": "https://www.perplexity.ai",
|
|
"notice": {
|
|
"apiKeyUrl": "https://www.perplexity.ai/settings/api"
|
|
}
|
|
},
|
|
category: "apikey",
|
|
uiAlias: "pplx",
|
|
authType: "apikey",
|
|
aliases: ["pplx"],
|
|
"transport": {
|
|
"baseUrl": "https://api.perplexity.ai/chat/completions",
|
|
"validateUrl": "https://api.perplexity.ai/models"
|
|
},
|
|
media: {
|
|
serviceKinds: ["llm", "webSearch"],
|
|
searchViaChat: { defaultModel: "sonar", endpoint: "https://api.perplexity.ai/chat/completions", pricingUrl: "https://docs.perplexity.ai/guides/pricing" }
|
|
},
|
|
"models": [
|
|
{
|
|
"id": "sonar-pro",
|
|
"name": "Sonar Pro"
|
|
},
|
|
{
|
|
"id": "sonar",
|
|
"name": "Sonar"
|
|
}
|
|
]
|
|
};
|