浏览代码

fix: compatible to old tool config (#2837)

tags/0.5.10
Yeuoly 1年前
父节点
当前提交
bbea3a6b84
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2
    0
      api/controllers/console/app/app.py

+ 2
- 0
api/controllers/console/app/app.py 查看文件

@@ -245,6 +245,8 @@ class AppApi(Resource):
agent_mode = model_config.agent_mode_dict
# decrypt agent tool parameters if it's secret-input
for tool in agent_mode.get('tools') or []:
if not isinstance(tool, dict) or len(tool.keys()) <= 3:
continue
agent_tool_entity = AgentToolEntity(**tool)
# get tool
try:

正在加载...
取消
保存