From 4b83a835769242e58fa6be77948dd4c8155b92ad Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Thu, 21 Nov 2024 20:49:40 -0800 Subject: [PATCH] fix: openai connection config --- backend/open_webui/apps/openai/main.py | 2 ++ src/lib/components/admin/Settings/Models.svelte | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/open_webui/apps/openai/main.py b/backend/open_webui/apps/openai/main.py index 42f4388f5..ee3443ac9 100644 --- a/backend/open_webui/apps/openai/main.py +++ b/backend/open_webui/apps/openai/main.py @@ -302,6 +302,8 @@ async def get_all_models_responses() -> list: } tasks.append(asyncio.ensure_future(asyncio.sleep(0, model_list))) + else: + tasks.append(asyncio.ensure_future(asyncio.sleep(0, None))) responses = await asyncio.gather(*tasks) diff --git a/src/lib/components/admin/Settings/Models.svelte b/src/lib/components/admin/Settings/Models.svelte index c807e87c7..b7084d8ce 100644 --- a/src/lib/components/admin/Settings/Models.svelte +++ b/src/lib/components/admin/Settings/Models.svelte @@ -186,7 +186,7 @@
{#if models.length > 0} - {#each filteredModels as model (model.id)} + {#each filteredModels as model, modelIdx (`${model.id}-${modelIdx}`)}