From b1b2a6d78c0e14fcdc74994437c4be7d6396e855 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Fri, 20 Dec 2024 18:31:20 -0800 Subject: [PATCH] refac --- src/lib/apis/openai/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/apis/openai/index.ts b/src/lib/apis/openai/index.ts index 7dd510511..a67db582b 100644 --- a/src/lib/apis/openai/index.ts +++ b/src/lib/apis/openai/index.ts @@ -277,7 +277,7 @@ export const verifyOpenAIConnection = async ( export const chatCompletion = async ( token: string = '', body: object, - url: string = OPENAI_API_BASE_URL + url: string = `${WEBUI_BASE_URL}/api` ): Promise<[Response | null, AbortController]> => { const controller = new AbortController(); let error = null;