awacke1 commited on
Commit
710e348
·
1 Parent(s): a07986d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -163,7 +163,7 @@ def chat_with_model(prompt, document_section, model_choice='gpt-3.5-turbo'):
163
  collected_chunks = []
164
  collected_messages = []
165
  key = os.getenv('OPENAI_API_KEY')
166
- openai.api_key = key
167
 
168
  for chunk in client.chat.completions.create(
169
  model='gpt-3.5-turbo',
 
163
  collected_chunks = []
164
  collected_messages = []
165
  key = os.getenv('OPENAI_API_KEY')
166
+ client.api_key = key
167
 
168
  for chunk in client.chat.completions.create(
169
  model='gpt-3.5-turbo',