fix:修复没有灵思配置时额错误

This commit is contained in:
GuoQing Zhang
2025-08-08 16:51:57 +08:00
parent 63d6853f88
commit 6b406b92ff
@@ -80,8 +80,9 @@ class WorkStationService(BaseService):
if ret.webSearch and not ret.webSearch.params:
ret.webSearch.tool = 'bing'
ret.webSearch.params = {'api_key': ret.webSearch.bingKey, 'base_url': ret.webSearch.bingUrl}
# 判断工具是否被删除, 同步工具最新的信息名称和描述等
ret.linsightConfig.tools = cls.sync_tool_info(ret.linsightConfig.tools)
if ret.linsightConfig:
# 判断工具是否被删除, 同步工具最新的信息名称和描述等
ret.linsightConfig.tools = cls.sync_tool_info(ret.linsightConfig.tools)
return ret
return None