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

Method saveStore

packages/node-runtime/src/ai/llm-config-store.ts:128–136  ·  view source on GitHub ↗
(store: AIConfigStore)

Source from the content-addressed store, hash-verified

126 }
127
128 saveStore(store: AIConfigStore): void {
129 this.storage.writeJson<AIConfigStore>('llm-config', {
130 ...store,
131 configs: store.configs.map((config) => ({
132 ...config,
133 apiKey: '',
134 })),
135 })
136 }
137
138 getAllConfigs(): AIServiceConfig[] {
139 return this.loadStore().configs

Callers 5

addConfigMethod · 0.95
updateConfigMethod · 0.95
deleteConfigMethod · 0.95
setFastModelMethod · 0.95

Calls 1

writeJsonMethod · 0.80

Tested by

no test coverage detected