mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-19 09:50:15 +01:00
🛠️ fix: Completion Edge Cases & Improve Error Handling UX (#3968)
* fix: edge cases concerning completion response as an array * refactor: improve invalid request error UX
This commit is contained in:
parent
0148b9b097
commit
341e086d70
6 changed files with 21 additions and 7 deletions
|
|
@ -943,11 +943,14 @@ export enum ErrorTypes {
|
|||
* Moderation error
|
||||
*/
|
||||
MODERATION = 'moderation',
|
||||
|
||||
/**
|
||||
* Prompt exceeds max length
|
||||
*/
|
||||
INPUT_LENGTH = 'INPUT_LENGTH',
|
||||
/**
|
||||
* Invalid request error, API rejected request
|
||||
*/
|
||||
INVALID_REQUEST = 'invalid_request_error',
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue