From 930e7f47459c300357d611cda9d7becd99fad5c2 Mon Sep 17 00:00:00 2001 From: shaohuzhang1 Date: Thu, 29 Aug 2024 15:19:29 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E5=B7=A5=E4=BD=9C?= =?UTF-8?q?=E6=B5=81=E4=B8=AD=E6=A8=A1=E5=9E=8B=E5=8F=82=E6=95=B0=E4=B8=BA?= =?UTF-8?q?=E9=9D=9E=E5=BF=85=E5=A1=AB=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../application/flow/step_node/ai_chat_step_node/i_chat_node.py | 2 +- .../flow/step_node/ai_chat_step_node/impl/base_chat_node.py | 2 +- .../application/flow/step_node/question_node/i_question_node.py | 2 +- .../flow/step_node/question_node/impl/base_question_node.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/application/flow/step_node/ai_chat_step_node/i_chat_node.py b/apps/application/flow/step_node/ai_chat_step_node/i_chat_node.py index 15117c0b700..b7dfecf6a2b 100644 --- a/apps/application/flow/step_node/ai_chat_step_node/i_chat_node.py +++ b/apps/application/flow/step_node/ai_chat_step_node/i_chat_node.py @@ -38,6 +38,6 @@ def _run(self): def execute(self, model_id, system, prompt, dialogue_number, history_chat_record, stream, chat_id, chat_record_id, - model_params_setting, + model_params_setting=None, **kwargs) -> NodeResult: pass diff --git a/apps/application/flow/step_node/ai_chat_step_node/impl/base_chat_node.py b/apps/application/flow/step_node/ai_chat_step_node/impl/base_chat_node.py index f8ec8a0118d..9b41fb83fed 100644 --- a/apps/application/flow/step_node/ai_chat_step_node/impl/base_chat_node.py +++ b/apps/application/flow/step_node/ai_chat_step_node/impl/base_chat_node.py @@ -74,7 +74,7 @@ def get_default_model_params_setting(model_id): class BaseChatNode(IChatNode): def execute(self, model_id, system, prompt, dialogue_number, history_chat_record, stream, chat_id, chat_record_id, - model_params_setting, + model_params_setting=None, **kwargs) -> NodeResult: if model_params_setting is None: model_params_setting = get_default_model_params_setting(model_id) diff --git a/apps/application/flow/step_node/question_node/i_question_node.py b/apps/application/flow/step_node/question_node/i_question_node.py index 9b8c125621b..054a7ad9e48 100644 --- a/apps/application/flow/step_node/question_node/i_question_node.py +++ b/apps/application/flow/step_node/question_node/i_question_node.py @@ -36,6 +36,6 @@ def _run(self): return self.execute(**self.node_params_serializer.data, **self.flow_params_serializer.data) def execute(self, model_id, system, prompt, dialogue_number, history_chat_record, stream, chat_id, chat_record_id, - model_params_setting, + model_params_setting=None, **kwargs) -> NodeResult: pass diff --git a/apps/application/flow/step_node/question_node/impl/base_question_node.py b/apps/application/flow/step_node/question_node/impl/base_question_node.py index 33e1c0fe468..b140e24f976 100644 --- a/apps/application/flow/step_node/question_node/impl/base_question_node.py +++ b/apps/application/flow/step_node/question_node/impl/base_question_node.py @@ -74,7 +74,7 @@ def get_default_model_params_setting(model_id): class BaseQuestionNode(IQuestionNode): def execute(self, model_id, system, prompt, dialogue_number, history_chat_record, stream, chat_id, chat_record_id, - model_params_setting, + model_params_setting=None, **kwargs) -> NodeResult: if model_params_setting is None: model_params_setting = get_default_model_params_setting(model_id)