mirror of
https://github.com/open-webui/open-webui
synced 2025-01-01 08:42:14 +00:00
refac
This commit is contained in:
parent
e9cb6e4714
commit
b1b2a6d78c
@ -277,7 +277,7 @@ export const verifyOpenAIConnection = async (
|
|||||||
export const chatCompletion = async (
|
export const chatCompletion = async (
|
||||||
token: string = '',
|
token: string = '',
|
||||||
body: object,
|
body: object,
|
||||||
url: string = OPENAI_API_BASE_URL
|
url: string = `${WEBUI_BASE_URL}/api`
|
||||||
): Promise<[Response | null, AbortController]> => {
|
): Promise<[Response | null, AbortController]> => {
|
||||||
const controller = new AbortController();
|
const controller = new AbortController();
|
||||||
let error = null;
|
let error = null;
|
||||||
|
Loading…
Reference in New Issue
Block a user