forked from XiaoMo/ChatGPT-Next-Web
feat: close #928 summarize with gpt3.5
This commit is contained in:
parent
d053bee8d3
commit
209a727fe9
@ -149,6 +149,7 @@ export async function requestChatStream(
|
||||
options?: {
|
||||
filterBot?: boolean;
|
||||
modelConfig?: ModelConfig;
|
||||
model?: ModelType;
|
||||
onMessage: (message: string, done: boolean) => void;
|
||||
onError: (error: Error, statusCode?: number) => void;
|
||||
onController?: (controller: AbortController) => void;
|
||||
@ -157,6 +158,7 @@ export async function requestChatStream(
|
||||
const req = makeRequestParam(messages, {
|
||||
stream: true,
|
||||
filterBot: options?.filterBot,
|
||||
model: options?.model,
|
||||
});
|
||||
|
||||
console.log("[Request] ", req);
|
||||
|
@ -583,6 +583,7 @@ export const useChatStore = create<ChatStore>()(
|
||||
}),
|
||||
{
|
||||
filterBot: false,
|
||||
model: "gpt-3.5-turbo",
|
||||
onMessage(message, done) {
|
||||
session.memoryPrompt = message;
|
||||
if (done) {
|
||||
|
Loading…
Reference in New Issue
Block a user