TeamGreenEdifai commited on
Commit
3b4d076
1 Parent(s): 7155579

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -10,7 +10,7 @@ import time
10
  from haystack.utils import Secret # For securely storing the OpenAI API key
11
 
12
  # Setup OpenAI client
13
- client = OpenAI(api_key=Secret.from_token(os.getenv('OPENAI_KEY')))
14
 
15
 
16
  def query_openai(messages: List[Dict[str, str]],
 
10
  from haystack.utils import Secret # For securely storing the OpenAI API key
11
 
12
  # Setup OpenAI client
13
+ client = OpenAI(api_key=os.getenv('OPENAI_KEY'))
14
 
15
 
16
  def query_openai(messages: List[Dict[str, str]],