feat: Support configure SQLBot name in chat template

This commit is contained in:
ulleo
2026-05-08 17:51:58 +08:00
committed by ulleo
parent 4b55dcc019
commit b9d80aee7d
@@ -22,11 +22,17 @@ const loadData = () => {
if (res) {
res.forEach((item: any) => {
if (
(item.pkey?.startsWith('chat') && item.pkey !== 'chat.sqlbot_name') ||
item.pkey?.startsWith('chat') ||
item.pkey?.startsWith('login') ||
item.pkey?.startsWith('platform')
) {
state.parameterForm[item.pkey] = formatArg(item.pval)
if (item.pkey !== 'chat.sqlbot_name') {
if (item.pval && item.pval.trim().length > 0) {
state.parameterForm[item.pkey] = item.pval
}
} else {
state.parameterForm[item.pkey] = formatArg(item.pval)
}
}
})
console.log(state.parameterForm)