Skip to content

Commit

Permalink
sorting imports
Browse files Browse the repository at this point in the history
  • Loading branch information
zzstoatzz committed Oct 15, 2024
1 parent a7af592 commit 1f5f806
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cookbook/slackbot/start.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ async def chat_endpoint(request: Request):

if __name__ == "__main__":
if not os.getenv("OPENAI_API_KEY", None): # TODO: Remove this
os.environ["OPENAI_API_KEY"] = marvin.settings.openai.api_key.get_secret_value()
assert (api_key := marvin.settings.openai.api_key), "OPENAI_API_KEY not set"
os.environ["OPENAI_API_KEY"] = api_key.get_secret_value()

uvicorn.run(app, host="0.0.0.0", port=4200)

0 comments on commit 1f5f806

Please sign in to comment.