mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-21 11:43:56 +00:00

* split tokens into input and output (#3477) * split tokens into input and output * query extension & tool call & question guide * fix * perf: input and output tokens * perf: tool call if else * perf: remove code * fix: extract usage count * fix: qa usage count --------- Co-authored-by: heheer <heheer@sealos.io>
29 lines
931 B
TypeScript
29 lines
931 B
TypeScript
import { FastGPTFeConfigsType, SystemEnvType } from '@fastgpt/global/common/system/types';
|
|
import {
|
|
AudioSpeechModelType,
|
|
ReRankModelItemType,
|
|
STTModelType,
|
|
VectorModelItemType,
|
|
LLMModelItemType
|
|
} from '@fastgpt/global/core/ai/model.d';
|
|
import { SubPlanType } from '@fastgpt/global/support/wallet/sub/type';
|
|
import { WorkerNameEnum, WorkerPool } from './worker/utils';
|
|
import { Worker } from 'worker_threads';
|
|
|
|
declare global {
|
|
var systemInitBufferId: string | undefined;
|
|
var systemVersion: string;
|
|
var feConfigs: FastGPTFeConfigsType;
|
|
var systemEnv: SystemEnvType;
|
|
var subPlans: SubPlanType | undefined;
|
|
|
|
var llmModels: LLMModelItemType[];
|
|
var llmModelPriceType: 'IO' | 'Tokens';
|
|
var vectorModels: VectorModelItemType[];
|
|
var audioSpeechModels: AudioSpeechModelType[];
|
|
var whisperModel: STTModelType;
|
|
var reRankModels: ReRankModelItemType[];
|
|
|
|
var workerPoll: Record<WorkerNameEnum, WorkerPool>;
|
|
}
|