소스 검색

fix: compatible to old tool config (#2837)

tags/0.5.10
Yeuoly 1 년 전
부모
커밋
bbea3a6b84
No account linked to committer's email address
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:

Loading…
취소
저장