From ba9d26662f4c0f1b111b3a3855f137ecfa4bb292 Mon Sep 17 00:00:00 2001 From: attilaszasz Date: Fri, 2 Aug 2024 10:20:02 +0300 Subject: [PATCH] update pipelines on startup --- examples/pipelines/providers/google_manifold_pipeline.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/pipelines/providers/google_manifold_pipeline.py b/examples/pipelines/providers/google_manifold_pipeline.py index d320ea9b..9c8ae28b 100644 --- a/examples/pipelines/providers/google_manifold_pipeline.py +++ b/examples/pipelines/providers/google_manifold_pipeline.py @@ -45,6 +45,8 @@ async def on_startup(self) -> None: """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."""