diff --git a/src/lib/apis/configs/index.ts b/src/lib/apis/configs/index.ts index 9762c41f..76256f4d 100644 --- a/src/lib/apis/configs/index.ts +++ b/src/lib/apis/configs/index.ts @@ -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}` diff --git a/src/lib/components/chat/ModelSelector.svelte b/src/lib/components/chat/ModelSelector.svelte index 9e7ff4dd..47afbbe1 100644 --- a/src/lib/components/chat/ModelSelector.svelte +++ b/src/lib/components/chat/ModelSelector.svelte @@ -1,12 +1,13 @@