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

13 lines (12 loc) • 904 B
import type { DecideBaseURLShape, DecideBaseURLTransform } from "../../types/index.js"; export declare function normalizeBaseURL(raw: string, transforms: readonly DecideBaseURLTransform[]): string; /** Whether a `URL.hostname` is this machine, so a plain-http request to it never leaves it. */ export declare function isLoopbackHost(hostname: string): boolean; /** * Why a parsed base URL may not be used, or undefined: a plain-http URL that * is not loopback would send the bearer key and the decision body in cleartext. * The message names no part of the URL. */ export declare function cleartextBaseURLProblem(url: URL, displayName: string, fix: string): string | undefined; /** Why a normalised base URL fails the shape, or undefined when it passes. */ export declare function baseURLShapeProblem(shape: DecideBaseURLShape, baseURL: string, displayName: string, fix: string): string | undefined;