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