mirror of
https://github.com/open-webui/open-webui
synced 2025-03-04 03:18:03 +00:00
fix
This commit is contained in:
parent
8cc834901f
commit
e9cb6e4714
@ -1,4 +1,4 @@
|
|||||||
import { OPENAI_API_BASE_URL } from '$lib/constants';
|
import { OPENAI_API_BASE_URL, WEBUI_API_BASE_URL, WEBUI_BASE_URL } from '$lib/constants';
|
||||||
|
|
||||||
export const getOpenAIConfig = async (token: string = '') => {
|
export const getOpenAIConfig = async (token: string = '') => {
|
||||||
let error = null;
|
let error = null;
|
||||||
@ -308,7 +308,7 @@ export const chatCompletion = async (
|
|||||||
export const generateOpenAIChatCompletion = async (
|
export const generateOpenAIChatCompletion = async (
|
||||||
token: string = '',
|
token: string = '',
|
||||||
body: object,
|
body: object,
|
||||||
url: string = OPENAI_API_BASE_URL
|
url: string = `${WEBUI_BASE_URL}/api`
|
||||||
) => {
|
) => {
|
||||||
let error = null;
|
let error = null;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user