File size: 645 Bytes
793a92d
 
 
 
 
70a50e9
793a92d
70a50e9
 
 
793a92d
 
70a50e9
793a92d
70a50e9
793a92d
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Initialize environment variables from meta tags
document.addEventListener('DOMContentLoaded', function() {
    const openrouterMeta = document.querySelector('meta[name="openrouter-key"]');
    const hfMeta = document.querySelector('meta[name="hf-key"]');
    
    if (openrouterMeta && openrouterMeta.content) {
        window.OPENROUTER_API_KEY = openrouterMeta.content;
        console.log('OpenRouter API key loaded');
    } else {
        console.log('No OpenRouter API key found in meta tags');
    }
    
    if (hfMeta && hfMeta.content) {
        window.HF_API_KEY = hfMeta.content;
        console.log('HF API key loaded');
    }
});