Quellcode durchsuchen

fix: compatible to old tool config (#2837)

tags/0.5.10
Yeuoly vor 1 Jahr
Ursprung
Commit
bbea3a6b84
Es ist kein Account mit der E-Mail-Adresse des Committers verbunden
1 geänderte Dateien mit 2 neuen und 0 gelöschten Zeilen
  1. 2
    0
      api/controllers/console/app/app.py

+ 2
- 0
api/controllers/console/app/app.py Datei anzeigen

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

Laden…
Abbrechen
Speichern