(msg: AssistantMessage)
| 143 | * rather than content text, since media errors have per-variant content strings. |
| 144 | */ |
| 145 | export function isMediaSizeErrorMessage(msg: AssistantMessage): boolean { |
| 146 | return ( |
| 147 | msg.isApiErrorMessage === true && |
| 148 | msg.errorDetails !== undefined && |
| 149 | isMediaSizeError(msg.errorDetails) |
| 150 | ) |
| 151 | } |
| 152 | export const CREDIT_BALANCE_TOO_LOW_ERROR_MESSAGE = 'Credit balance is too low' |
| 153 | export const INVALID_API_KEY_ERROR_MESSAGE = 'Not logged in · Please run /login' |
| 154 | export const INVALID_API_KEY_ERROR_MESSAGE_EXTERNAL = |
no test coverage detected