UNPKG

@juspay/neurolink

Version:

Universal AI Development Platform with working MCP integration, multi-provider support, and professional CLI. Built-in tools operational, 58+ external MCP servers discoverable. Connect to filesystem, GitHub, database operations, and more. Build, test, and

34 lines (33 loc) 1.1 kB
/** * Provider-specific token limit utilities * Provides safe maxTokens values based on provider and model capabilities */ import { PROVIDER_MAX_TOKENS } from "../core/constants.js"; /** * Get the safe maximum tokens for a provider and model */ export declare function getSafeMaxTokens(provider: keyof typeof PROVIDER_MAX_TOKENS | string, model?: string, requestedMaxTokens?: number): number; /** * Validate if maxTokens is safe for a provider/model combination */ export declare function validateMaxTokens(provider: keyof typeof PROVIDER_MAX_TOKENS | string, model?: string, maxTokens?: number): { isValid: boolean; recommendedMaxTokens: number; warning?: string; }; /** * Get provider-specific token limit recommendations */ export declare function getTokenLimitRecommendations(provider: string): { conservative: number; balanced: number; maximum: number; models: Record<string, number>; }; /** * Get all provider limits summary */ export declare function getAllProviderLimits(): Record<string, { default: number; models: Record<string, number>; }>;