mirror of
https://github.com/open-webui/pipelines
synced 2025-05-11 16:10:45 +00:00
update pipelines on startup
This commit is contained in:
parent
342566765f
commit
ba9d26662f
@ -45,6 +45,8 @@ class Pipeline:
|
||||
"""This function is called when the server is started."""
|
||||
|
||||
print(f"on_startup:{__name__}")
|
||||
genai.configure(api_key=self.valves.GOOGLE_API_KEY)
|
||||
self.update_pipelines()
|
||||
|
||||
async def on_shutdown(self) -> None:
|
||||
"""This function is called when the server is stopped."""
|
||||
|
Loading…
Reference in New Issue
Block a user