This commit is contained in:
Archer
2023-12-31 14:12:51 +08:00
committed by GitHub
parent ccca0468da
commit 9ccfda47b7
270 changed files with 8182 additions and 1295 deletions

View File

@@ -9,20 +9,22 @@ import type {
LLMModelItemType,
ReRankModelItemType,
VectorModelItemType,
AudioSpeechModelType
AudioSpeechModelType,
WhisperModelType
} from '@fastgpt/global/core/ai/model.d';
export let feConfigs: FastGPTFeConfigsType = {};
export let priceMd = '';
export let systemVersion = '0.0.0';
export let chatModelList: ChatModelItemType[] = [];
export let vectorModelList: VectorModelItemType[] = [];
export let qaModelList: LLMModelItemType[] = [];
export let cqModelList: FunctionModelItemType[] = [];
export let qgModelList: LLMModelItemType[] = [];
export let extractModelList: FunctionModelItemType[] = [];
export let audioSpeechModels: AudioSpeechModelType[] = [];
export let audioSpeechModelList: AudioSpeechModelType[] = [];
export let reRankModelList: ReRankModelItemType[] = [];
export let whisperModel: WhisperModelType;
export let simpleModeTemplates: AppSimpleEditConfigTemplateType[] = [];
@@ -39,11 +41,13 @@ export const clientInitData = async (): Promise<InitDateResponse> => {
qaModelList = res.qaModels ?? qaModelList;
cqModelList = res.cqModels ?? cqModelList;
extractModelList = res.extractModels ?? extractModelList;
qgModelList = res.qgModes ?? qgModelList;
audioSpeechModels = res.audioSpeechModels ?? audioSpeechModels;
audioSpeechModelList = res.audioSpeechModels ?? audioSpeechModelList;
reRankModelList = res.reRankModels ?? reRankModelList;
priceMd = res.priceMd;
whisperModel = res.whisperModel;
systemVersion = res.systemVersion;
simpleModeTemplates = res.simpleModeTemplates;