mirror of
https://github.com/NovaOSS/nova-betterchat.git
synced 2024-11-25 19:33:59 +01:00
Changed alternative endpoint to Churchless
This commit is contained in:
parent
796e132742
commit
19e3a3b1da
|
@ -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;
|
||||||
|
|
||||||
|
|
|
@ -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 = '';
|
||||||
|
|
Loading…
Reference in a new issue