Merge pull request #3005 from BerriAI/litellm_load_models_proxy_startup

[Fix] Load proxy models when proxy starts up
This commit is contained in:
Ishaan Jaff 2024-04-13 14:35:06 -07:00 committed by GitHub
commit f727c149ec
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3186,6 +3186,11 @@ async def startup_event():
seconds=30,
args=[prisma_client, proxy_logging_obj],
)
# this will load all existing models on proxy startup
await proxy_config.add_deployment(
prisma_client=prisma_client, proxy_logging_obj=proxy_logging_obj
)
scheduler.start()