Changed alternative endpoint to Churchless

This commit is contained in:
NSDE 2023-08-15 13:54:04 +02:00
parent 796e132742
commit 19e3a3b1da
2 changed files with 2 additions and 2 deletions

View file

@ -1,6 +1,6 @@
export const officialAPIEndpoint = 'https://api.nova-oss.com/v1/chat/completions'; export const officialAPIEndpoint = 'https://api.nova-oss.com/v1/chat/completions';
const customAPIEndpoint = const customAPIEndpoint =
import.meta.env.VITE_CUSTOM_API_ENDPOINT || 'https://chatgpt-api.shn.hk/v1/'; import.meta.env.VITE_CUSTOM_API_ENDPOINT || 'https://free.churchless.tech/v1/chat/completions/';
export const defaultAPIEndpoint = export const defaultAPIEndpoint =
import.meta.env.VITE_DEFAULT_API_ENDPOINT || officialAPIEndpoint; import.meta.env.VITE_DEFAULT_API_ENDPOINT || officialAPIEndpoint;

View file

@ -73,7 +73,7 @@ export const migrateV6 = (persistedState: LocalStorageInterfaceV6ToV7) => {
persistedState.apiEndpoint === persistedState.apiEndpoint ===
'https://sharegpt.churchless.tech/share/v1/chat' 'https://sharegpt.churchless.tech/share/v1/chat'
) { ) {
persistedState.apiEndpoint = 'https://chatgpt-api.shn.hk/v1/'; persistedState.apiEndpoint = 'https://free.churchless.tech/v1/chat/completions';
} }
if (!persistedState.apiKey || persistedState.apiKey.length === 0) if (!persistedState.apiKey || persistedState.apiKey.length === 0)
persistedState.apiKey = ''; persistedState.apiKey = '';