From 7a8590980e4996a979812cb14657f788164337e6 Mon Sep 17 00:00:00 2001 From: takatost Date: Tue, 15 Aug 2023 22:27:31 +0800 Subject: [PATCH] fix: dataset direct output (#860) --- api/core/orchestrator_rule_parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/core/orchestrator_rule_parser.py b/api/core/orchestrator_rule_parser.py index 4755588ba5..975cac2cd8 100644 --- a/api/core/orchestrator_rule_parser.py +++ b/api/core/orchestrator_rule_parser.py @@ -72,7 +72,7 @@ class OrchestratorRuleParser: # only OpenAI chat model (include Azure) support function call, use ReACT instead if agent_model_instance.model_mode != ModelMode.CHAT \ - or agent_model_instance.name not in ['openai', 'azure_openai']: + or agent_model_instance.model_provider.provider_name not in ['openai', 'azure_openai']: if planning_strategy in [PlanningStrategy.FUNCTION_CALL, PlanningStrategy.MULTI_FUNCTION_CALL]: planning_strategy = PlanningStrategy.REACT elif planning_strategy == PlanningStrategy.ROUTER: