Skip to content

Commit b9a02b1

Browse files
fix
1 parent 75f239d commit b9a02b1

4 files changed

Lines changed: 11 additions & 9 deletions

File tree

apps/application/flow/step_node/variable_assign_node/impl/base_variable_assign_node.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,19 +73,21 @@ def execute(self, variable_list, **kwargs) -> NodeResult:
7373
for variable in variable_list:
7474
if 'fields' not in variable:
7575
continue
76+
7677
if 'global' == variable['fields'][0]:
7778
result = self.handle(variable, self.global_evaluation)
7879
result_list.append(result)
79-
if 'chat' == variable['fields'][0]:
80+
elif 'chat' == variable['fields'][0]:
8081
result = self.handle(variable, self.chat_evaluation)
8182
result_list.append(result)
8283
is_chat = True
83-
if 'loop' == variable['fields'][0]:
84+
elif 'loop' == variable['fields'][0]:
8485
result = self.handle(variable, self.loop_evaluation)
8586
result_list.append(result)
86-
if 'output' == variable['fields'][0]:
87+
elif 'output' == variable['fields'][0]:
8788
result = self.handle(variable, self.out_evaluation)
8889
result_list.append(result)
90+
8991
if is_chat:
9092
from application.flow.loop_workflow_manage import LoopWorkflowManage
9193
if isinstance(self.workflow_manage, LoopWorkflowManage):

apps/application/serializers/application_chat_record.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ def reset_chat_record(chat_record, show_source, show_exec):
168168
'padding_problem_text': chat_record.details.get('problem_padding').get(
169169
'padding_problem_text') if 'problem_padding' in chat_record.details else None,
170170
**(show_source_dict if show_source else {}),
171-
**(show_exec_dict if show_exec else show_exec_dict)
171+
**(show_exec_dict if show_exec else {})
172172
}
173173

174174
def page(self, current_page: int, page_size: int, with_valid=True, show_source=None, show_exec=None):

apps/chat/serializers/chat.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -382,10 +382,10 @@ def get_chat_record(chat_info, chat_record_id):
382382
str(chat_record.id) == str(chat_record_id)]
383383
if chat_record_list is not None and len(chat_record_list):
384384
return chat_record_list[-1]
385-
chat_record = QuerySet(ChatRecord).filter(id=chat_record_id, chat_id=chat_info.chat_id).first()
386-
if chat_record is None:
387-
if not is_valid_uuid(chat_record_id):
388-
raise ChatException(500, _("Conversation record does not exist"))
385+
chat_record = QuerySet(ChatRecord).filter(id=chat_record_id, chat_id=chat_info.chat_id).first()
386+
if chat_record is None:
387+
if not is_valid_uuid(chat_record_id):
388+
raise ChatException(500, _("Conversation record does not exist"))
389389
chat_record = QuerySet(ChatRecord).filter(id=chat_record_id).first()
390390
return chat_record
391391

ui/src/locales/lang/en-US/workflow.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ export default {
188188
result: 'Search Results',
189189
searchParam: 'Search Parameters',
190190
select_variable: 'Select Variable',
191-
valueMessage: `Value or name `,
191+
valueMessage: 'Value or name',
192192

193193
searchQuestion: {
194194
label: 'Search Question',

0 commit comments

Comments
 (0)