Ver código fonte

Fix/compatible to old tool config (#2839)

tags/0.5.10
Yeuoly 1 ano atrás
pai
commit
f29280ba5c
Nenhuma conta vinculada ao e-mail do autor do commit
1 arquivos alterados com 3 adições e 0 exclusões
  1. 3
    0
      api/controllers/console/app/model_config.py

+ 3
- 0
api/controllers/console/app/model_config.py Ver arquivo

@@ -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:

Carregando…
Cancelar
Salvar