@@ -94,7 +94,33 @@ export const poeWebModelKeys = [
94
94
'poeAiWeb_Llama_2_13b' ,
95
95
'poeAiWeb_Llama_2_70b' ,
96
96
]
97
- export const moonshotApiModelKeys = [ 'moonshot_v1_8k' , 'moonshot_v1_32k' , 'moonshot_v1_128k' ]
97
+ export const moonshotApiModelKeys = [
98
+ 'moonshot_k2' ,
99
+ 'moonshot_kimi_latest' ,
100
+ 'moonshot_v1_8k' ,
101
+ 'moonshot_v1_32k' ,
102
+ 'moonshot_v1_128k' ,
103
+ ]
104
+ export const openRouterApiModelKeys = [
105
+ 'openRouter_anthropic_claude_sonnet4' ,
106
+ 'openRouter_anthropic_claude_3_7_sonnet' ,
107
+ 'openRouter_google_gemini_2_5_pro' ,
108
+ 'openRouter_google_gemini_2_5_flash' ,
109
+ 'openRouter_openai_o3' ,
110
+ 'openRouter_openai_gpt_4_1_mini' ,
111
+ 'openRouter_deepseek_deepseek_chat_v3_0324_free' ,
112
+ ]
113
+ export const aimlApiModelKeys = [
114
+ 'aiml_anthropic_claude_opus_4' ,
115
+ 'aiml_anthropic_claude_sonnet_4' ,
116
+ 'aiml_claude_3_7_sonnet_20250219' ,
117
+ 'aiml_google_gemini_2_5_pro_preview_05_06' ,
118
+ 'aiml_google_gemini_2_5_flash_preview' ,
119
+ 'aiml_openai_o3_2025_04_16' ,
120
+ 'aiml_openai_gpt_4_1_2025_04_14' ,
121
+ 'aiml_deepseek_deepseek_chat' ,
122
+ 'aiml_moonshot_kimi_k2_preview' ,
123
+ ]
98
124
99
125
export const AlwaysCustomGroups = [
100
126
'ollamaApiModelKeys' ,
@@ -157,6 +183,14 @@ export const ModelGroups = {
157
183
value : githubThirdPartyApiModelKeys ,
158
184
desc : 'Github Third Party Waylaidwanderer (API)' ,
159
185
} ,
186
+ openRouterApiModelKeys : {
187
+ value : openRouterApiModelKeys ,
188
+ desc : 'OpenRouter (API)' ,
189
+ } ,
190
+ aimlModelKeys : {
191
+ value : aimlApiModelKeys ,
192
+ desc : 'AI/ML (API)' ,
193
+ } ,
160
194
customApiModelKeys : {
161
195
value : customApiModelKeys ,
162
196
desc : 'Custom Model' ,
@@ -294,6 +328,72 @@ export const Models = {
294
328
value : 'moonshot-v1-128k' ,
295
329
desc : 'Kimi.Moonshot (128k)' ,
296
330
} ,
331
+
332
+ openRouter_anthropic_claude_sonnet4 : {
333
+ value : 'anthropic/claude-sonnet-4' ,
334
+ desc : 'OpenRouter (Claude Sonnet 4)' ,
335
+ } ,
336
+ openRouter_anthropic_claude_3_7_sonnet : {
337
+ value : 'anthropic/claude-3.7-sonnet' ,
338
+ desc : 'OpenRouter (Claude 3.7 Sonnet)' ,
339
+ } ,
340
+ openRouter_google_gemini_2_5_pro : {
341
+ value : 'google/gemini-2.5-pro' ,
342
+ desc : 'OpenRouter (Gemini 2.5 Pro)' ,
343
+ } ,
344
+ openRouter_google_gemini_2_5_flash : {
345
+ value : 'google/gemini-2.5-flash' ,
346
+ desc : 'OpenRouter (Gemini 2.5 Flash)' ,
347
+ } ,
348
+ openRouter_openai_o3 : {
349
+ value : 'openai/o3' ,
350
+ desc : 'OpenRouter (GPT-o3)' ,
351
+ } ,
352
+ openRouter_openai_gpt_4_1_mini : {
353
+ value : 'openai/gpt-4.1-mini' ,
354
+ desc : 'OpenRouter (GPT-4.1 Mini)' ,
355
+ } ,
356
+ openRouter_deepseek_deepseek_chat_v3_0324_free : {
357
+ value : 'deepseek/deepseek-chat-v3-0324:free' ,
358
+ desc : 'OpenRouter (DeepSeek Chat v3 Free)' ,
359
+ } ,
360
+
361
+ aiml_anthropic_claude_opus_4 : {
362
+ value : 'anthropic/claude-opus-4' ,
363
+ desc : 'AIML (Claude Opus 4)' ,
364
+ } ,
365
+ aiml_anthropic_claude_sonnet_4 : {
366
+ value : 'anthropic/claude-sonnet-4' ,
367
+ desc : 'AIML (Claude Sonnet 4)' ,
368
+ } ,
369
+ aiml_claude_3_7_sonnet_20250219 : {
370
+ value : 'claude-3-7-sonnet-20250219' ,
371
+ desc : 'AIML (Claude 3.7 Sonnet)' ,
372
+ } ,
373
+ aiml_google_gemini_2_5_pro_preview_05_06 : {
374
+ value : 'google/gemini-2.5-pro-preview-05-06' ,
375
+ desc : 'AIML (Gemini 2.5 Pro)' ,
376
+ } ,
377
+ aiml_google_gemini_2_5_flash_preview : {
378
+ value : 'google/gemini-2.5-flash-preview' ,
379
+ desc : 'AIML (Gemini 2.5 Flash)' ,
380
+ } ,
381
+ aiml_openai_o3_2025_04_16 : {
382
+ value : 'openai/o3-2025-04-16' ,
383
+ desc : 'AIML (GPT-o3)' ,
384
+ } ,
385
+ aiml_openai_gpt_4_1_2025_04_14 : {
386
+ value : 'openai/gpt-4.1-2025-04-14' ,
387
+ desc : 'AIML (GPT-4.1)' ,
388
+ } ,
389
+ aiml_deepseek_deepseek_chat : {
390
+ value : 'deepseek/deepseek-chat' ,
391
+ desc : 'AIML (DeepSeek Chat)' ,
392
+ } ,
393
+ aiml_moonshot_kimi_k2_preview : {
394
+ value : 'moonshot/kimi-k2-preview' ,
395
+ desc : 'AIML (Kimi K2)' ,
396
+ } ,
297
397
}
298
398
299
399
for ( const modelName in Models ) {
@@ -359,6 +459,9 @@ export const defaultConfig = {
359
459
ollamaApiKey : '' ,
360
460
ollamaKeepAliveTime : '5m' ,
361
461
462
+ openRouterApiKey : '' ,
463
+ aimlApiKey : '' ,
464
+
362
465
// advanced
363
466
364
467
maxResponseTokenLength : 2000 ,
@@ -536,6 +639,14 @@ export function isUsingMoonshotApiModel(configOrSession) {
536
639
return isInApiModeGroup ( moonshotApiModelKeys , configOrSession )
537
640
}
538
641
642
+ export function isUsingOpenRouterApiModel ( configOrSession ) {
643
+ return isInApiModeGroup ( openRouterApiModelKeys , configOrSession )
644
+ }
645
+
646
+ export function isUsingAimlApiModel ( configOrSession ) {
647
+ return isInApiModeGroup ( aimlApiModelKeys , configOrSession )
648
+ }
649
+
539
650
export function isUsingChatGLMApiModel ( configOrSession ) {
540
651
return isInApiModeGroup ( chatglmApiModelKeys , configOrSession )
541
652
}
0 commit comments