MCPcopy Create free account
hub / github.com/pollinations/pollinations / saveSelectedModel

Function saveSelectedModel

apps/chat/src/utils/storage.js:98–100  ·  view source on GitHub ↗
(model)

Source from the content-addressed store, hash-verified

96};
97
98export const saveSelectedModel = (model) => {
99 localStorage.setItem(STORAGE_KEYS.MODEL, model);
100};
101
102export const generateId = () => {
103 return Date.now().toString(36) + Math.random().toString(36).substr(2);

Callers 1

AppFunction · 0.90

Calls 1

setItemMethod · 0.80

Tested by

no test coverage detected