Skip to content

Commit

Permalink
update pipelines on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
attilaszasz committed Aug 2, 2024
1 parent 3425667 commit ba9d266
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/pipelines/providers/google_manifold_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""
Expand Down

0 comments on commit ba9d266

Please sign in to comment.