set sharegpt api endpoint as default

This commit is contained in:
Jing Hua 2023-03-19 13:33:53 +08:00
parent e287e443c9
commit e0155e3f4f

View file

@ -1,8 +1,9 @@
export const defaultAPIEndpoint = 'https://chatgpt-api.shn.hk/v1/'; export const defaultAPIEndpoint =
'https://sharegpt.churchless.tech/share/v1/chat';
export const officialAPIEndpoint = 'https://api.openai.com/v1/chat/completions'; export const officialAPIEndpoint = 'https://api.openai.com/v1/chat/completions';
export const availableEndpoints = [ export const availableEndpoints = [
'https://chatgpt-api.shn.hk/v1/',
'https://sharegpt.churchless.tech/share/v1/chat', 'https://sharegpt.churchless.tech/share/v1/chat',
'https://chatgpt-api.shn.hk/v1/',
officialAPIEndpoint, officialAPIEndpoint,
]; ];