dlflannery commited on
Commit
d3d6d3f
·
verified ·
1 Parent(s): aec0166

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -66,7 +66,7 @@ def chat(prompt, user_window, pwd_window, past, response, gptModel):
66
  completion = client.chat.completions.create(model=gptModel,
67
  messages=past)
68
  reply = completion.choices[0].message.content
69
- response += "\n\nYOU: " + prompt + "\nGPT: " + reply + "\nModel = " + gptModel
70
  if len(response) > 40000:
71
  response += "\n\nTHIS DIALOG IS GETTING TOO LONG. PLEASE CLEAR IT."
72
  past.append({"role":"assistant", "content": reply})
 
66
  completion = client.chat.completions.create(model=gptModel,
67
  messages=past)
68
  reply = completion.choices[0].message.content
69
+ response += "\n\nYOU: " + prompt + "\nGPT: " + reply # + "\nModel = " + gptModel
70
  if len(response) > 40000:
71
  response += "\n\nTHIS DIALOG IS GETTING TOO LONG. PLEASE CLEAR IT."
72
  past.append({"role":"assistant", "content": reply})