瀏覽代碼

Fix: /v1/conversation/completion KeyError: 'conversation_id' (#8037)

### What problem does this PR solve?

Close #8033

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
tags/v0.19.1
Stephen Hu 5 月之前
父節點
當前提交
b832372c98
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      api/apps/conversation_app.py

+ 1
- 1
api/apps/conversation_app.py 查看文件

@@ -249,7 +249,7 @@ def completion():
else:
answer = None
for ans in chat(dia, msg, **req):
answer = structure_answer(conv, ans, message_id, req["conversation_id"])
answer = structure_answer(conv, ans, message_id, conv.id)
ConversationService.update_by_id(conv.id, conv.to_dict())
break
return get_json_result(data=answer)

Loading…
取消
儲存