fix: 3986 - invalid request should show clear error message

This commit is contained in:
Louis 2024-11-25 19:57:40 +07:00
parent a5acaf0556
commit aa175000e3
No known key found for this signature in database
GPG Key ID: 44FA9F4D33C37DE2

View File

@ -29,7 +29,6 @@ const ErrorMessage = ({ message }: { message: ThreadMessage }) => {
switch (message.error_code) { switch (message.error_code) {
case ErrorCode.InvalidApiKey: case ErrorCode.InvalidApiKey:
case ErrorCode.AuthenticationError: case ErrorCode.AuthenticationError:
case ErrorCode.InvalidRequestError:
return ( return (
<span data-testid="invalid-API-key-error"> <span data-testid="invalid-API-key-error">
Invalid API key. Please check your API key from{' '} Invalid API key. Please check your API key from{' '}