mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-18 23:55:52 +08:00
fix: dataset direct output (#860)
This commit is contained in:
parent
e8c14bb732
commit
7a8590980e
@ -72,7 +72,7 @@ class OrchestratorRuleParser:
|
|||||||
|
|
||||||
# only OpenAI chat model (include Azure) support function call, use ReACT instead
|
# only OpenAI chat model (include Azure) support function call, use ReACT instead
|
||||||
if agent_model_instance.model_mode != ModelMode.CHAT \
|
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]:
|
if planning_strategy in [PlanningStrategy.FUNCTION_CALL, PlanningStrategy.MULTI_FUNCTION_CALL]:
|
||||||
planning_strategy = PlanningStrategy.REACT
|
planning_strategy = PlanningStrategy.REACT
|
||||||
elif planning_strategy == PlanningStrategy.ROUTER:
|
elif planning_strategy == PlanningStrategy.ROUTER:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user