MCPcopy Create free account
hub / github.com/ChatLab/ChatLab / saveConfigStore

Function saveConfigStore

apps/desktop/main/ai/llm/index.ts:210–218  ·  view source on GitHub ↗
(store: AIConfigStore)

Source from the content-addressed store, hash-verified

208 * API Key 不再存储在 llm-config.json 中,统一由 auth-profiles.json 管理
209 */
210export function saveConfigStore(store: AIConfigStore): void {
211 saveConfigStoreRaw({
212 ...store,
213 configs: store.configs.map((config) => ({
214 ...config,
215 apiKey: '',
216 })),
217 })
218}
219
220function saveConfigStoreRaw(store: AIConfigStore): void {
221 const configPath = getConfigPath()

Callers 5

addConfigFunction · 0.85
updateConfigFunction · 0.85
deleteConfigFunction · 0.85
setDefaultAssistantModelFunction · 0.85
setFastModelFunction · 0.85

Calls 1

saveConfigStoreRawFunction · 0.85

Tested by

no test coverage detected