ryanrwatkins commited on
Commit
f60be08
1 Parent(s): 917363a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -119,7 +119,7 @@ def submit_message(prompt, prompt_template, temperature, max_tokens, context_len
119
 
120
  history.append(prompt_msg)
121
  #history.append(completion.choices[0].message.to_dict())
122
- history.append(completion["result"].choices[0].message.to_dict())
123
 
124
  state['total_tokens'] += completion['usage']['total_tokens']
125
 
 
119
 
120
  history.append(prompt_msg)
121
  #history.append(completion.choices[0].message.to_dict())
122
+ history.append(completion["result"])
123
 
124
  state['total_tokens'] += completion['usage']['total_tokens']
125