mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-10 10:16:55 +08:00
perf: Optimize DataEase integration with Advanced Assistant
This commit is contained in:
committed by
fit2cloud-chenyw
parent
e626d13971
commit
b9ce9d3ddf
@@ -107,7 +107,10 @@ class HttpService {
|
||||
!!(assistantStore.getType % 2) &&
|
||||
assistantStore.getCertificate
|
||||
) {
|
||||
if (config.method?.toLowerCase() === 'get' && /\/chat\/\d+$/.test(config.url || '')) {
|
||||
if (
|
||||
(config.method?.toLowerCase() === 'get' && /\/chat\/\d+$/.test(config.url || '')) ||
|
||||
config.url?.includes('/system/assistant/ds')
|
||||
) {
|
||||
await assistantStore.refreshCertificate()
|
||||
}
|
||||
config.headers['X-SQLBOT-ASSISTANT-CERTIFICATE'] = btoa(
|
||||
|
||||
Reference in New Issue
Block a user