瀏覽代碼

Fix/compatible to old tool config (#2839)

tags/0.5.10
Yeuoly 1 年之前
父節點
當前提交
f29280ba5c
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 3 行新增0 行删除
  1. 3
    0
      api/controllers/console/app/model_config.py

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

@@ -52,6 +52,9 @@ class ModelConfigResource(Resource):
masked_parameter_map = {}
tool_map = {}
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:

Loading…
取消
儲存