Skip to content

Commit

Permalink
openai for embeddings
Browse files Browse the repository at this point in the history
  • Loading branch information
zzstoatzz committed Dec 22, 2024
1 parent 4c29c77 commit 3a0fa73
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cookbook/slackbot/start.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,4 +361,8 @@ async def chat_endpoint(request: Request):


if __name__ == "__main__":
import os

# still need openai for embeddings
os.environ["OPENAI_API_KEY"] = Secret.load("openai-api-key").get() # type: ignore
uvicorn.run(app, host="0.0.0.0", port=4200)

0 comments on commit 3a0fa73

Please sign in to comment.