* Checks if the error message indicates a model not found error
(message: string)
| 88 | * Checks if the error message indicates a model not found error |
| 89 | */ |
| 90 | function isModelNotFoundMessage(message: string): boolean { |
| 91 | const lowerMessage = message.toLowerCase(); |
| 92 | return ( |
| 93 | (lowerMessage.includes('model') && |
| 94 | (lowerMessage.includes('not found') || |
| 95 | lowerMessage.includes('does not exist') || |
| 96 | lowerMessage.includes('pull'))) || |
| 97 | lowerMessage.includes('does_not_exist') |
| 98 | ); |
| 99 | } |
| 100 | |
| 101 | /** |
| 102 | * Checks if the error message indicates insufficient credits |
no test coverage detected
searching dependent graphs…