mirror of
https://github.com/multipleof4/sune.git
synced 2026-03-17 03:01:03 +00:00
Feat: Add OpenRouter ranking headers to title gen
This commit is contained in:
@@ -18,7 +18,9 @@ export const generateTitleWithAI = async messages => {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Authorization': `Bearer ${apiKey}`,
|
||||
'Content-Type': 'application/json'
|
||||
'Content-Type': 'application/json',
|
||||
'HTTP-Referer': 'https://sune.chat',
|
||||
'X-Title': 'Sune'
|
||||
},
|
||||
body: JSON.stringify({
|
||||
model: model.replace(/^(or:|oai:)/, ''),
|
||||
|
||||
Reference in New Issue
Block a user