Archer fd9b6291af
Revert "sub plan page (#885)" (#886)
This reverts commit 443ad37b6a2631ed51367a5c2231796987dea7bc.
2024-02-23 17:48:15 +08:00

61 lines
1.1 KiB
TypeScript

export type LLMModelItemType = {
model: string;
name: string;
maxContext: number;
maxResponse: number;
quoteMaxToken: number;
maxTemperature: number;
inputPrice: number;
outputPrice: number;
censor?: boolean;
vision?: boolean;
datasetProcess?: boolean;
functionCall: boolean;
toolChoice: boolean;
customCQPrompt: string;
customExtractPrompt: string;
defaultSystemChatPrompt?: string;
defaultConfig?: Record<string, any>;
};
export type VectorModelItemType = {
model: string;
name: string;
defaultToken: number;
inputPrice: number;
outputPrice: number;
maxToken: number;
weight: number;
hidden?: boolean;
defaultConfig?: Record<string, any>;
};
export type ReRankModelItemType = {
model: string;
name: string;
inputPrice: number;
outputPrice?: number;
requestUrl?: string;
requestAuth?: string;
};
export type AudioSpeechModelType = {
model: string;
name: string;
inputPrice: number;
outputPrice?: number;
voices: { label: string; value: string; bufferId: string }[];
};
export type WhisperModelType = {
model: string;
name: string;
inputPrice: number;
outputPrice?: number;
};