MCPcopy
hub / github.com/LAION-AI/Open-Assistant / getConfigCache

Function getConfigCache

website/src/utils/chat.ts:11–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9};
10
11export const getConfigCache = () => {
12 if (typeof localStorage !== "undefined") {
13 const oldConfig = localStorage.getItem(CHAT_CONFIG_KEY);
14 if (oldConfig) {
15 return JSON.parse(oldConfig);
16 }
17 return null;
18 }
19 return null;
20};

Callers 1

ChatSectionFunction · 0.90

Calls 1

parseMethod · 0.45

Tested by

no test coverage detected