Feat: Add OpenRouter ranking headers to title gen

This commit is contained in:
2026-03-04 21:51:46 -08:00
parent bf7c816e1a
commit 310f58e28b

View File

@@ -18,7 +18,9 @@ export const generateTitleWithAI = async messages => {
method: 'POST', method: 'POST',
headers: { headers: {
'Authorization': `Bearer ${apiKey}`, 'Authorization': `Bearer ${apiKey}`,
'Content-Type': 'application/json' 'Content-Type': 'application/json',
'HTTP-Referer': 'https://sune.chat',
'X-Title': 'Sune'
}, },
body: JSON.stringify({ body: JSON.stringify({
model: model.replace(/^(or:|oai:)/, ''), model: model.replace(/^(or:|oai:)/, ''),