Spaces:
Running
Running
Update index.html
Browse files- index.html +1 -1
index.html
CHANGED
|
@@ -38,7 +38,7 @@ async function go(){
|
|
| 38 |
let r=await fetch('https://api.groq.com/openai/v1/chat/completions',{
|
| 39 |
method:'POST',
|
| 40 |
headers:{'Content-Type':'application/json','Authorization':'Bearer '+k},
|
| 41 |
-
body:JSON.stringify({model:'llama-3.
|
| 42 |
});
|
| 43 |
let d=await r.json();
|
| 44 |
if(!r.ok) throw new Error(d.error?.message||JSON.stringify(d));
|
|
|
|
| 38 |
let r=await fetch('https://api.groq.com/openai/v1/chat/completions',{
|
| 39 |
method:'POST',
|
| 40 |
headers:{'Content-Type':'application/json','Authorization':'Bearer '+k},
|
| 41 |
+
body:JSON.stringify({model:'llama-3.1-8b-instant',messages:[{role:'user',content:t}]})
|
| 42 |
});
|
| 43 |
let d=await r.json();
|
| 44 |
if(!r.ok) throw new Error(d.error?.message||JSON.stringify(d));
|