mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-07 06:56:04 +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 = {
|
const headers = {
|
||||||
'Content-Type': 'application/json',
|
'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;
|
const keyToUse = overrides?.key ?? translationApiKey.value;
|
||||||
if (keyToUse) {
|
if (keyToUse) {
|
||||||
|
|||||||
Reference in New Issue
Block a user