MCPcopy
hub / github.com/di-sukharev/opencommit / isModelNotFoundMessage

Function isModelNotFoundMessage

src/utils/engineErrorHandler.ts:90–99  ·  view source on GitHub ↗

* Checks if the error message indicates a model not found error

(message: string)

Source from the content-addressed store, hash-verified

88 * Checks if the error message indicates a model not found error
89 */
90function 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

Callers 1

normalizeEngineErrorFunction · 0.70

Calls 2

toLowerCaseMethod · 0.80
includesMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…