fix: openai connection config

This commit is contained in:
Timothy Jaeryang Baek 2024-11-21 20:49:40 -08:00
parent e18a43aec8
commit 4b83a83576
2 changed files with 3 additions and 1 deletions

View File

@ -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)

View File

@ -186,7 +186,7 @@
<div class=" my-2 mb-5" id="model-list">
{#if models.length > 0}
{#each filteredModels as model (model.id)}
{#each filteredModels as model, modelIdx (`${model.id}-${modelIdx}`)}
<div
class=" flex space-x-4 cursor-pointer w-full px-3 py-2 dark:hover:bg-white/5 hover:bg-black/5 rounded-lg transition"
id="model-item-{model.id}"