Skip to content

Commit 37ca0c0

Browse files
committed
Fix: Use base router URL with model in body
1 parent 2c0c0e4 commit 37ca0c0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

script.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const HF_API_URL = "https://router.huggingface.co/meta-llama/Llama-3.2-1B-Instruct/v1/chat/completions";
1+
const HF_API_URL = "https://router.huggingface.co/v1/chat/completions";
22
const HF_TOKEN = "HF_TOKEN_PLACEHOLDER";
33

44
let skillsData = [];
@@ -198,6 +198,7 @@ PREGUNTA DEL ESTUDIANTE: ${userMessage}`;
198198
},
199199
method: 'POST',
200200
body: JSON.stringify({
201+
model: "meta-llama/Llama-3.2-1B-Instruct",
201202
messages: [
202203
{ role: "system", content: SYSTEM_PROMPT },
203204
{ role: "system", content: "INFORMACIÓN DE RETOS DISPONIBLES:\n" + skillsContext },

0 commit comments

Comments
 (0)