refac
This commit is contained in:
1 parent
1a52585769
commit
8f9e202a88
1 file changed
+1
-1
@@ -537,7 +537,7 @@ async def lifespan(app: FastAPI):
|
|||||||
asyncio.create_task(periodic_usage_pool_cleanup())
|
asyncio.create_task(periodic_usage_pool_cleanup())
|
||||||
|
|
||||||
if app.state.config.ENABLE_MODEL_LIST_CACHE:
|
if app.state.config.ENABLE_MODEL_LIST_CACHE:
|
||||||
get_all_models(
|
await get_all_models(
|
||||||
Request(
|
Request(
|
||||||
# Creating a mock request object to pass to get_all_models
|
# Creating a mock request object to pass to get_all_models
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user