forked from phoenix/litellm-mirror
feat - load proxy models on proxy startup events
This commit is contained in:
parent
d849810445
commit
28cc9a11c4
1 changed files with 5 additions and 0 deletions
|
@ -3186,6 +3186,11 @@ async def startup_event():
|
||||||
seconds=30,
|
seconds=30,
|
||||||
args=[prisma_client, proxy_logging_obj],
|
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()
|
scheduler.start()
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue