diff --git a/src/title-generator.js b/src/title-generator.js index 99b6ec7..e77d6c7 100644 --- a/src/title-generator.js +++ b/src/title-generator.js @@ -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:)/, ''),