UNPKG

@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

17 lines (16 loc) • 1.01 kB
/** Recognize an already supplied profile; never prefix it a second time. */ export declare function hasBedrockProfilePrefix(model: string): boolean; /** Remove one known geography only when followed by a shipped model vendor. */ export declare function stripBedrockGeoPrefix(model: string): string | undefined; /** * Metadata lookup identity, never the identity sent to AWS. * * Converse documents foundation-model and inference-profile ARNs: * https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_Converse.html * A foundation-model ARN contains its model id. A system inference-profile ARN * contains the geography-prefixed model id (see CreateInferenceProfile's * cross-region example). Application profiles, provisioned/custom models and * opaque profile IDs do not reveal their model; keep their existing fallback. * Exact rows for the original identifier must be consulted before this helper. */ export declare function bedrockModelIdForLookup(model: string): string | undefined;