Update app.py
Browse files
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}")
|