moriire commited on
Commit
da2cdb2
1 Parent(s): 408dfc1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -94,7 +94,7 @@ async def complete(gen:GenModel):
94
  """
95
  et = time()
96
  output["time"] = et - st
97
- messages.append({'role': "assistant", "content": output['choices'][0]['message'])
98
  return output
99
  except Exception as e:
100
  logger.error(f"Error in /complete endpoint: {e}")
 
94
  """
95
  et = time()
96
  output["time"] = et - st
97
+ messages.append({'role': "assistant", "content": output['choices'][0]['message']})
98
  return output
99
  except Exception as e:
100
  logger.error(f"Error in /complete endpoint: {e}")