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

24 lines (23 loc) • 1.08 kB
/** * Transcribe Routes * * - `POST <basePath>/agent/transcribe` — JSON in (`audio` base64, `audioUrl` * or an allow-listed `audioPath`), `TranscribeResult` out, in the adapters' * usual `{ data, metadata }` envelope. * - `POST /v1/audio/transcriptions` — OpenAI-compatible: `multipart/form-data` * in, OpenAI's `json` / `verbose_json` / `text` out (no envelope), with * NeuroLink's extras on `verbose_json`. * * Both call `neurolink.transcribe()`. Neither accepts credentials: engines use * the server's own configuration. */ import type { RouteGroup, ServerTranscribeRouteOptions } from "../../types/index.js"; /** * Create the transcription routes. * * @param basePath - Prefix of the NeuroLink route (default `/api`). * @param options - `allowedAudioRoots` (default: `audioPath` refused), * `maxAudioBytes` (default 50 MB) and `openaiBasePath` (default `""`, so the * OpenAI-compatible route is `/v1/audio/transcriptions`). */ export declare function createTranscribeRoutes(basePath?: string, options?: ServerTranscribeRouteOptions): RouteGroup;