mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-23 05:12:39 +00:00
50 lines
955 B
TypeScript
50 lines
955 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 & {
|
|
toolChoice: boolean;
|
|
functionPrompt: string;
|
|
};
|
|
|
|
export type VectorModelItemType = {
|
|
model: string;
|
|
name: string;
|
|
defaultToken: number;
|
|
price: number;
|
|
maxToken: number;
|
|
weight: number;
|
|
};
|
|
|
|
export type ReRankModelItemType = {
|
|
model: string;
|
|
name: string;
|
|
price: number;
|
|
requestUrl?: string;
|
|
requestAuth?: string;
|
|
};
|
|
|
|
export type AudioSpeechModelType = {
|
|
model: string;
|
|
name: string;
|
|
price: number;
|
|
voices: { label: string; value: string; bufferId: string }[];
|
|
};
|
|
|
|
export type WhisperModelType = {
|
|
model: string;
|
|
name: string;
|
|
price: number;
|
|
};
|