mirror of
https://github.com/open-webui/open-webui
synced 2024-11-21 23:57:51 +00:00
refac
This commit is contained in:
parent
0c43c1edf6
commit
9d9a60afec
@ -3,7 +3,7 @@ import { WEBUI_API_BASE_URL } from '$lib/constants';
|
|||||||
export const getModels = async (token: string = '') => {
|
export const getModels = async (token: string = '') => {
|
||||||
let error = null;
|
let error = null;
|
||||||
|
|
||||||
const res = await fetch(`${WEBUI_API_BASE_URL}/models`, {
|
const res = await fetch(`${WEBUI_API_BASE_URL}/models/`, {
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
headers: {
|
headers: {
|
||||||
Accept: 'application/json',
|
Accept: 'application/json',
|
||||||
|
Loading…
Reference in New Issue
Block a user