Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
98
export
const
saveSelectedModel = (model) => {
99
localStorage.setItem(STORAGE_KEYS.MODEL, model);
100
};
101
102
export
const
generateId = () => {
103
return
Date.now().toString(36) + Math.random().toString(36).substr(2);
Callers
1
App
Function · 0.90
Calls
1
setItem
Method · 0.80
Tested by
no test coverage detected