From 19e3a3b1da738c22b4547631727fcda59450e5ed Mon Sep 17 00:00:00 2001 From: NSDE Date: Tue, 15 Aug 2023 13:54:04 +0200 Subject: [PATCH] Changed alternative endpoint to Churchless --- src/constants/auth.ts | 2 +- src/store/migrate.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/constants/auth.ts b/src/constants/auth.ts index 4819bb6..2e7cbd9 100644 --- a/src/constants/auth.ts +++ b/src/constants/auth.ts @@ -1,6 +1,6 @@ export const officialAPIEndpoint = 'https://api.nova-oss.com/v1/chat/completions'; 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 = import.meta.env.VITE_DEFAULT_API_ENDPOINT || officialAPIEndpoint; diff --git a/src/store/migrate.ts b/src/store/migrate.ts index b96ba60..d4d2e49 100644 --- a/src/store/migrate.ts +++ b/src/store/migrate.ts @@ -73,7 +73,7 @@ export const migrateV6 = (persistedState: LocalStorageInterfaceV6ToV7) => { persistedState.apiEndpoint === '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) persistedState.apiKey = '';