|
1 | | -export type LLMProvider = 'openai' | 'anthropic' | 'deepseek' | 'minimax' | 'z.ai' | 'kimi'; |
| 1 | +export type LLMProvider = |
| 2 | + | 'openai' |
| 3 | + | 'anthropic' |
| 4 | + | 'deepseek' |
| 5 | + | 'minimax' |
| 6 | + | 'z.ai' |
| 7 | + | 'kimi' |
| 8 | + | 'openrouter'; |
2 | 9 |
|
3 | 10 | export type ModelCategory = 'flagship' | 'general' | 'coding' | 'lightweight' | 'thinking'; |
4 | 11 |
|
@@ -116,6 +123,23 @@ export const LLM_PROVIDER_CONFIGS: Record<LLMProvider, ProviderModelConfig> = { |
116 | 123 | { id: 'kimi-k2-turbo', name: 'Kimi K2 Turbo', category: 'general' }, |
117 | 124 | ], |
118 | 125 | }, |
| 126 | + |
| 127 | + openrouter: { |
| 128 | + displayName: 'OpenRouter', |
| 129 | + baseUrl: 'https://openrouter.ai/api/v1', |
| 130 | + defaultModel: 'minimax/MiniMax-M2.5', |
| 131 | + models: [ |
| 132 | + { id: 'minimax/MiniMax-M2.5', name: 'MiniMax M2.5', category: 'flagship' }, |
| 133 | + { id: 'minimax/MiniMax-M2.5-highspeed', name: 'MiniMax M2.5 Highspeed', category: 'general' }, |
| 134 | + { id: 'minimax/MiniMax-M2.7', name: 'MiniMax M2.7', category: 'flagship' }, |
| 135 | + { id: 'minimax/MiniMax-M2.7-highspeed', name: 'MiniMax M2.7 Highspeed', category: 'general' }, |
| 136 | + { id: 'minimax/MiniMax-M2.1', name: 'MiniMax M2.1', category: 'coding' }, |
| 137 | + { id: 'anthropic/claude-sonnet-4-6', name: 'Claude Sonnet 4.6', category: 'general' }, |
| 138 | + { id: 'openai/gpt-5.4', name: 'GPT-5.4', category: 'flagship' }, |
| 139 | + { id: 'deepseek/deepseek-chat', name: 'DeepSeek Chat', category: 'general' }, |
| 140 | + { id: 'google/gemini-2.5-pro', name: 'Gemini 2.5 Pro', category: 'flagship' }, |
| 141 | + ], |
| 142 | + }, |
119 | 143 | }; |
120 | 144 |
|
121 | 145 | export const PROVIDER_MODELS: Record<LLMProvider, string[]> = Object.fromEntries( |
|
0 commit comments