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

167 lines (166 loc) 4.71 kB
#!/usr/bin/env node export declare const commands: { chat: (prompt: string, options?: { model?: string; webSearch?: boolean | string; system?: string; raw?: boolean; image?: string; stream?: boolean; noSystemPrompt?: boolean; character?: string; functions?: string; functionsFile?: string; forceFunctionCall?: boolean; modelFeatures?: string; }) => Promise<string | import("./types").ChatCompletionResponse | { stream: boolean; requestParams: any; } | null>; listKeys: (options?: { limit?: number; raw?: boolean; type?: string; }) => Promise<import("./types").ListApiKeysResponse | { keys: never[]; total: number; filtered?: undefined; } | { keys: { id: any; name: any; created: Date | null; expires: Date | null; type: any; lastUsed: Date | null; usage: any; }[]; total: number; filtered: number; }>; createKey: (name: string, options?: { raw?: boolean; }) => Promise<import("./types").CreateApiKeyResponse | { id: string; key: string; name: string; created: Date; expires: Date | null; }>; deleteKey: (id: string, options?: { raw?: boolean; }) => Promise<import("./types").DeleteApiKeyResponse>; listModels: (options?: { limit?: number; raw?: boolean; type?: string; }) => Promise<import("./types").ListModelsResponse | { models: { id: any; name: any; type: any; }[]; total: number; filtered: number; }>; generateImage: (prompt: string, options?: { model?: string; negative?: string; style?: string; height?: number; width?: number; outputPath?: string; raw?: boolean; }) => Promise<import("./types").GenerateImageResponse | { url: string | undefined; } | { savedTo: string; url: string | undefined; }>; listStyles: (options?: { limit?: number; raw?: boolean; }) => Promise<import("./types").ListImageStylesResponse | { styles: { id: any; name: any; description: any; }[]; total: number; }>; configure: (apiKey: string) => { success: boolean; }; enableDebug: () => { debug: boolean; }; disableDebug: () => { debug: boolean; }; rateLimits: (options?: { model?: string; raw?: boolean; }) => Promise<any>; listCharacters: (options?: { limit?: number; raw?: boolean; }) => Promise<import("./types/characters").ListCharactersResponse | { characters: { name: any; slug: any; description: any; model: any; }[]; total: number; filtered: number; }>; vvvCirculatingSupply: (options?: { raw?: boolean; }) => Promise<import("./types/vvv").VVVCirculatingSupplyResponse | { circulating_supply: number; total_supply: number | undefined; percentage_circulating: string | number; timestamp: string; }>; vvvUtilization: (options?: { raw?: boolean; }) => Promise<import("./types/vvv").VVVUtilizationResponse | { utilization_percentage: string; timestamp: string; capacity?: undefined; usage?: undefined; historical_data?: undefined; } | { utilization_percentage: string; capacity: number | undefined; usage: number | undefined; timestamp: string; historical_data: { timestamp: string; utilization_percentage: number; }[] | undefined; }>; vvvStakingYield: (options?: { raw?: boolean; }) => Promise<import("./types/vvv").VVVStakingYieldResponse | { current_apy: string; total_staked: number; total_emission: string | undefined; staker_distribution: string | undefined; timestamp: string; percentage_staked?: undefined; historical_data?: undefined; } | { current_apy: string; total_staked: number; percentage_staked: string; timestamp: string; historical_data: { timestamp: string; apy: number; }[] | undefined; total_emission?: undefined; staker_distribution?: undefined; }>; }; export declare const runCli: () => void;