MCPcopy Create free account
hub / github.com/TechJeeper/Printventory / dequeueNextRenderTask

Function dequeueNextRenderTask

renderer.js:839–852  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

837window.importLibraryFromDialog = async function importLibraryFromDialog() {
838 if (typeof window._importLibraryFromDialogImpl === 'function') {
839 await window._importLibraryFromDialogImpl();
840 }
841};
842
843// AI Config: Test and Save (early for Docker/server)
844const AI_OFFICIAL_CLOUD_HOSTS = ['api.openai.com', 'api.anthropic.com', 'generativelanguage.googleapis.com'];
845
846function aiApiKeyIsRequired(service, endpoint) {
847 const s = (service || '').toLowerCase().trim();
848 if (s === 'puter' || s === 'custom') return false;
849 const url = (endpoint || '').trim().toLowerCase();
850 if (!url) return s === 'openai' || s === 'claude' || s === 'gemini';
851 return AI_OFFICIAL_CLOUD_HOSTS.some((host) => url.indexOf(host) !== -1);
852}
853
854function syncAiApiKeyField(service) {
855 const apiKeyEl = document.getElementById('ai-api-key');

Callers 1

processRenderQueueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected