|
|
@@ -0,0 +1,75 @@
|
|
|
+import type { InkosProvider } from "./types.js";
|
|
|
+
|
|
|
+export const OPENROUTER: InkosProvider = {
|
|
|
+ id: "openrouter",
|
|
|
+ label: "OpenRouter",
|
|
|
+ api: "openai-responses",
|
|
|
+ baseUrl: "https://openrouter.ai/api/v1",
|
|
|
+ piProvider: "openrouter",
|
|
|
+ checkModel: "google/gemma-2-9b-it:free",
|
|
|
+ temperatureRange: [0, 2],
|
|
|
+ defaultTemperature: 0.7,
|
|
|
+ writingTemperature: 1,
|
|
|
+ models: [
|
|
|
+ { id: "openrouter/auto", displayName: "Auto (best for prompt)", maxOutput: 4096, contextWindowTokens: 2000000, enabled: true },
|
|
|
+ { id: "deepseek/deepseek-chat-v3.1", displayName: "DeepSeek V3.1", maxOutput: 4096, contextWindowTokens: 163840, abilities: { reasoning: true, functionCall: true }, releasedAt: "2025-08-21" },
|
|
|
+ { id: "google/gemini-3.1-flash-image-preview", displayName: "Nano Banana 2", maxOutput: 65536, contextWindowTokens: 131072, abilities: { reasoning: true, vision: true }, releasedAt: "2026-02-26" },
|
|
|
+ { id: "google/gemini-3-pro-image-preview", displayName: "Nano Banana Pro", maxOutput: 32768, contextWindowTokens: 163840, abilities: { reasoning: true, vision: true }, releasedAt: "2025-11-20" },
|
|
|
+ { id: "google/gemini-2.5-flash-image", displayName: "Nano Banana", maxOutput: 8192, contextWindowTokens: 40960, abilities: { vision: true }, releasedAt: "2025-10-07" },
|
|
|
+ { id: "qwen/qwen3-30b-a3b:free", displayName: "Qwen3 30B A3B (Free)", maxOutput: 4096, contextWindowTokens: 40960, abilities: { reasoning: true } },
|
|
|
+ { id: "qwen/qwen3-30b-a3b", displayName: "Qwen3 30B A3B", maxOutput: 40960, contextWindowTokens: 40960, abilities: { reasoning: true } },
|
|
|
+ { id: "qwen/qwen3-8b:free", displayName: "Qwen3 8B (Free)", maxOutput: 40960, contextWindowTokens: 40960, abilities: { reasoning: true } },
|
|
|
+ { id: "qwen/qwen3-14b:free", displayName: "Qwen3 14B (Free)", maxOutput: 4096, contextWindowTokens: 40960, abilities: { reasoning: true } },
|
|
|
+ { id: "qwen/qwen3-14b", displayName: "Qwen3 14B", maxOutput: 40960, contextWindowTokens: 40960, abilities: { reasoning: true } },
|
|
|
+ { id: "qwen/qwen3-32b:free", displayName: "Qwen3 32B (Free)", maxOutput: 4096, contextWindowTokens: 40960, abilities: { reasoning: true } },
|
|
|
+ { id: "qwen/qwen3-32b", displayName: "Qwen3 32B", maxOutput: 4096, contextWindowTokens: 40960, abilities: { reasoning: true } },
|
|
|
+ { id: "qwen/qwen3-235b-a22b:free", displayName: "Qwen3 235B A22B (Free)", maxOutput: 4096, contextWindowTokens: 131072, abilities: { reasoning: true } },
|
|
|
+ { id: "qwen/qwen3-235b-a22b", displayName: "Qwen3 235B A22B", maxOutput: 40960, contextWindowTokens: 40960, abilities: { reasoning: true } },
|
|
|
+ { id: "tngtech/deepseek-r1t-chimera:free", displayName: "DeepSeek R1T Chimera (Free)", maxOutput: 4096, contextWindowTokens: 163840, abilities: { reasoning: true } },
|
|
|
+ { id: "thudm/glm-z1-rumination-32b", displayName: "GLM Z1 Rumination 32B", maxOutput: 4096, contextWindowTokens: 32000, abilities: { reasoning: true } },
|
|
|
+ { id: "thudm/glm-z1-32b", displayName: "GLM Z1 32B", maxOutput: 4096, contextWindowTokens: 32768, abilities: { reasoning: true } },
|
|
|
+ { id: "thudm/glm-4-32b:free", displayName: "GLM 4 32B (Free)", maxOutput: 4096, contextWindowTokens: 32000, abilities: { reasoning: true } },
|
|
|
+ { id: "thudm/glm-4-32b", displayName: "GLM 4 32B", maxOutput: 4096, contextWindowTokens: 32000, abilities: { reasoning: true } },
|
|
|
+ { id: "google/gemini-2.5-pro", displayName: "Gemini 2.5 Pro", maxOutput: 65536, contextWindowTokens: 1048576, abilities: { reasoning: true, vision: true, functionCall: true } },
|
|
|
+ { id: "google/gemini-2.5-pro-preview", displayName: "Gemini 2.5 Pro Preview", maxOutput: 65536, contextWindowTokens: 1048576, abilities: { reasoning: true, vision: true, functionCall: true } },
|
|
|
+ { id: "google/gemini-2.5-flash", displayName: "Gemini 2.5 Flash", maxOutput: 65535, contextWindowTokens: 1048576, abilities: { reasoning: true, vision: true, functionCall: true } },
|
|
|
+ { id: "google/gemini-2.5-flash-preview", displayName: "Gemini 2.5 Flash Preview", maxOutput: 65535, contextWindowTokens: 1048576, abilities: { reasoning: true, vision: true, functionCall: true } },
|
|
|
+ { id: "google/gemini-2.5-flash-preview:thinking", displayName: "Gemini 2.5 Flash Preview (thinking)", maxOutput: 65535, contextWindowTokens: 1048576, abilities: { reasoning: true, vision: true, functionCall: true } },
|
|
|
+ { id: "openai/o3", displayName: "o3", maxOutput: 100000, contextWindowTokens: 200000, abilities: { reasoning: true, vision: true, functionCall: true }, releasedAt: "2025-04-17" },
|
|
|
+ { id: "openai/o4-mini-high", displayName: "o4-mini (high)", maxOutput: 100000, contextWindowTokens: 200000, abilities: { reasoning: true, vision: true, functionCall: true }, releasedAt: "2025-04-17" },
|
|
|
+ { id: "openai/o4-mini", displayName: "o4-mini", maxOutput: 100000, contextWindowTokens: 200000, abilities: { reasoning: true, vision: true, functionCall: true }, releasedAt: "2025-04-17" },
|
|
|
+ { id: "openai/gpt-4.1", displayName: "GPT-4.1", maxOutput: 32768, contextWindowTokens: 1047576, abilities: { vision: true, functionCall: true }, releasedAt: "2025-04-14" },
|
|
|
+ { id: "openai/gpt-4.1-mini", displayName: "GPT-4.1 mini", maxOutput: 32768, contextWindowTokens: 1047576, abilities: { vision: true, functionCall: true }, releasedAt: "2025-04-14" },
|
|
|
+ { id: "openai/gpt-4.1-nano", displayName: "GPT-4.1 nano", maxOutput: 32768, contextWindowTokens: 1047576, abilities: { vision: true, functionCall: true }, releasedAt: "2025-04-14" },
|
|
|
+ { id: "openai/o3-mini-high", displayName: "o3-mini (high)", maxOutput: 100000, contextWindowTokens: 200000, abilities: { reasoning: true, functionCall: true }, releasedAt: "2025-01-31" },
|
|
|
+ { id: "openai/o3-mini", displayName: "o3-mini", maxOutput: 100000, contextWindowTokens: 200000, abilities: { reasoning: true, functionCall: true }, releasedAt: "2025-01-31" },
|
|
|
+ { id: "openai/o1-mini", displayName: "o1-mini", maxOutput: 65536, contextWindowTokens: 128000, abilities: { reasoning: true }, releasedAt: "2024-09-12" },
|
|
|
+ { id: "openai/o1-preview", displayName: "o1-preview", maxOutput: 32768, contextWindowTokens: 128000, abilities: { reasoning: true }, releasedAt: "2024-09-12" },
|
|
|
+ { id: "openai/gpt-4o-mini", displayName: "GPT-4o mini", maxOutput: 16385, contextWindowTokens: 128000, abilities: { vision: true, functionCall: true } },
|
|
|
+ { id: "openai/gpt-4o", displayName: "GPT-4o", maxOutput: 4096, contextWindowTokens: 128000, abilities: { vision: true, functionCall: true } },
|
|
|
+ { id: "deepseek/deepseek-r1-0528", displayName: "DeepSeek R1 0528", maxOutput: 4096, contextWindowTokens: 163840, abilities: { reasoning: true, functionCall: true }, releasedAt: "2025-05-28" },
|
|
|
+ { id: "deepseek/deepseek-r1-0528:free", displayName: "DeepSeek R1 0528 (Free)", maxOutput: 4096, contextWindowTokens: 163840, abilities: { reasoning: true }, releasedAt: "2025-05-28" },
|
|
|
+ { id: "deepseek/deepseek-r1", displayName: "DeepSeek R1", maxOutput: 4096, contextWindowTokens: 163840, abilities: { reasoning: true }, releasedAt: "2025-01-20" },
|
|
|
+ { id: "deepseek/deepseek-r1:free", displayName: "DeepSeek R1 (Free)", maxOutput: 4096, contextWindowTokens: 163840, abilities: { reasoning: true }, releasedAt: "2025-01-20" },
|
|
|
+ { id: "deepseek/deepseek-chat-v3-0324", displayName: "DeepSeek V3 0324", maxOutput: 4096, contextWindowTokens: 163840 },
|
|
|
+ { id: "deepseek/deepseek-chat-v3-0324:free", displayName: "DeepSeek V3 0324 (Free)", maxOutput: 4096, contextWindowTokens: 163840 },
|
|
|
+ { id: "anthropic/claude-opus-4.5", displayName: "Claude Opus 4.5", maxOutput: 64000, contextWindowTokens: 200000, abilities: { reasoning: true, vision: true, functionCall: true, search: true }, releasedAt: "2025-11-24" },
|
|
|
+ { id: "anthropic/claude-sonnet-4.5", displayName: "Claude Sonnet 4.5", maxOutput: 64000, contextWindowTokens: 200000, abilities: { reasoning: true, vision: true, functionCall: true, search: true }, releasedAt: "2025-09-30" },
|
|
|
+ { id: "anthropic/claude-3-haiku", displayName: "Claude 3 Haiku", maxOutput: 4096, contextWindowTokens: 200000, abilities: { vision: true, functionCall: true }, releasedAt: "2024-03-07" },
|
|
|
+ { id: "anthropic/claude-3.5-haiku", displayName: "Claude 3.5 Haiku", maxOutput: 8192, contextWindowTokens: 200000, abilities: { functionCall: true }, releasedAt: "2024-11-05" },
|
|
|
+ { id: "anthropic/claude-3.5-sonnet", displayName: "Claude 3.5 Sonnet", maxOutput: 8192, contextWindowTokens: 200000, abilities: { vision: true, functionCall: true }, releasedAt: "2024-06-20" },
|
|
|
+ { id: "anthropic/claude-3.7-sonnet", displayName: "Claude 3.7 Sonnet", maxOutput: 8192, contextWindowTokens: 200000, abilities: { reasoning: true, vision: true, functionCall: true }, releasedAt: "2025-02-24" },
|
|
|
+ { id: "anthropic/claude-sonnet-4", displayName: "Claude Sonnet 4", maxOutput: 64000, contextWindowTokens: 200000, abilities: { reasoning: true, vision: true, functionCall: true }, releasedAt: "2025-05-23" },
|
|
|
+ { id: "anthropic/claude-opus-4", displayName: "Claude Opus 4", maxOutput: 32000, contextWindowTokens: 200000, abilities: { reasoning: true, vision: true, functionCall: true }, releasedAt: "2025-05-23" },
|
|
|
+ { id: "anthropic/claude-3-opus", displayName: "Claude 3 Opus", maxOutput: 4096, contextWindowTokens: 200000, abilities: { vision: true, functionCall: true }, releasedAt: "2024-02-29" },
|
|
|
+ { id: "google/gemini-flash-1.5", displayName: "Gemini 1.5 Flash", maxOutput: 8192, contextWindowTokens: 1008192, abilities: { vision: true, functionCall: true } },
|
|
|
+ { id: "google/gemini-2.0-flash-001", displayName: "Gemini 2.0 Flash", maxOutput: 8192, contextWindowTokens: 1056768, abilities: { vision: true, functionCall: true }, releasedAt: "2025-02-05" },
|
|
|
+ { id: "google/gemini-pro-1.5", displayName: "Gemini 1.5 Pro", maxOutput: 8192, contextWindowTokens: 2008192, abilities: { vision: true, functionCall: true } },
|
|
|
+ { id: "meta-llama/llama-3.2-11b-vision-instruct", displayName: "Llama 3.2 11B Vision", maxOutput: 4096, contextWindowTokens: 131072, abilities: { vision: true } },
|
|
|
+ { id: "meta-llama/llama-3.3-70b-instruct", displayName: "Llama 3.3 70B Instruct", maxOutput: 4096, contextWindowTokens: 131072, abilities: { functionCall: true } },
|
|
|
+ { id: "meta-llama/llama-3.3-70b-instruct:free", displayName: "Llama 3.3 70B Instruct (Free)", maxOutput: 4096, contextWindowTokens: 65536, abilities: { functionCall: true } },
|
|
|
+ { id: "qwen/qwen-2-7b-instruct:free", displayName: "Qwen2 7B (Free)", maxOutput: 4096, contextWindowTokens: 32768 },
|
|
|
+ { id: "meta-llama/llama-3.1-8b-instruct:free", displayName: "Llama 3.1 8B (Free)", maxOutput: 4096, contextWindowTokens: 131072 },
|
|
|
+ { id: "google/gemma-2-9b-it:free", displayName: "Gemma 2 9B (Free)", maxOutput: 4096, contextWindowTokens: 8192 },
|
|
|
+ ],
|
|
|
+};
|