File size: 432 Bytes
fc851c4
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
require('dotenv').config({ path: '../.env' });
async function fetchModels() {
    try {
        const response = await fetch('https://api.groq.com/openai/v1/models', {
            headers: { 'Authorization': `Bearer ${process.env.GROQ_API_KEY}` }
        });
        const data = await response.json();
        console.log("RAW GROQ RESPONSE:", JSON.stringify(data, null, 2));
    } catch (e) { console.error(e); }
}
fetchModels();