mirror of
https://github.com/open-webui/pipelines
synced 2025-05-12 08:30:43 +00:00
Merge pull request #193 from attilaszasz/main
update pipelines on startup
This commit is contained in:
commit
ba1af55615
@ -45,6 +45,8 @@ class Pipeline:
|
|||||||
"""This function is called when the server is started."""
|
"""This function is called when the server is started."""
|
||||||
|
|
||||||
print(f"on_startup:{__name__}")
|
print(f"on_startup:{__name__}")
|
||||||
|
genai.configure(api_key=self.valves.GOOGLE_API_KEY)
|
||||||
|
self.update_pipelines()
|
||||||
|
|
||||||
async def on_shutdown(self) -> None:
|
async def on_shutdown(self) -> None:
|
||||||
"""This function is called when the server is stopped."""
|
"""This function is called when the server is stopped."""
|
||||||
|
Loading…
Reference in New Issue
Block a user