From 49dadb515500a7943975dbbf696e6fc24487a4e1 Mon Sep 17 00:00:00 2001 From: multipleof4 Date: Fri, 19 Jun 2026 16:14:45 -0700 Subject: [PATCH] Feat: Add OpenRouter leaderboard headers Co-authored-by: gemini-3.5-flash --- scripts/run-benchmark.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/run-benchmark.js b/scripts/run-benchmark.js index 1df5923..aa11d18 100644 --- a/scripts/run-benchmark.js +++ b/scripts/run-benchmark.js @@ -26,7 +26,13 @@ const apiCall = async (prompt, model, temp, effort) => { ...(temp !== undefined && { temperature: temp }), ...(effort && { reasoning: { effort } }) }, - { headers: { Authorization: `Bearer ${process.env.OPENROUTER_KEY}` } } + { + headers: { + Authorization: `Bearer ${process.env.OPENROUTER_KEY}`, + 'HTTP-Referer': 'https://lynchmark.com', + 'X-Title': 'Lynchmark' + } + } ); if (!res.data.choices || !res.data.choices[0]) { console.error('API Response:', JSON.stringify(res.data, null, 2));