You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"You OpenAI API Key is not active or has expired. Please set a new API Key",
});
}
}finally{
As written here, all errors in sending chats will appear as API key issues, except for network errors.
For example, if the sentence is too long, it is known that code: "context_length_exceeded" will be returned, so it can be determined.
The message will return the current number of tokens, so telling the user to reduce it will make the app more user-friendly.
I can create a PR if needed, but it may take some time.
The text was updated successfully, but these errors were encountered:
chatpad/src/routes/ChatRoute.tsx
Lines 163 to 178 in 0f7e2d4
As written here, all errors in sending chats will appear as API key issues, except for network errors.
For example, if the sentence is too long, it is known that
code: "context_length_exceeded"
will be returned, so it can be determined.The message will return the current number of tokens, so telling the user to reduce it will make the app more user-friendly.
I can create a PR if needed, but it may take some time.
The text was updated successfully, but these errors were encountered: