()
| 4 | export const BYOP_STORAGE_KEY = "pollinations_byop_api_key"; |
| 5 | |
| 6 | const getApiToken = () => { |
| 7 | if (typeof window !== "undefined") { |
| 8 | try { |
| 9 | const userKey = window.localStorage.getItem(BYOP_STORAGE_KEY); |
| 10 | if (userKey) return userKey; |
| 11 | } catch { |
| 12 | /* ignore localStorage failures */ |
| 13 | } |
| 14 | } |
| 15 | return ENV_API_TOKEN; |
| 16 | }; |
| 17 | |
| 18 | let textModels = []; |
| 19 | let imageModels = []; |
no test coverage detected