Skip to content

Commit

Permalink
Merge pull request #193 from attilaszasz/main
Browse files Browse the repository at this point in the history
update pipelines on startup
  • Loading branch information
justinh-rahb authored Aug 2, 2024
2 parents 3425667 + ba9d266 commit ba1af55
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 ba1af55

Please sign in to comment.