UNPKG

venice-ai-sdk-apl

Version:

A comprehensive SDK for the Venice AI API with CLI support, programmatic CLI usage, CLI-style interface, and interactive demo

56 lines (55 loc) 961 B
/** * API Error class * * This class represents errors returned by the Venice AI API. * It includes information about the error such as the status code, * error code, and message. */ /** * API Error options */ export interface ApiErrorOptions { /** * Error message */ message: string; /** * HTTP status code */ status: number; /** * Error code */ code: string; /** * Additional error data */ data?: any; } /** * API Error class */ export declare class ApiError extends Error { /** * HTTP status code */ status: number; /** * Error code */ code: string; /** * Additional error data */ data?: any; /** * Creates a new API error * * @param options - Error options */ constructor(options: ApiErrorOptions); /** * Returns a string representation of the error */ toString(): string; }