mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-10 19:36:53 +08:00
fix: compatible to old tool config (#2837)
This commit is contained in:
@@ -245,6 +245,8 @@ class AppApi(Resource):
|
|||||||
agent_mode = model_config.agent_mode_dict
|
agent_mode = model_config.agent_mode_dict
|
||||||
# decrypt agent tool parameters if it's secret-input
|
# decrypt agent tool parameters if it's secret-input
|
||||||
for tool in agent_mode.get('tools') or []:
|
for tool in agent_mode.get('tools') or []:
|
||||||
|
if not isinstance(tool, dict) or len(tool.keys()) <= 3:
|
||||||
|
continue
|
||||||
agent_tool_entity = AgentToolEntity(**tool)
|
agent_tool_entity = AgentToolEntity(**tool)
|
||||||
# get tool
|
# get tool
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user