@@ -31,6 +31,7 @@ export const chatgptWebModelKeys = [
31
31
export const bingWebModelKeys = [ 'bingFree4' , 'bingFreeSydney' ]
32
32
export const bardWebModelKeys = [ 'bardWebFree' ]
33
33
export const claudeWebModelKeys = [ 'claude2WebFree' ]
34
+ export const moonshotWebModelKeys = [ 'moonshotWebFree' ]
34
35
export const gptApiModelKeys = [ 'gptApiInstruct' , 'gptApiDavinci' ]
35
36
export const chatgptApiModelKeys = [
36
37
'chatgptApi35' ,
@@ -105,6 +106,8 @@ export const Models = {
105
106
bingFree4 : { value : '' , desc : 'Bing (Web, GPT-4)' } ,
106
107
bingFreeSydney : { value : '' , desc : 'Bing (Web, GPT-4, Sydney)' } ,
107
108
109
+ moonshotWebFree : { value : '' , desc : 'Kimi.Moonshot (Web, 100k)' } ,
110
+
108
111
bardWebFree : { value : '' , desc : 'Gemini (Web)' } ,
109
112
110
113
chatglmTurbo : { value : 'chatglm_turbo' , desc : 'ChatGLM (ChatGLM-Turbo)' } ,
@@ -230,6 +233,7 @@ export const defaultConfig = {
230
233
'chatgptApi4_8k' ,
231
234
'claude2WebFree' ,
232
235
'bingFree4' ,
236
+ 'moonshotWebFree' ,
233
237
'chatglmTurbo' ,
234
238
'customModel' ,
235
239
'azureOpenAi' ,
@@ -255,6 +259,8 @@ export const defaultConfig = {
255
259
chatgptTabId : 0 ,
256
260
chatgptArkoseReqUrl : '' ,
257
261
chatgptArkoseReqForm : '' ,
262
+ kimiMoonShotRefreshToken : '' ,
263
+ kimiMoonShotAccessToken : '' ,
258
264
259
265
// unchangeable
260
266
@@ -339,6 +345,11 @@ export function isUsingAzureOpenAi(configOrSession) {
339
345
export function isUsingClaude2Api ( configOrSession ) {
340
346
return claudeApiModelKeys . includes ( configOrSession . modelName )
341
347
}
348
+
349
+ export function isUsingMoonshotWeb ( configOrSession ) {
350
+ return moonshotWebModelKeys . includes ( configOrSession . modelName )
351
+ }
352
+
342
353
export function isUsingGithubThirdPartyApi ( configOrSession ) {
343
354
return githubThirdPartyApiModelKeys . includes ( configOrSession . modelName )
344
355
}
0 commit comments