Merge pull request #193 from attilaszasz/main

update pipelines on startup
This commit is contained in:
Justin Hayes 2024-08-02 08:41:18 -04:00 committed by GitHub
commit ba1af55615
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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."""