mirror of
https://github.com/dataelement/bisheng.git
synced 2026-10-28 03:40:25 +08:00
fix:修复没有灵思配置时额错误
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user