Fix attribution header for OpenAI translation (#1623)

* Fix attribution header when using the OpenAI bio translation API

* Add an app name for attribution

* Add back the original referer header
This commit is contained in:
monolithic827
2026-02-02 01:08:35 +02:00
committed by GitHub
parent 5993978f33
commit 8ef9b3a89f

View File

@@ -681,7 +681,9 @@ export const useAdvancedSettingsStore = defineStore('AdvancedSettings', () => {
const headers = {
'Content-Type': 'application/json',
Referer: 'https://vrcx.app'
Referer: 'https://vrcx.app',
'HTTP-Referer': 'https://vrcx.app',
'X-Title': 'VRCX'
};
const keyToUse = overrides?.key ?? translationApiKey.value;
if (keyToUse) {