mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-18 14:23:51 +02:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user