fix: 修复SQL 工具重复加载的问题
This commit is contained in:
parent
e8a5844af7
commit
ccc6cbd17a
@ -6,7 +6,6 @@ import requests
|
|||||||
from langchain.tools import tool
|
from langchain.tools import tool
|
||||||
|
|
||||||
from src.agents.common import get_buildin_tools
|
from src.agents.common import get_buildin_tools
|
||||||
from src.agents.common.toolkits.mysql import get_mysql_tools
|
|
||||||
from src.storage.minio import aupload_file_to_minio
|
from src.storage.minio import aupload_file_to_minio
|
||||||
from src.utils import logger
|
from src.utils import logger
|
||||||
|
|
||||||
@ -52,5 +51,4 @@ def get_tools() -> list[Any]:
|
|||||||
"""获取所有可运行的工具(给大模型使用)"""
|
"""获取所有可运行的工具(给大模型使用)"""
|
||||||
tools = get_buildin_tools()
|
tools = get_buildin_tools()
|
||||||
tools.append(text_to_img_demo)
|
tools.append(text_to_img_demo)
|
||||||
tools.extend(get_mysql_tools())
|
|
||||||
return tools
|
return tools
|
||||||
|
|||||||
@ -16,15 +16,15 @@ branding:
|
|||||||
|
|
||||||
features:
|
features:
|
||||||
- label: "GitHub Stars"
|
- label: "GitHub Stars"
|
||||||
value: "2600+"
|
value: "3000+"
|
||||||
description: "开发者社区的认可与支持"
|
description: "开发者社区的认可与支持"
|
||||||
icon: "stars"
|
icon: "stars"
|
||||||
- label: "已解决 Issues"
|
- label: "已解决 Issues"
|
||||||
value: "210+"
|
value: "250+"
|
||||||
description: "持续改进和问题解决能力"
|
description: "持续改进和问题解决能力"
|
||||||
icon: "issues"
|
icon: "issues"
|
||||||
- label: "累计 Commits"
|
- label: "累计 Commits"
|
||||||
value: "1000+"
|
value: "1100+"
|
||||||
description: "活跃的开发迭代和功能更新"
|
description: "活跃的开发迭代和功能更新"
|
||||||
icon: "commits"
|
icon: "commits"
|
||||||
- label: "开源协议"
|
- label: "开源协议"
|
||||||
|
|||||||
@ -27,17 +27,17 @@ export const useInfoStore = defineStore('info', () => {
|
|||||||
// 计算属性 - 功能特性
|
// 计算属性 - 功能特性
|
||||||
const features = computed(() => infoConfig.value.features || [{
|
const features = computed(() => infoConfig.value.features || [{
|
||||||
label: "GitHub Stars",
|
label: "GitHub Stars",
|
||||||
value: "2600+",
|
value: "3000+",
|
||||||
description: "开发者社区的认可与支持",
|
description: "开发者社区的认可与支持",
|
||||||
icon: "stars"
|
icon: "stars"
|
||||||
}, {
|
}, {
|
||||||
label: "已解决 Issues",
|
label: "已解决 Issues",
|
||||||
value: "200+",
|
value: "250+",
|
||||||
description: "持续改进和问题解决能力",
|
description: "持续改进和问题解决能力",
|
||||||
icon: "issues"
|
icon: "issues"
|
||||||
}, {
|
}, {
|
||||||
label: "累计 Commits",
|
label: "累计 Commits",
|
||||||
value: "1000+",
|
value: "1100+",
|
||||||
description: "活跃的开发迭代和功能更新",
|
description: "活跃的开发迭代和功能更新",
|
||||||
icon: "commits"
|
icon: "commits"
|
||||||
}, {
|
}, {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user