awacke1 commited on
Commit
edcf559
·
1 Parent(s): b3d6356

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -165,8 +165,8 @@ def chat_with_model(prompt, document_section, model_choice='gpt-3.5-turbo'):
165
  api_key= os.getenv('OPENAI_API_KEY')
166
  )
167
  stream = client.chat.completions.create(
168
- prompt="Say this is a test",
169
- messages=[{"role": "user", "content": "Say this is a test"}],
170
  stream=True,
171
  )
172
  for part in stream:
 
165
  api_key= os.getenv('OPENAI_API_KEY')
166
  )
167
  stream = client.chat.completions.create(
168
+ model='gpt-3.5-turbo',
169
+ messages=conversation,
170
  stream=True,
171
  )
172
  for part in stream: