MCPcopy Create free account
hub / github.com/SensAI-PT/RAGMeUp / updateConfig

Function updateConfig

ui/node-react/client/src/api.js:243–252  ·  view source on GitHub ↗
(config, reinitialize = false)

Source from the content-addressed store, hash-verified

241}
242
243export async function updateConfig(config, reinitialize = false) {
244 const res = await fetch(`${API_BASE}/config`, {
245 method: 'PUT',
246 headers: getHeaders(),
247 body: JSON.stringify({ config, reinitialize }),
248 });
249 const data = await res.json();
250 if (!res.ok) throw new Error(data.error || 'Failed to update config');
251 return data;
252}

Callers 1

handleSaveFunction · 0.90

Calls 1

getHeadersFunction · 0.85

Tested by

no test coverage detected