mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Make openai credit error a catch all
This commit is contained in:
@ -497,9 +497,10 @@ function tryParseStreamingError(str) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function checkQuotaError(data) {
|
function checkQuotaError(data) {
|
||||||
const errorText = `<h3>You have no credits left to use with this API key.<br>
|
const errorText = `<h3>Encountered an error while processing your request.<br>
|
||||||
Check your billing details on the
|
Check you have credits available on your
|
||||||
<a href="https://platform.openai.com/account/usage" target="_blank">OpenAI website.</a></h3>`;
|
<a href="https://platform.openai.com/account/usage" target="_blank">OpenAI account</a>.<br>
|
||||||
|
If you have sufficient credits, please try again later.</h3>`;
|
||||||
|
|
||||||
if (!data) {
|
if (!data) {
|
||||||
return;
|
return;
|
||||||
|
Reference in New Issue
Block a user