@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
20 lines (19 loc) • 718 B
TypeScript
/**
* Replicate Auth Helper
*
* Resolves the Replicate API token + base URL from per-call overrides,
* instance credentials, or env vars. Used by every Replicate-backed
* handler (LLM, video, avatar, music) so the auth chain is centralised.
*
* @module adapters/replicate/auth
*/
import type { ReplicateAuth } from "../../types/index.js";
/**
* Resolve Replicate auth from override → env vars.
*
* Returns `null` when `REPLICATE_API_TOKEN` is missing AND no override is
* provided. Handlers' `isConfigured()` check `auth !== null`.
*
* @param override - per-call or instance-level credentials slice
*/
export declare function getReplicateAuth(override?: Partial<ReplicateAuth>): ReplicateAuth | null;