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?: {
|
options?: {
|
||||||
filterBot?: boolean;
|
filterBot?: boolean;
|
||||||
modelConfig?: ModelConfig;
|
modelConfig?: ModelConfig;
|
||||||
|
model?: ModelType;
|
||||||
onMessage: (message: string, done: boolean) => void;
|
onMessage: (message: string, done: boolean) => void;
|
||||||
onError: (error: Error, statusCode?: number) => void;
|
onError: (error: Error, statusCode?: number) => void;
|
||||||
onController?: (controller: AbortController) => void;
|
onController?: (controller: AbortController) => void;
|
||||||
@ -157,6 +158,7 @@ export async function requestChatStream(
|
|||||||
const req = makeRequestParam(messages, {
|
const req = makeRequestParam(messages, {
|
||||||
stream: true,
|
stream: true,
|
||||||
filterBot: options?.filterBot,
|
filterBot: options?.filterBot,
|
||||||
|
model: options?.model,
|
||||||
});
|
});
|
||||||
|
|
||||||
console.log("[Request] ", req);
|
console.log("[Request] ", req);
|
||||||
|
@ -583,6 +583,7 @@ export const useChatStore = create<ChatStore>()(
|
|||||||
}),
|
}),
|
||||||
{
|
{
|
||||||
filterBot: false,
|
filterBot: false,
|
||||||
|
model: "gpt-3.5-turbo",
|
||||||
onMessage(message, done) {
|
onMessage(message, done) {
|
||||||
session.memoryPrompt = message;
|
session.memoryPrompt = message;
|
||||||
if (done) {
|
if (done) {
|
||||||
|
Loading…
Reference in New Issue
Block a user