mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-07 08:26:10 +00:00
Merge pull request #3005 from BerriAI/litellm_load_models_proxy_startup
[Fix] Load proxy models when proxy starts up
This commit is contained in:
commit
f727c149ec
1 changed files with 5 additions and 0 deletions
|
|
@ -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()
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue