Feat: Add OpenRouter leaderboard headers

Co-authored-by: gemini-3.5-flash <gemini@google.com>
This commit is contained in:
2026-06-19 16:14:45 -07:00
parent d4ae079fea
commit 49dadb5155

View File

@@ -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));