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

Function setActiveModel

apps/catgpt/script.js:153–156  ·  view source on GitHub ↗
(model)

Source from the content-addressed store, hash-verified

151let activeModel = localStorage.getItem(MODEL_STORAGE_KEY) || "gptimage";
152
153function setActiveModel(model) {
154 activeModel = model;
155 localStorage.setItem(MODEL_STORAGE_KEY, model);
156}
157
158// ── Storage ──────────────────────────────────────────────────────────────────
159

Callers 2

updateAuthUIFunction · 0.85
script.jsFile · 0.85

Calls 1

setItemMethod · 0.80

Tested by

no test coverage detected