perF: getInitData api cache;perf: tool description field;signoz store level (#5465)

* perf: auto focus

* perF: getInitData api cache

* perf: tool description field

* signoz store level

* perF: chat logs index
This commit is contained in:
Archer
2025-08-15 15:01:20 +08:00
committed by GitHub
parent d78a0e9e4b
commit 76dc23c2e4
20 changed files with 91 additions and 71 deletions

View File

@@ -173,6 +173,17 @@ export const loadSystemModels = async (init = false) => {
const providerB = getModelProvider(b.provider);
return providerA.order - providerB.order;
});
global.systemActiveDesensitizedModels = global.systemActiveModelList.map((model) => ({
...model,
defaultSystemChatPrompt: undefined,
fieldMap: undefined,
defaultConfig: undefined,
weight: undefined,
dbConfig: undefined,
queryConfig: undefined,
requestUrl: undefined,
requestAuth: undefined
})) as SystemModelItemType[];
console.log(
`Load models success, total: ${global.systemModelList.length}, active: ${global.systemActiveModelList.length}`,