Skip to content

Commit

Permalink
fix pytest env error
Browse files Browse the repository at this point in the history
  • Loading branch information
CenekSanzak committed Jan 29, 2024
1 parent 6992462 commit 8e2d184
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions cli/zkappumstad/tools/prd_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,14 @@
from openai import OpenAI
from openai.types.chat import ChatCompletion
from dotenv import load_dotenv, find_dotenv
import os

load_dotenv(find_dotenv(".env.local"))


client = OpenAI()
if os.getenv("OPENAI_API_KEY"):
client = OpenAI()
else:
client = None

function_description = {
"name": "write_prd",
Expand Down

0 comments on commit 8e2d184

Please sign in to comment.