@@ -31,6 +31,7 @@ export const chatgptWebModelKeys = [
3131export const bingWebModelKeys = [ 'bingFree4' , 'bingFreeSydney' ]
3232export const bardWebModelKeys = [ 'bardWebFree' ]
3333export const claudeWebModelKeys = [ 'claude2WebFree' ]
34+ export const moonshotWebModelKeys = [ 'moonshotWebFree' ]
3435export const gptApiModelKeys = [ 'gptApiInstruct' , 'gptApiDavinci' ]
3536export const chatgptApiModelKeys = [
3637 'chatgptApi35' ,
@@ -105,6 +106,8 @@ export const Models = {
105106 bingFree4 : { value : '' , desc : 'Bing (Web, GPT-4)' } ,
106107 bingFreeSydney : { value : '' , desc : 'Bing (Web, GPT-4, Sydney)' } ,
107108
109+ moonshotWebFree : { value : '' , desc : 'Kimi.Moonshot (Web, 100k)' } ,
110+
108111 bardWebFree : { value : '' , desc : 'Gemini (Web)' } ,
109112
110113 chatglmTurbo : { value : 'chatglm_turbo' , desc : 'ChatGLM (ChatGLM-Turbo)' } ,
@@ -230,6 +233,7 @@ export const defaultConfig = {
230233 'chatgptApi4_8k' ,
231234 'claude2WebFree' ,
232235 'bingFree4' ,
236+ 'moonshotWebFree' ,
233237 'chatglmTurbo' ,
234238 'customModel' ,
235239 'azureOpenAi' ,
@@ -255,6 +259,8 @@ export const defaultConfig = {
255259 chatgptTabId : 0 ,
256260 chatgptArkoseReqUrl : '' ,
257261 chatgptArkoseReqForm : '' ,
262+ kimiMoonShotRefreshToken : '' ,
263+ kimiMoonShotAccessToken : '' ,
258264
259265 // unchangeable
260266
@@ -339,6 +345,11 @@ export function isUsingAzureOpenAi(configOrSession) {
339345export function isUsingClaude2Api ( configOrSession ) {
340346 return claudeApiModelKeys . includes ( configOrSession . modelName )
341347}
348+
349+ export function isUsingMoonshotWeb ( configOrSession ) {
350+ return moonshotWebModelKeys . includes ( configOrSession . modelName )
351+ }
352+
342353export function isUsingGithubThirdPartyApi ( configOrSession ) {
343354 return githubThirdPartyApiModelKeys . includes ( configOrSession . modelName )
344355}
0 commit comments