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',
|
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:)/, ''),
|
||||||
|
|||||||
Reference in New Issue
Block a user