mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-27 00:17:31 +00:00
116 lines
2.2 KiB
TypeScript
116 lines
2.2 KiB
TypeScript
import type {
|
|
LLMModelItemType,
|
|
ChatModelItemType,
|
|
FunctionModelItemType,
|
|
VectorModelItemType,
|
|
AudioSpeechModelType
|
|
} from './model.d';
|
|
|
|
export const defaultChatModels: ChatModelItemType[] = [
|
|
{
|
|
model: 'gpt-3.5-turbo-1106',
|
|
name: 'GPT35-1106',
|
|
price: 0,
|
|
maxContext: 16000,
|
|
maxResponse: 4000,
|
|
quoteMaxToken: 2000,
|
|
maxTemperature: 1.2,
|
|
censor: false,
|
|
defaultSystemChatPrompt: ''
|
|
},
|
|
{
|
|
model: 'gpt-3.5-turbo-16k',
|
|
name: 'GPT35-16k',
|
|
maxContext: 16000,
|
|
maxResponse: 16000,
|
|
price: 0,
|
|
quoteMaxToken: 8000,
|
|
maxTemperature: 1.2,
|
|
censor: false,
|
|
defaultSystemChatPrompt: ''
|
|
},
|
|
{
|
|
model: 'gpt-4',
|
|
name: 'GPT4-8k',
|
|
maxContext: 8000,
|
|
maxResponse: 8000,
|
|
price: 0,
|
|
quoteMaxToken: 4000,
|
|
maxTemperature: 1.2,
|
|
censor: false,
|
|
defaultSystemChatPrompt: ''
|
|
}
|
|
];
|
|
export const defaultQAModels: LLMModelItemType[] = [
|
|
{
|
|
model: 'gpt-3.5-turbo-16k',
|
|
name: 'GPT35-16k',
|
|
maxContext: 16000,
|
|
maxResponse: 16000,
|
|
price: 0
|
|
}
|
|
];
|
|
export const defaultCQModels: FunctionModelItemType[] = [
|
|
{
|
|
model: 'gpt-3.5-turbo-1106',
|
|
name: 'GPT35-1106',
|
|
maxContext: 16000,
|
|
maxResponse: 4000,
|
|
price: 0,
|
|
functionCall: true,
|
|
functionPrompt: ''
|
|
},
|
|
{
|
|
model: 'gpt-4',
|
|
name: 'GPT4-8k',
|
|
maxContext: 8000,
|
|
maxResponse: 8000,
|
|
price: 0,
|
|
functionCall: true,
|
|
functionPrompt: ''
|
|
}
|
|
];
|
|
export const defaultExtractModels: FunctionModelItemType[] = [
|
|
{
|
|
model: 'gpt-3.5-turbo-1106',
|
|
name: 'GPT35-1106',
|
|
maxContext: 16000,
|
|
maxResponse: 4000,
|
|
price: 0,
|
|
functionCall: true,
|
|
functionPrompt: ''
|
|
}
|
|
];
|
|
export const defaultQGModels: LLMModelItemType[] = [
|
|
{
|
|
model: 'gpt-3.5-turbo-1106',
|
|
name: 'GPT35-1106',
|
|
maxContext: 1600,
|
|
maxResponse: 4000,
|
|
price: 0
|
|
}
|
|
];
|
|
|
|
export const defaultVectorModels: VectorModelItemType[] = [
|
|
{
|
|
model: 'text-embedding-ada-002',
|
|
name: 'Embedding-2',
|
|
price: 0,
|
|
defaultToken: 500,
|
|
maxToken: 3000
|
|
}
|
|
];
|
|
|
|
export const defaultAudioSpeechModels: AudioSpeechModelType[] = [
|
|
{
|
|
model: 'tts-1',
|
|
name: 'OpenAI TTS1',
|
|
price: 0
|
|
},
|
|
{
|
|
model: 'tts-1-hd',
|
|
name: 'OpenAI TTS1',
|
|
price: 0
|
|
}
|
|
];
|