@juspay/neurolink
Version:
The pipe layer of an AI nervous system: one interface connecting provider neurons to your application, across three inference types — generate, stream and decide. `decide` returns typed, calibrated judgements from a non-generative model (~400ms, ~$0.00002
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;