🚨 feat: Implement INPUT_LENGTH Error Type (#3866)

* feat: CONTEXT_LENGTH error type

* chore: rename error type

* chore: import order
This commit is contained in:
Danny Avila 2024-08-30 15:01:29 -04:00 committed by GitHub
parent 6936d0059f
commit 7536e649d4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 26 additions and 4 deletions

View file

@ -839,6 +839,11 @@ export enum ErrorTypes {
* Moderation error
*/
MODERATION = 'moderation',
/**
* Prompt exceeds max length
*/
INPUT_LENGTH = 'INPUT_LENGTH',
}
/**