@juspay/neurolink
Version:
Universal AI Development Platform with working MCP integration, multi-provider support, voice (TTS/STT/realtime), and professional CLI. 58+ external MCP servers discoverable, multimodal file processing, RAG pipelines. Build, test, and deploy AI applicatio
34 lines (33 loc) • 1.11 kB
TypeScript
/**
* 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 | undefined;
/**
* 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>;
}>;