/** * AINative Cody SDK Extensions * * Adds dual-provider model routing to the Anthropic SDK. * - AINative models (qwen, gemma, deepseek, nouscoder) → api.ainative.studio * - Claude models (sonnet, haiku, opus) → api.anthropic.com (direct) * * Usage tracking is handled by the existing AIUsageTrackingMiddleware * on the backend — no client-side tracking needed. */ /** * Determine if a model is an AINative-hosted model */ export declare function isAINativeModel(model: string): boolean; /** * Determine if a model is a Claude model (routes to Anthropic API) */ export declare function isClaudeModel(model: string): boolean; /** * Get the correct base URL for a given model */ export declare function getBaseURLForModel(model: string, configuredBaseURL?: string): string; /** * Get the correct API key for a given model */ export declare function getApiKeyForModel(model: string): string | null; /** * Wrap fetch to log request metadata (model, provider) for debugging. * Actual usage tracking is handled server-side by AIUsageTrackingMiddleware. */ export declare function createTrackedFetch(innerFetch: (input: any, init?: any) => Promise): (input: any, init?: any) => Promise; //# sourceMappingURL=ainative.d.ts.map