NeuroClientOptions
Properties
Section titled “Properties”apiKey?
Section titled “apiKey?”optional apiKey?: string;OpenAI API key. Node.js only. Throws in browser environments to
prevent leaking secrets. In the browser use tokenProvider or proxyUrl.
proxyUrl?
Section titled “proxyUrl?”optional proxyUrl?: string;URL of a backend you control that proxies requests to OpenAI. The SDK
POSTs { functionId, prompt, args, instanceData, signatureHint, model }
and expects the LLM result back as JSON.
tokenProvider?
Section titled “tokenProvider?”optional tokenProvider?: TokenProvider;Async function returning a short-lived (ephemeral) API key. Called once
per request; cache + refresh in your implementation as needed.
Browser-safe alternative to apiKey.
model?
Section titled “model?”optional model?: string;Default chat model. Overridable per-call.
baseURL?
Section titled “baseURL?”optional baseURL?: string;Optional custom base URL for OpenAI-compatible endpoints.
temperature?
Section titled “temperature?”optional temperature?: number;Sampling temperature (default 0.2 - deterministic simulation).
maxTokens?
Section titled “maxTokens?”optional maxTokens?: number;Max output tokens (default 1024).
fetchOptions?
Section titled “fetchOptions?”optional fetchOptions?: CustomFetchOptions;Extra fetch options for proxyUrl mode.
dangerouslyAllowBrowser?
Section titled “dangerouslyAllowBrowser?”optional dangerouslyAllowBrowser?: boolean;When true, allows apiKey use in the browser. ⚠️ DANGEROUS.