remove DEFAULT_API_HOST

This commit is contained in:
lloydzhou
2024-09-30 01:19:20 +08:00
parent 5141145e4d
commit a50c282d01
13 changed files with 45 additions and 90 deletions

View File

@@ -23,6 +23,7 @@ import {
import { prettyObject } from "@/app/utils/format";
import { getClientConfig } from "@/app/config/client";
import { getMessageTextContent } from "@/app/utils";
import { fetch } from "@/app/utils/stream";
export interface OpenAIListModelResponse {
object: string;
@@ -165,6 +166,7 @@ export class DoubaoApi implements LLMApi {
controller.signal.onabort = finish;
fetchEventSource(chatPath, {
fetch,
...chatPayload,
async onopen(res) {
clearTimeout(requestTimeoutId);