(text: string)
| 54 | export const API_ERROR_MESSAGE_PREFIX = 'API Error' |
| 55 | |
| 56 | export function startsWithApiErrorPrefix(text: string): boolean { |
| 57 | return ( |
| 58 | text.startsWith(API_ERROR_MESSAGE_PREFIX) || |
| 59 | text.startsWith(`Please run /login · ${API_ERROR_MESSAGE_PREFIX}`) |
| 60 | ) |
| 61 | } |
| 62 | export const PROMPT_TOO_LONG_ERROR_MESSAGE = 'Prompt is too long' |
| 63 | |
| 64 | export function isPromptTooLongMessage(msg: AssistantMessage): boolean { |
no outgoing calls
no test coverage detected