forked from open-webui/open-webui
feat: set default models globally
This commit is contained in:
parent
5719bcad1f
commit
dfde45d365
2 changed files with 9 additions and 3 deletions
|
@ -4,7 +4,7 @@ export const setDefaultModels = async (token: string, models: string) => {
|
|||
let error = null;
|
||||
|
||||
const res = await fetch(`${WEBUI_API_BASE_URL}/configs/default/models`, {
|
||||
method: 'GET',
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
Authorization: `Bearer ${token}`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue