@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
18 lines (17 loc) • 751 B
TypeScript
/**
* NL-004: Model alias/deprecation resolver.
*
* Resolves model names against an alias configuration map and applies the
* configured action (warn, redirect, or block).
*/
import type { ModelAliasConfig } from "../types/index.js";
/**
* Resolve model aliases/deprecations.
* Checks the model name against the alias map and applies the configured action.
*
* @param model - The requested model name (may be undefined).
* @param config - The alias configuration containing model mappings.
* @returns The resolved model name (original or redirected).
* @throws {NeuroLinkError} When the alias action is "block".
*/
export declare function resolveModel(model: string | undefined, config: ModelAliasConfig | undefined): string | undefined;