mirror of
https://github.com/NovaOSS/nova-betterchat.git
synced 2024-11-25 22:23:59 +01:00
parent
bdc95cb305
commit
1069f62fc6
|
@ -65,6 +65,8 @@ export const getChatCompletionStream = async (
|
||||||
if (text.includes('insufficient_quota')) {
|
if (text.includes('insufficient_quota')) {
|
||||||
error +=
|
error +=
|
||||||
'\nMessage from freechatgpt.chat:\nToo many request! We recommend changing your API endpoint or API key';
|
'\nMessage from freechatgpt.chat:\nToo many request! We recommend changing your API endpoint or API key';
|
||||||
|
} else {
|
||||||
|
error += '\nRate limited! Please try again later.';
|
||||||
}
|
}
|
||||||
throw new Error(error);
|
throw new Error(error);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +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://sharegpt.churchless.tech/share/v1/chat',
|
||||||
'https://chatgpt-api.shn.hk/v1/',
|
'https://chatgpt-api.shn.hk/v1/',
|
||||||
officialAPIEndpoint,
|
officialAPIEndpoint,
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in a new issue