Kevin Hu
commited on
Commit
·
27634f0
1
Parent(s):
5c85724
re-generate for conversation (#2165)
Browse files### What problem does this PR solve?
### Type of change
- [x] Bug Fix (non-breaking change which fixes an issue)
api/apps/conversation_app.py
CHANGED
|
@@ -125,7 +125,7 @@ def completion():
|
|
| 125 |
e, conv = ConversationService.get_by_id(req["conversation_id"])
|
| 126 |
if not e:
|
| 127 |
return get_data_error_result(retmsg="Conversation not found!")
|
| 128 |
-
conv.message
|
| 129 |
e, dia = DialogService.get_by_id(conv.dialog_id)
|
| 130 |
if not e:
|
| 131 |
return get_data_error_result(retmsg="Dialog not found!")
|
|
|
|
| 125 |
e, conv = ConversationService.get_by_id(req["conversation_id"])
|
| 126 |
if not e:
|
| 127 |
return get_data_error_result(retmsg="Conversation not found!")
|
| 128 |
+
conv.message = deepcopy(req["messages"])
|
| 129 |
e, dia = DialogService.get_by_id(conv.dialog_id)
|
| 130 |
if not e:
|
| 131 |
return get_data_error_result(retmsg="Dialog not found!")
|