Skip to content

ModelNetworkError

Defined in: src/errors.ts:142

Error thrown when the network connection to the model provider fails, before or while the response is received.

Retrying the same request may succeed. The default model retry strategy retries it, like ModelThrottledError.

new ModelNetworkError(message, options?): ModelNetworkError;

Defined in: src/errors.ts:149

Creates a new ModelNetworkError.

ParameterTypeDescription
messagestringError message describing the network failure
options?ErrorOptionsOptional error options including cause for error chaining

ModelNetworkError

ModelError.constructor