mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-23 05:12:39 +00:00

* mongo init * perf: mongo connect * perf: tts perf: whisper and tts peref: tts whisper permission log reabase (#488) * perf: modal * i18n * perf: schema lean * feat: vision model format * perf: tts loading * perf: static data * perf: tts * feat: image * perf: image * perf: upload image and title * perf: image size * doc * perf: color * doc * speaking can not select file * doc
43 lines
838 B
TypeScript
43 lines
838 B
TypeScript
export type LLMModelItemType = {
|
|
model: string;
|
|
name: string;
|
|
maxContext: number;
|
|
maxResponse: number;
|
|
price: number;
|
|
};
|
|
export type ChatModelItemType = LLMModelItemType & {
|
|
quoteMaxToken: number;
|
|
maxTemperature: number;
|
|
censor?: boolean;
|
|
vision?: boolean;
|
|
defaultSystemChatPrompt?: string;
|
|
};
|
|
|
|
export type FunctionModelItemType = LLMModelItemType & {
|
|
functionCall: boolean;
|
|
functionPrompt: string;
|
|
};
|
|
|
|
export type VectorModelItemType = {
|
|
model: string;
|
|
name: string;
|
|
defaultToken: number;
|
|
price: number;
|
|
maxToken: number;
|
|
};
|
|
|
|
export type AudioSpeechModelType = {
|
|
model: string;
|
|
name: string;
|
|
price: number;
|
|
baseUrl?: string;
|
|
key?: string;
|
|
voices: { label: string; value: string; bufferId: string }[];
|
|
};
|
|
|
|
export type WhisperModelType = {
|
|
model: string;
|
|
name: string;
|
|
price: number;
|
|
};
|