fix: 修复对话冗余代码 #590 (#594)
Some checks failed
sync2gitee / repo-sync (push) Has been cancelled
Typos Check / Spell Check with Typos (push) Has been cancelled

This commit is contained in:
shaohuzhang1 2024-06-03 10:57:01 +08:00 committed by GitHub
parent 11a8df151e
commit bb2768a7eb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -179,13 +179,12 @@ class ChatMessageSerializer(serializers.Serializer):
return chat_info
def chat(self):
self.is_valid(raise_exception=True)
chat_info = self.is_valid(raise_exception=True)
message = self.data.get('message')
re_chat = self.data.get('re_chat')
stream = self.data.get('stream')
client_id = self.data.get('client_id')
client_type = self.data.get('client_type')
chat_info = self.is_valid(raise_exception=True)
pipeline_manage_builder = PipelineManage.builder()
# 如果开启了问题优化,则添加上问题优化步骤
if chat_info.application.problem_optimization: