mirror of
https://github.com/Nezumi-2711/9router.git
synced 2026-09-22 13:38:31 +00:00
- 100 registry files: transport + models co-located per provider (Mongoose-style) - providers/shared.js: shared Claude headers + OS/arch helpers (deduped) - providers/models/helpers.js: withCodexReviewModels (kept dynamic) - providers/index.js builds PROVIDERS + PROVIDER_MODELS = old API (content byte-for-byte) - config/providers.js + providerModels.js → barrel re-export, keep accessors + runtime helpers - Verified: PROVIDERS/MODELS/OAuth/alias byte-for-byte, golden translator tests pass, 0 new regression Co-authored-by: Cursor <cursoragent@cursor.com>
104 lines
2.2 KiB
JavaScript
104 lines
2.2 KiB
JavaScript
export default {
|
|
"id": "openrouter",
|
|
"alias": "openrouter",
|
|
"transport": {
|
|
"baseUrl": "https://openrouter.ai/api/v1/chat/completions",
|
|
"headers": {
|
|
"HTTP-Referer": "https://endpoint-proxy.local",
|
|
"X-Title": "Endpoint Proxy"
|
|
}
|
|
},
|
|
"models": [
|
|
{
|
|
"id": "openai/text-embedding-3-large",
|
|
"name": "OpenAI Text Embedding 3 Large",
|
|
"type": "embedding"
|
|
},
|
|
{
|
|
"id": "openai/text-embedding-3-small",
|
|
"name": "OpenAI Text Embedding 3 Small",
|
|
"type": "embedding"
|
|
},
|
|
{
|
|
"id": "openai/text-embedding-ada-002",
|
|
"name": "OpenAI Text Embedding Ada 002",
|
|
"type": "embedding"
|
|
},
|
|
{
|
|
"id": "qwen/qwen3-embedding-8b",
|
|
"name": "Qwen3 Embedding 8B",
|
|
"type": "embedding"
|
|
},
|
|
{
|
|
"id": "perplexity/pplx-embed-v1-4b",
|
|
"name": "Perplexity Embed V1 4B",
|
|
"type": "embedding"
|
|
},
|
|
{
|
|
"id": "perplexity/pplx-embed-v1-0.6b",
|
|
"name": "Perplexity Embed V1 0.6B",
|
|
"type": "embedding"
|
|
},
|
|
{
|
|
"id": "nvidia/llama-nemotron-embed-vl-1b-v2:free",
|
|
"name": "NVIDIA Nemotron Embed VL 1B V2 (Free)",
|
|
"type": "embedding"
|
|
},
|
|
{
|
|
"id": "openai/gpt-4o-mini-tts",
|
|
"name": "GPT-4o Mini TTS",
|
|
"type": "tts"
|
|
},
|
|
{
|
|
"id": "openai/tts-1-hd",
|
|
"name": "TTS-1 HD",
|
|
"type": "tts"
|
|
},
|
|
{
|
|
"id": "openai/tts-1",
|
|
"name": "TTS-1",
|
|
"type": "tts"
|
|
},
|
|
{
|
|
"id": "openai/dall-e-3",
|
|
"name": "DALL-E 3 (via OpenRouter)",
|
|
"type": "image",
|
|
"params": [
|
|
"size",
|
|
"quality",
|
|
"style",
|
|
"response_format"
|
|
]
|
|
},
|
|
{
|
|
"id": "openai/gpt-image-1",
|
|
"name": "GPT Image 1 (via OpenRouter)",
|
|
"type": "image",
|
|
"params": [
|
|
"n",
|
|
"size",
|
|
"quality",
|
|
"response_format"
|
|
]
|
|
},
|
|
{
|
|
"id": "google/imagen-3.0-generate-002",
|
|
"name": "Imagen 3 (via OpenRouter)",
|
|
"type": "image",
|
|
"params": [
|
|
"n",
|
|
"size"
|
|
]
|
|
},
|
|
{
|
|
"id": "black-forest-labs/FLUX.1-schnell",
|
|
"name": "FLUX.1 Schnell (via OpenRouter)",
|
|
"type": "image",
|
|
"params": [
|
|
"n",
|
|
"size"
|
|
]
|
|
}
|
|
]
|
|
};
|