|
@@ -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);
|