MCPcopy Create free account
hub / github.com/Noumena-Network/code / isMediaSizeErrorMessage

Function isMediaSizeErrorMessage

src/services/api/errors.ts:145–151  ·  view source on GitHub ↗
(msg: AssistantMessage)

Source from the content-addressed store, hash-verified

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

Callers 1

errors.test.tsFile · 0.85

Calls 1

isMediaSizeErrorFunction · 0.85

Tested by

no test coverage detected