mirror of
https://github.com/multipleof4/lynchmark.git
synced 2026-06-27 20:02:14 +00:00
Feat: Add OpenRouter leaderboard headers
Co-authored-by: gemini-3.5-flash <gemini@google.com>
This commit is contained in:
@@ -26,7 +26,13 @@ const apiCall = async (prompt, model, temp, effort) => {
|
|||||||
...(temp !== undefined && { temperature: temp }),
|
...(temp !== undefined && { temperature: temp }),
|
||||||
...(effort && { reasoning: { effort } })
|
...(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]) {
|
if (!res.data.choices || !res.data.choices[0]) {
|
||||||
console.error('API Response:', JSON.stringify(res.data, null, 2));
|
console.error('API Response:', JSON.stringify(res.data, null, 2));
|
||||||
|
|||||||
Reference in New Issue
Block a user