mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-23 21:13:50 +00:00
chat default model
This commit is contained in:
@@ -21,7 +21,7 @@ import { AppModuleItemType } from '@/types/app';
|
||||
|
||||
export type ChatProps = {
|
||||
res: NextApiResponse;
|
||||
model: `${OpenAiChatEnum}`;
|
||||
model: string;
|
||||
temperature?: number;
|
||||
maxToken?: number;
|
||||
history?: ChatItemType[];
|
||||
@@ -44,7 +44,7 @@ export type ChatResponse = {
|
||||
export const dispatchChatCompletion = async (props: Record<string, any>): Promise<ChatResponse> => {
|
||||
let {
|
||||
res,
|
||||
model,
|
||||
model = global.chatModels[0]?.model,
|
||||
temperature = 0,
|
||||
maxToken = 4000,
|
||||
stream = false,
|
||||
|
Reference in New Issue
Block a user