mirror of
https://github.com/open-webui/pipelines
synced 2025-05-11 16:10:45 +00:00
Fix: get LiteLLM models on startup
This commit is contained in:
parent
ef88564520
commit
316c547163
@ -53,6 +53,8 @@ class Pipeline:
|
||||
async def on_startup(self):
|
||||
# This function is called when the server is started.
|
||||
print(f"on_startup:{__name__}")
|
||||
# Get models on startup
|
||||
self.pipelines = self.get_litellm_models()
|
||||
pass
|
||||
|
||||
async def on_shutdown(self):
|
||||
|
Loading…
Reference in New Issue
Block a user