@juspay/neurolink 13.8.26 → 13.8.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -271,6 +271,21 @@ export class NvidiaNimProvider extends OpenAIChatCompletionsProvider {
271
271
  errorClass: RateLimitError,
272
272
  message: "NVIDIA NIM rate limit exceeded",
273
273
  },
274
+ {
275
+ // An invalid key now reaches the gateway as HTTP 403
276
+ // {"status":403,"title":"Forbidden","detail":"Authorization failed"},
277
+ // not a 401 (probed live: a well-formed bad key gets this body, a
278
+ // missing header or a malformed JWT still gets a 401). The same body is
279
+ // reported for a valid key whose organization lacks Public API
280
+ // Endpoints access. The text is what identifies it — the structured 403
281
+ // alone does not, and the quota rule below would take a relayed
282
+ // "403 Authorization failed" because that text names status 403. A
283
+ // message that also says "quota" is left for the quota rule.
284
+ match: (ctx) => /authori[sz]ation failed/i.test(ctx.message) &&
285
+ !/quota/i.test(ctx.message),
286
+ errorClass: AuthenticationError,
287
+ message: "NVIDIA NIM rejected the credentials (HTTP 403 Authorization failed). Check the API key at https://build.nvidia.com/settings/api-keys; a valid key is also refused when its organization lacks Public API Endpoints access.",
288
+ },
274
289
  {
275
290
  // NIM answers most of its roster with a 404 whose text ("Function …
276
291
  // not found for account …") names no model, so the status decides.
@@ -281,6 +296,10 @@ export class NvidiaNimProvider extends OpenAIChatCompletionsProvider {
281
296
  message: () => `NVIDIA NIM model '${this.modelName}' not available. Browse the catalog at https://build.nvidia.com/models`,
282
297
  },
283
298
  {
299
+ // NVIDIA's throttle is a 429 {"status":429,"title":"Too Many Requests"}
300
+ // (46 of 70 concurrent probes, no Retry-After); no source seen sends a
301
+ // quota stop as a 403. This rule keeps the older text-keyed behaviour
302
+ // for a relay that names the quota or a 403 in its message.
284
303
  match: (ctx) => /quota/.test(ctx.message) || messageNamesStatus(ctx.message, 403),
285
304
  errorClass: ProviderError,
286
305
  message: "NVIDIA NIM quota exceeded for your account",
@@ -14,12 +14,16 @@
14
14
  * tgp_ (Together), fw_ (Fireworks), pplx- (Perplexity), pa- (Voyage),
15
15
  * jina_ (Jina), fish- (Fish Audio)
16
16
  * - Generic key=value pairs: api_key=…, access_token: …, secret_key=…
17
+ * - Bare JWTs (`eyJ…` header, payload and signature)
18
+ * - Values of any key ending in `token`: breezeToken=…, "id_token": "…"
17
19
  */
18
20
  /**
19
- * Whether `key` names a value that must never appear in a log — the same list
20
- * {@link sanitizeRecord} masks, matched case-insensitively.
21
+ * Whether `key` names a value that must never appear in a log: a key on the
22
+ * list above, matched case-insensitively, or any key ending in `token`
23
+ * (`breezeToken`, `id_token`) unless its value is a number or boolean
24
+ * (`costPerToken`, `hasRefreshToken`).
21
25
  */
22
- export declare function isSensitiveLogKey(key: string): boolean;
26
+ export declare function isSensitiveLogKey(key: string, value?: unknown): boolean;
23
27
  /**
24
28
  * Truncate `text` to `maxLen` chars then replace embedded secrets with `***`.
25
29
  *
@@ -14,6 +14,8 @@
14
14
  * tgp_ (Together), fw_ (Fireworks), pplx- (Perplexity), pa- (Voyage),
15
15
  * jina_ (Jina), fish- (Fish Audio)
16
16
  * - Generic key=value pairs: api_key=…, access_token: …, secret_key=…
17
+ * - Bare JWTs (`eyJ…` header, payload and signature)
18
+ * - Values of any key ending in `token`: breezeToken=…, "id_token": "…"
17
19
  */
18
20
  import { createHash } from "crypto";
19
21
  import { basename, resolve as resolvePath } from "path";
@@ -47,7 +49,15 @@ const SECRET_PATTERN = new RegExp(
47
49
  // Bare tokens by known prefix (e.g. `sk-abc…`, `r8_xyz…`)
48
50
  `|\\b(?:${PREFIX_PATTERN})[_\\-][A-Za-z0-9_\\-\\.]{8,}\\b` +
49
51
  // Generic key=value pairs (URL params, JSON bodies, header dumps)
50
- "|\\b(?:api[_-]?key|access[_-]?token|secret[_-]?key|refresh[_-]?token)['\"]?\\s*[:=]\\s*['\"]?[^\\s,;'\"&]+", "gi");
52
+ "|\\b(?:api[_-]?key|access[_-]?token|secret[_-]?key|refresh[_-]?token)['\"]?\\s*[:=]\\s*['\"]?[^\\s,;'\"&]+" +
53
+ // JWTs — the signature segment is empty on an unsigned token. A match
54
+ // starts only where a run of token characters starts, so `eyJ-eyJ-…`
55
+ // is scanned once rather than once per `eyJ`.
56
+ "|(?<![A-Za-z0-9_\\-])eyJ[A-Za-z0-9_\\-]{8,}\\.[A-Za-z0-9_\\-]+\\.[A-Za-z0-9_\\-]*" +
57
+ // Any other key ending in `token` (`breezeToken=…`, `"id_token":"…"`),
58
+ // as isSensitiveLogKey masks object keys: the key is kept, and a value
59
+ // that is a number, boolean or null is left alone
60
+ "|\\b([A-Za-z0-9_]*token['\"]?\\s*[:=]\\s*)(?:(['\"])[^'\"]*|(?!(?:true|false|null|-?\\d+(?:\\.\\d+)?(?:e[+-]?\\d+)?)(?![^\\s,;'\"&}\\])]))[^\\s,;'\"&}\\])]+)", "gi");
51
61
  /** Header names that should always be redacted regardless of value shape. */
52
62
  const SENSITIVE_HEADER_NAMES = [
53
63
  "authorization",
@@ -84,14 +94,22 @@ const SENSITIVE_OBJECT_KEYS = [
84
94
  "secretAccessKey",
85
95
  // PII, not a secret — but it has no business in debug log dumps.
86
96
  "userEmail",
97
+ "phoneNumber",
87
98
  ];
88
99
  /**
89
- * Whether `key` names a value that must never appear in a log — the same list
90
- * {@link sanitizeRecord} masks, matched case-insensitively.
100
+ * Whether `key` names a value that must never appear in a log: a key on the
101
+ * list above, matched case-insensitively, or any key ending in `token`
102
+ * (`breezeToken`, `id_token`) unless its value is a number or boolean
103
+ * (`costPerToken`, `hasRefreshToken`).
91
104
  */
92
- export function isSensitiveLogKey(key) {
105
+ export function isSensitiveLogKey(key, value) {
93
106
  const lower = key.toLowerCase();
94
- return SENSITIVE_OBJECT_KEYS.some((name) => name.toLowerCase() === lower);
107
+ if (SENSITIVE_OBJECT_KEYS.some((name) => name.toLowerCase() === lower)) {
108
+ return true;
109
+ }
110
+ return (lower.endsWith("token") &&
111
+ typeof value !== "number" &&
112
+ typeof value !== "boolean");
95
113
  }
96
114
  /**
97
115
  * Truncate `text` to `maxLen` chars then replace embedded secrets with `***`.
@@ -107,7 +125,9 @@ export function sanitizeForLog(text, maxLen = 500) {
107
125
  if (!text) {
108
126
  return text;
109
127
  }
110
- return text.slice(0, maxLen).replace(SECRET_PATTERN, "***");
128
+ return text
129
+ .slice(0, maxLen)
130
+ .replace(SECRET_PATTERN, (_match, key, quote) => key === undefined ? "***" : `${key}${quote ?? ""}***`);
111
131
  }
112
132
  /**
113
133
  * Stringify non-string message/tool content without ever throwing.
@@ -530,12 +550,7 @@ export function sanitizeRecord(value, maxStringLen = 1000) {
530
550
  }
531
551
  const out = {};
532
552
  for (const [k, val] of Object.entries(v)) {
533
- if (SENSITIVE_OBJECT_KEYS.some((name) => name.toLowerCase() === k.toLowerCase())) {
534
- out[k] = "***";
535
- }
536
- else {
537
- out[k] = walk(val);
538
- }
553
+ out[k] = isSensitiveLogKey(k, val) ? "***" : walk(val);
539
554
  }
540
555
  return out;
541
556
  };
@@ -14,7 +14,7 @@
14
14
  * - Tabular data display
15
15
  */
16
16
  import { AsyncLocalStorage } from "node:async_hooks";
17
- import { isSensitiveLogKey, sanitizeForLog, sanitizeRecord, } from "./logSanitize.js";
17
+ import { isSensitiveLogKey, sanitizeForLog } from "./logSanitize.js";
18
18
  /**
19
19
  * Identifies which NeuroLink instance is emitting, for the async operation
20
20
  * currently on the stack. Populated by `runInInstanceScope()` — which the SDK
@@ -92,8 +92,6 @@ function cloneLogData(data) {
92
92
  * logger's "zero truncation" promise for debug data stands.
93
93
  */
94
94
  const REDACTION_STRING_CAP = 1_000_000;
95
- /** Depth past which a payload is handed to `sanitizeRecord` wholesale. */
96
- const REDACTION_MAX_DEPTH = 32;
97
95
  function isPlainObject(value) {
98
96
  const proto = Object.getPrototypeOf(value);
99
97
  return proto === Object.prototype || proto === null;
@@ -105,17 +103,21 @@ function isPlainObject(value) {
105
103
  * `sanitizeRecord` itself is not used directly on the whole payload because
106
104
  * its `Object.entries` walk flattens what debug data is full of: an `Error`
107
105
  * becomes `{}` (message and stack gone), a `Buffer` becomes thousands of
108
- * numeric keys, a `Date`/`Map`/`Set` becomes `{}`. Those are left as they are
109
- * — `serializeData` and `structuredClone` already know how to carry them —
110
- * and only plain containers are walked, with sensitive keys masked and
111
- * string values scrubbed of bearer tokens and known key prefixes. An `Error`
112
- * gets its message scrubbed in place of the instance.
106
+ * numeric keys, a `Date`/`Map`/`Set` becomes `{}`. Here binary data, dates
107
+ * and regexps are kept as they are, a `Map` or `Set` is copied with its
108
+ * entries redacted, and any other object is reduced to what `JSON.stringify`
109
+ * prints for it (its `toJSON()` result or its own fields) — the same fields
110
+ * the console and a `structuredClone` for a sink would expose. Sensitive keys
111
+ * are masked, strings scrubbed of bearer tokens and known key prefixes, an
112
+ * object reached by several paths is redacted once and its copy shared, a
113
+ * cycle becomes `"[Circular]"`, and an `Error` gets its message scrubbed in
114
+ * place of the instance.
113
115
  *
114
- * Cost: one recursive pass over objects a call site already chose to log,
115
- * and only when `shouldLog(level)` was true. Nothing runs for the 99% of
116
- * `logger.debug` calls that are filtered out.
116
+ * Cost: one pass over the objects a call site already chose to log, each
117
+ * redacted once, and only when `shouldLog(level)` was true. Nothing runs for
118
+ * the 99% of `logger.debug` calls that are filtered out.
117
119
  */
118
- function redactLogData(data, depth = 0) {
120
+ function redactLogData(data, redacted = new Map()) {
119
121
  if (data === null || data === undefined) {
120
122
  return data;
121
123
  }
@@ -133,19 +135,47 @@ function redactLogData(data, depth = 0) {
133
135
  : undefined;
134
136
  return copy;
135
137
  }
136
- if (depth >= REDACTION_MAX_DEPTH) {
137
- return sanitizeRecord(data, REDACTION_STRING_CAP);
138
- }
139
- if (Array.isArray(data)) {
140
- return data.map((item) => redactLogData(item, depth + 1));
141
- }
142
- if (!isPlainObject(data)) {
143
- // Buffer, Date, Map, Set, class instances: carried as they are.
138
+ if (ArrayBuffer.isView(data) ||
139
+ data instanceof ArrayBuffer ||
140
+ data instanceof Date ||
141
+ data instanceof RegExp) {
144
142
  return data;
145
143
  }
144
+ if (redacted.has(data)) {
145
+ return redacted.get(data);
146
+ }
147
+ // Until this object's copy is built, a reference back to it is a cycle.
148
+ redacted.set(data, "[Circular]");
149
+ const copy = redactContainer(data, (value) => redactLogData(value, redacted));
150
+ redacted.set(data, copy);
151
+ return copy;
152
+ }
153
+ /** One level of {@link redactLogData}, for an object it has not seen yet. */
154
+ function redactContainer(data, walk) {
155
+ if (Array.isArray(data)) {
156
+ return data.map(walk);
157
+ }
158
+ if (data instanceof Map) {
159
+ return new Map(Array.from(data, ([key, value]) => [
160
+ key,
161
+ typeof key === "string" && isSensitiveLogKey(key, value)
162
+ ? "***"
163
+ : walk(value),
164
+ ]));
165
+ }
166
+ if (data instanceof Set) {
167
+ return new Set(Array.from(data, walk));
168
+ }
169
+ if (!isPlainObject(data) &&
170
+ "toJSON" in data &&
171
+ typeof data.toJSON === "function") {
172
+ const json = data.toJSON();
173
+ return walk(json);
174
+ }
175
+ const entries = Object.entries(data);
146
176
  const out = {};
147
- for (const [key, value] of Object.entries(data)) {
148
- out[key] = isSensitiveLogKey(key) ? "***" : redactLogData(value, depth + 1);
177
+ for (const [key, value] of entries) {
178
+ out[key] = isSensitiveLogKey(key, value) ? "***" : walk(value);
149
179
  }
150
180
  return out;
151
181
  }
@@ -443,18 +473,33 @@ class NeuroLinkLogger {
443
473
  * @param message - The message text to log
444
474
  * @param data - Optional additional context data to include
445
475
  */
446
- log(level, message, rawData) {
476
+ log(level, rawMessage, rawData) {
447
477
  if (!this.shouldLog(level)) {
448
478
  return;
449
479
  }
450
480
  // Central redaction: a `debug`/`info` payload is masked by key
451
- // (`apiKey`, `authorization`, `credentials`, …) and scrubbed of
452
- // bearer/known-prefix tokens before it is stored, emitted or printed, so
453
- // the next `logger.debug("…", options)` cannot leak a credential into
454
- // `getLogs()`, a `log-event` sink or the console. `warn`/`error` are
455
- // left verbatim: they carry the diagnostics an operator is debugging
456
- // with, and every credential-bearing path already redacts at source.
457
- const data = level === "debug" || level === "info" ? redactLogData(rawData) : rawData;
481
+ // (`apiKey`, `authorization`, `credentials`, …), and it and the message
482
+ // are scrubbed of bearer/known-prefix tokens and JWTs before they are
483
+ // stored, emitted or printed, so the next `logger.debug("…", options)`
484
+ // cannot leak a credential into `getLogs()`, a `log-event` sink or the
485
+ // console. `warn`/`error` are left verbatim: they carry the diagnostics
486
+ // an operator is debugging with, and every credential-bearing path
487
+ // already redacts at source.
488
+ const redact = level === "debug" || level === "info";
489
+ const message = redact
490
+ ? sanitizeForLog(rawMessage, REDACTION_STRING_CAP)
491
+ : rawMessage;
492
+ let data = rawData;
493
+ if (redact) {
494
+ try {
495
+ data = redactLogData(rawData);
496
+ }
497
+ catch {
498
+ // Too deep (a stack overflow) or a throwing getter: drop the payload
499
+ // rather than log it unredacted or throw into the caller.
500
+ data = "[unredactable log data]";
501
+ }
502
+ }
458
503
  const entry = {
459
504
  level,
460
505
  message,
@@ -649,14 +694,17 @@ const neuroLinkLogger = new NeuroLinkLogger();
649
694
  * @param args - Array of arguments passed to the logger
650
695
  * @param logMethod - Function that will perform the actual logging
651
696
  */
652
- function processLoggerArgs(args, logMethod) {
697
+ function processLoggerArgs(args, logMethod, redact = false) {
653
698
  if (args.length === 0) {
654
699
  return;
655
700
  }
656
- // Serialize the first argument robustly to handle complex objects
701
+ // Serialize the first argument robustly to handle complex objects. An
702
+ // object is masked by key first: once it is a string, keys can't be found.
657
703
  const message = (() => {
658
704
  try {
659
- return typeof args[0] === "string" ? args[0] : JSON.stringify(args[0]);
705
+ return typeof args[0] === "string"
706
+ ? args[0]
707
+ : JSON.stringify(redact ? redactLogData(args[0]) : args[0]);
660
708
  }
661
709
  catch {
662
710
  return "[Unserializable Object]";
@@ -679,12 +727,12 @@ function processLoggerArgs(args, logMethod) {
679
727
  export const logger = {
680
728
  debug: (...args) => {
681
729
  if (neuroLinkLogger.shouldLog("debug")) {
682
- processLoggerArgs(args, (message, data) => neuroLinkLogger.debug(message, data));
730
+ processLoggerArgs(args, (message, data) => neuroLinkLogger.debug(message, data), true);
683
731
  }
684
732
  },
685
733
  info: (...args) => {
686
734
  if (neuroLinkLogger.shouldLog("info")) {
687
- processLoggerArgs(args, (message, data) => neuroLinkLogger.info(message, data));
735
+ processLoggerArgs(args, (message, data) => neuroLinkLogger.info(message, data), true);
688
736
  }
689
737
  },
690
738
  warn: (...args) => {
@@ -6070,38 +6070,39 @@
6070
6070
  {"objectID":"1637c68ac1e9cbfce5f16fd46aaa8835701c2f1430482c8fa9910e486a7bb625","title":"Verification status","url":"/docs/getting-started/providers/novita#verification-status","content":"Tier-2 onboarding requires evidence before a provider is accepted, and\npnpm run verify:provider-onboarding gates it in CI. This is what the\ncatalog records for Novita AI:\n\n| Probe | Result |\n| --------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |\n| Roster | authenticated GET /openai/v1/models, HTTP 200, 2026-09-05 |\n| Auth rejection | HTTP 401 (FAILED_TO_AUTH), 2026-09-05 |\n| Live capability sweep | 2026-09-05, probed against the default model. Chat, streaming, and a real structured tool call all passed. response_format: json_object succeeded both alone and combined with tools in the same request — confirmed at the SDK level, which is why structuredOutputWithTools is true for this provider, unlike Friendli or Morph. |","hierarchy":{"lvl0":"Getting Started","lvl1":"Novita AI Provider Guide","lvl2":"Verification status","lvl3":""}},
6071
6071
  {"objectID":"a28a46f2a803a788421fbf99c39dcb97d33871e99a7dc45807a98ddce3e15589","title":"Troubleshooting","url":"/docs/getting-started/providers/novita#troubleshooting","content":"| Symptom | Cause | Fix |\n| ----------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- |\n| FAILED_TO_AUTH | NOVITA_API_KEY unset, wrong, or not sk_-prefixed | Rotate the key at https://novita.ai/settings/key-management |\n| MODEL_NOT_FOUND | The roster changed since 2026-09-05 | Pick a current id from https://novita.ai/models or the authenticated /openai/v1/models roster |\n| Truncated or empty content on the default model | zai-org/glm-5.3-flash is a reasoning model and the catalog default max output is only 4,096 tokens | Raise maxTokens for longer or reasoning-heavy completions |","hierarchy":{"lvl0":"Getting Started","lvl1":"Novita AI Provider Guide","lvl2":"Troubleshooting","lvl3":""}},
6072
6072
  {"objectID":"7ce1eb2bda1d99489069643ba7316d9d1e893babf249024cf111547fbe952f66","title":"See also","url":"/docs/getting-started/providers/novita#see-also","content":"Provider setup overview\nAll providers\nTier-2 onboarding\nProvider feature compatibility","hierarchy":{"lvl0":"Getting Started","lvl1":"Novita AI Provider Guide","lvl2":"See also","lvl3":""}},
6073
- {"objectID":"c4d6bc20fbe9d189291d36b241fffab77fac1dcbe5ff66e1df5248840997c55d","title":"NVIDIA NIM Provider Guide","url":"/docs/getting-started/providers/nvidia-nim","content":"NVIDIA NIM Provider Guide\n\nHundreds of optimised AI models on NVIDIA's GPU-accelerated inference platform — or your own self-hosted NIM deployment\n\nOverview\n\nNVIDIA NIM (NVIDIA Inference Microservices) is a managed inference platform that hosts a large catalog of open-weight models — Meta Llama, DeepSeek, Mistral, Microsoft Phi, Google Gemma, and more — all GPU-optimised and served through an OpenAI-compatible API. You can also point NeuroLink at a self-hosted NIM cluster by overriding the base URL.\n\nKey Facts\nHosted base URL: https://integrate.api.nvidia.com/v1\nProtocol: OpenAI-compatible (/v1/chat/completions)\nVision: Yes, on supported models (Llama 3.2 Vision, etc.)\nReasoning: Yes, on Nemotron and DeepSeek-R1 variants\nStreaming: Supported\nTool calling: Supported on most models\nSelf-hosting: Override NVIDIA_NIM_BASE_URL to point at a private NIM cluster\n\nNIM-Specific Extras\n\nNIM supports additional generation parameters beyond the standard OpenAI surface: top_k, min_p, repetition_penalty, min_tokens, and per-model chat_template overrides. The NeuroLink provider automatically passes these via the providerOptions.openai.body mechanism. If a model rejects an unsupported parameter with HTTP 400, the provider retries the request with that parameter stripped.\n\nQuick Start\nGet an API Key\n\nSign up at https://build.nvidia.com and create an API key under API Keys.\nConfigure Environment\n\nAdd to your .env file:\nInstall NeuroLink\nGenerate Your First Response\n\nSupported Models\n\nNIM hosts hundreds of models. NeuroLink ships with these popular models pre-enumerated:\n\nOpenAI gpt-oss (default)\n\n| Model ID | Context | Vision | Reasoning |\n| -------------------- | ------- | ------ | --------- |\n| openai/gpt-oss-20b | 128K | No | No |\n\nMeta Llama\n\n| Model ID | Context | Vision | Reasoning |\n| ------------------------------------ | ------- | ------ | --------- |\n| meta/llama-3.3-70b-instruct | 128K | No | No |\n| meta/llama-3.1-405b-instruct | 128K | No | No |\n| meta/llama-3.1-70b-instruct | 128K | No | No |\n| meta/llama-3.2-90b-vision-instruct | 128K | Yes | No |\n| meta/llama-3.2-11b-vision-instruct | 128K | Yes | No |\n\nNVIDIA Nemotron (Reasoning)\n\n| Model ID | Context | Vision | Reasoning |\n| ---------------------------------------- | ------- | ------ | --------- |\n| nvidia/llama-3.3-nemotron-super-49b-v1 | 128K | No | Yes |\n| nvidia/llama-3.1-nemotron-nano-8b-v1 | 128K | No | Yes |\n| nvidia/llama-3.1-nemotron-70b-instruct | 128K | No | Yes |\n\nDeepSeek (Hosted on NIM)\n\n| Model ID | Context | Vision | Reasoning |\n| ------------------------------------------- | ------- | ------ | --------- |\n| deepseek-ai/deepseek-r1 | 128K | No | Yes |\n| deepseek-ai/deepseek-r1-distill-llama-70b | 128K | No | Yes |\n\nOther Models\n\n| Model ID | Context | Notes |\n| --------------------------------------- | ------- | ---------------- |\n| mistralai/mixtral-8x22b-instruct-v0.1 | 64K | Large MoE |\n| mistralai/mixtral-8x7b-instruct-v0.1 | 32K | Efficient MoE |\n| microsoft/phi-4 | 16K | Compact, capable |\n| google/gemma-3-27b-it | 128K | Google Gemma |\n\nAvailability, checked 2026-10-24. NVIDIA's GET https://integrate.api.nvidia.com/v1/models lists openai/gpt-oss-20b, meta/llama-3.2-90b-vision-instruct, meta/llama-3.2-11b-vision-instruct and nvidia/llama-3.1-nemotron-70b-instruct from the tables above, and none of the others. A chat request to meta/llama-3.3-70b-instruct or meta/llama-3.1-70b-instruct answers HTTP 410, \"has reached its end of life on 2026-08-26T09:00:00Z and is no longer available\"; nvidia/llama-3.3-nemotron-super-49b-v1 and mistralai/mixtral-8x22b-instruct-v0.1 also answer 410, and deepseek-ai/deepseek-r1 and meta/llama-3.1-405b-instruct answer 404. nvidia/llama-3.1-nemotron-70b-instruct is listed but answered 404 (\"not found for account\") to the key used for the check. openai/gpt-oss-20b and meta/llama-3.2-11b-vision-instruct each answered a plain request and a tool-calling request. The NvidiaNimModels enum keeps the retired members so existing code compiles.\n\nBrowse the full catalog at https://build.nvidia.com/models. You can pass any model ID via --model or model: — NIM returns 404 for IDs that are not in the catalog.\n\nSDK Usage\n\nBasic Generation\n\nUsing a Specific Model\n\nReasoning with thinkingLevel\n\nReasoning-capable models (Nemotron, DeepSeek-R1) accept a thinking flag via NIM's chat_template_kwargs. Pass thinkingLevel to activate it:\n\nLevels: minimal (no thinking) | low | medium | high\n\nIf the model does not support chat_template_kwargs.thinking, the provider automatically retries without it.\n\nStreaming\n\nPer-Call Credential Override\n","hierarchy":{"lvl0":"Getting Started","lvl1":"NVIDIA NIM Provider Guide","lvl2":"","lvl3":""}},
6073
+ {"objectID":"c4d6bc20fbe9d189291d36b241fffab77fac1dcbe5ff66e1df5248840997c55d","title":"NVIDIA NIM Provider Guide","url":"/docs/getting-started/providers/nvidia-nim","content":"NVIDIA NIM Provider Guide\n\nHundreds of optimised AI models on NVIDIA's GPU-accelerated inference platform — or your own self-hosted NIM deployment\n\nOverview\n\nNVIDIA NIM (NVIDIA Inference Microservices) is a managed inference platform that hosts a large catalog of open-weight models — Meta Llama, DeepSeek, Mistral, Microsoft Phi, Google Gemma, and more — all GPU-optimised and served through an OpenAI-compatible API. You can also point NeuroLink at a self-hosted NIM cluster by overriding the base URL.\n\nKey Facts\nHosted base URL: https://integrate.api.nvidia.com/v1\nProtocol: OpenAI-compatible (/v1/chat/completions)\nVision: Yes, on supported models (Llama 3.2 Vision, etc.)\nReasoning: Yes, model-dependent. The default openai/gpt-oss-20b is a reasoning model and returns its reasoning trace on every request; see Reasoning and thinkingLevel for what NeuroLink's thinkingLevel does on NIM\nStreaming: Supported\nTool calling: Supported on most models\nSelf-hosting: Override NVIDIA_NIM_BASE_URL to point at a private NIM cluster\n\nNIM-Specific Extras\n\nNIM supports additional generation parameters beyond the standard OpenAI surface: top_k, min_p, repetition_penalty, min_tokens, and per-model chat_template overrides. The NeuroLink provider automatically passes these via the providerOptions.openai.body mechanism. If a model rejects an unsupported parameter with HTTP 400, the provider retries the request with that parameter stripped.\n\nQuick Start\nGet an API Key\n\nSign up at https://build.nvidia.com and create an API key under API Keys.\nConfigure Environment\n\nAdd to your .env file:\nInstall NeuroLink\nGenerate Your First Response\n\nSupported Models\n\nNIM hosts hundreds of models. NeuroLink ships with these popular models pre-enumerated:\n\nOpenAI gpt-oss (default)\n\n| Model ID | Context | Vision | Reasoning |\n| -------------------- | ------- | ------ | --------- |\n| openai/gpt-oss-20b | 128K | No | Yes |\n\nopenai/gpt-oss-20b always reasons: the trace comes back as reasoning_content whether or not you pass a thinking option, and it counts against maxTokens. See Reasoning and thinkingLevel.\n\nMeta Llama\n\n| Model ID | Context | Vision | Reasoning |\n| ------------------------------------ | ------- | ------ | --------- |\n| meta/llama-3.3-70b-instruct | 128K | No | No |\n| meta/llama-3.1-405b-instruct | 128K | No | No |\n| meta/llama-3.1-70b-instruct | 128K | No | No |\n| meta/llama-3.2-90b-vision-instruct | 128K | Yes | No |\n| meta/llama-3.2-11b-vision-instruct | 128K | Yes | No |\n\nNVIDIA Nemotron (Reasoning)\n\n| Model ID | Context | Vision | Reasoning |\n| ---------------------------------------- | ------- | ------ | --------- |\n| nvidia/llama-3.3-nemotron-super-49b-v1 | 128K | No | Yes |\n| nvidia/llama-3.1-nemotron-nano-8b-v1 | 128K | No | Yes |\n| nvidia/llama-3.1-nemotron-70b-instruct | 128K | No | Yes |\n\nDeepSeek (Hosted on NIM)\n\n| Model ID | Context | Vision | Reasoning |\n| ------------------------------------------- | ------- | ------ | --------- |\n| deepseek-ai/deepseek-r1 | 128K | No | Yes |\n| deepseek-ai/deepseek-r1-distill-llama-70b | 128K | No | Yes |\n\nOther Models\n\n| Model ID | Context | Notes |\n| --------------------------------------- | ------- | ---------------- |\n| mistralai/mixtral-8x22b-instruct-v0.1 | 64K | Large MoE |\n| mistralai/mixtral-8x7b-instruct-v0.1 | 32K | Efficient MoE |\n| microsoft/phi-4 | 16K | Compact, capable |\n| google/gemma-3-27b-it | 128K | Google Gemma |\n\nAvailability, checked 2026-10-24. NVIDIA's GET https://integrate.api.nvidia.com/v1/models lists openai/gpt-oss-20b, meta/llama-3.2-90b-vision-instruct, meta/llama-3.2-11b-vision-instruct and nvidia/llama-3.1-nemotron-70b-instruct from the tables above, and none of the others. A chat request to meta/llama-3.3-70b-instruct or meta/llama-3.1-70b-instruct answers HTTP 410, \"has reached its end of life on 2026-08-26T09:00:00Z and is no longer available\"; nvidia/llama-3.3-nemotron-super-49b-v1 and mistralai/mixtral-8x22b-instruct-v0.1 also answer 410, and deepseek-ai/deepseek-r1 and meta/llama-3.1-405b-instruct answer 404. nvidia/llama-3.1-nemotron-70b-instruct is listed but answered 404 (\"not found for account\") to the key used for the check. openai/gpt-oss-20b and meta/llama-3.2-11b-vision-instruct each answered a plain request and a tool-calling request. The NvidiaNimModels enum keeps the retired members so existing code compiles.\n\nBrowse the full catalog at https://build.nvidia.com/models. You can pass any model ID via --model or model: — NIM returns 404 for IDs that are not in the catalog.\n\nSDK Usage\n\nBasic Generation\n\nUsing a Specific Model\n\nReasoning and thinkingLe","hierarchy":{"lvl0":"Getting Started","lvl1":"NVIDIA NIM Provider Guide","lvl2":"","lvl3":""}},
6074
6074
  {"objectID":"b3c7e6b9de265c001fb3ea1118f2467719f7d5d7b47d0d1219803161adaa97f3","title":"NVIDIA NIM Provider Guide","url":"/docs/getting-started/providers/nvidia-nim#nvidia-nim-provider-guide","content":"Hundreds of optimised AI models on NVIDIA's GPU-accelerated inference platform — or your own self-hosted NIM deployment","hierarchy":{"lvl0":"Getting Started","lvl1":"NVIDIA NIM Provider Guide","lvl2":"NVIDIA NIM Provider Guide","lvl3":""}},
6075
6075
  {"objectID":"bdd47b6d8dc71c8c6e099e6aaf6d4b1322ee018e437203f0f8213316ead4bc6a","title":"Overview","url":"/docs/getting-started/providers/nvidia-nim#overview","content":"NVIDIA NIM (NVIDIA Inference Microservices) is a managed inference platform that hosts a large catalog of open-weight models — Meta Llama, DeepSeek, Mistral, Microsoft Phi, Google Gemma, and more — all GPU-optimised and served through an OpenAI-compatible API. You can also point NeuroLink at a self-hosted NIM cluster by overriding the base URL.","hierarchy":{"lvl0":"Getting Started","lvl1":"NVIDIA NIM Provider Guide","lvl2":"Overview","lvl3":""}},
6076
- {"objectID":"70e960324b4417bd885aed19e36a44abbedba28c263ff2bf2e6024c995e0915d","title":"Key Facts","url":"/docs/getting-started/providers/nvidia-nim#key-facts","content":"Hosted base URL: https://integrate.api.nvidia.com/v1\nProtocol: OpenAI-compatible (/v1/chat/completions)\nVision: Yes, on supported models (Llama 3.2 Vision, etc.)\nReasoning: Yes, on Nemotron and DeepSeek-R1 variants\nStreaming: Supported\nTool calling: Supported on most models\nSelf-hosting: Override NVIDIA_NIM_BASE_URL to point at a private NIM cluster","hierarchy":{"lvl0":"Getting Started","lvl1":"NVIDIA NIM Provider Guide","lvl2":"Key Facts","lvl3":""}},
6076
+ {"objectID":"70e960324b4417bd885aed19e36a44abbedba28c263ff2bf2e6024c995e0915d","title":"Key Facts","url":"/docs/getting-started/providers/nvidia-nim#key-facts","content":"Hosted base URL: https://integrate.api.nvidia.com/v1\nProtocol: OpenAI-compatible (/v1/chat/completions)\nVision: Yes, on supported models (Llama 3.2 Vision, etc.)\nReasoning: Yes, model-dependent. The default openai/gpt-oss-20b is a reasoning model and returns its reasoning trace on every request; see Reasoning and thinkingLevel for what NeuroLink's thinkingLevel does on NIM\nStreaming: Supported\nTool calling: Supported on most models\nSelf-hosting: Override NVIDIA_NIM_BASE_URL to point at a private NIM cluster","hierarchy":{"lvl0":"Getting Started","lvl1":"NVIDIA NIM Provider Guide","lvl2":"Key Facts","lvl3":""}},
6077
6077
  {"objectID":"860037d845fb773d576b210f8e07db8dde7dc48c953dbb477391f5d02325035a","title":"NIM-Specific Extras","url":"/docs/getting-started/providers/nvidia-nim#nim-specific-extras","content":"NIM supports additional generation parameters beyond the standard OpenAI surface: top_k, min_p, repetition_penalty, min_tokens, and per-model chat_template overrides. The NeuroLink provider automatically passes these via the providerOptions.openai.body mechanism. If a model rejects an unsupported parameter with HTTP 400, the provider retries the request with that parameter stripped.","hierarchy":{"lvl0":"Getting Started","lvl1":"NVIDIA NIM Provider Guide","lvl2":"NIM-Specific Extras","lvl3":""}},
6078
6078
  {"objectID":"fef841a51c5f7d0ab1473cf9655493c106b37a29d1c362b0bf6a1f309fbfeada","title":"1. Get an API Key","url":"/docs/getting-started/providers/nvidia-nim#1-get-an-api-key","content":"Sign up at https://build.nvidia.com and create an API key under API Keys.","hierarchy":{"lvl0":"Getting Started","lvl1":"NVIDIA NIM Provider Guide","lvl2":"1. Get an API Key","lvl3":""}},
6079
6079
  {"objectID":"54f576f3812e2af49eeaac655066e1c3b52337b017abcb2e7ba56befc2f8b075","title":"2. Configure Environment","url":"/docs/getting-started/providers/nvidia-nim#2-configure-environment","content":"Add to your .env file:","hierarchy":{"lvl0":"Getting Started","lvl1":"NVIDIA NIM Provider Guide","lvl2":"2. Configure Environment","lvl3":""}},
6080
6080
  {"objectID":"2c10c41d2143a2e957aca12ab30393841715f915cb586f80c76ceb54ca1f5dd5","title":"3. Install NeuroLink","url":"/docs/getting-started/providers/nvidia-nim#3-install-neurolink","content":"3. Install NeuroLink","hierarchy":{"lvl0":"Getting Started","lvl1":"NVIDIA NIM Provider Guide","lvl2":"3. Install NeuroLink","lvl3":""}},
6081
6081
  {"objectID":"e0e98cfd631a6e3d14b2182db92727e47e120e74573b05b2e3f2ea33a7896a04","title":"4. Generate Your First Response","url":"/docs/getting-started/providers/nvidia-nim#4-generate-your-first-response","content":"4. Generate Your First Response","hierarchy":{"lvl0":"Getting Started","lvl1":"NVIDIA NIM Provider Guide","lvl2":"4. Generate Your First Response","lvl3":""}},
6082
6082
  {"objectID":"bc1d7b9f9cd1f0093bceb3e9322d3a8907621c41375b95d6991236ad35217786","title":"Supported Models","url":"/docs/getting-started/providers/nvidia-nim#supported-models","content":"NIM hosts hundreds of models. NeuroLink ships with these popular models pre-enumerated:","hierarchy":{"lvl0":"Getting Started","lvl1":"NVIDIA NIM Provider Guide","lvl2":"Supported Models","lvl3":""}},
6083
- {"objectID":"e0e7cb23f65e12d5e482c0dc5315010163c449defc6476af5e56bec0f2c67400","title":"OpenAI gpt-oss (default)","url":"/docs/getting-started/providers/nvidia-nim#openai-gpt-oss-default","content":"| Model ID | Context | Vision | Reasoning |\n| -------------------- | ------- | ------ | --------- |\n| openai/gpt-oss-20b | 128K | No | No |","hierarchy":{"lvl0":"Getting Started","lvl1":"NVIDIA NIM Provider Guide","lvl2":"OpenAI gpt-oss (default)","lvl3":""}},
6083
+ {"objectID":"e0e7cb23f65e12d5e482c0dc5315010163c449defc6476af5e56bec0f2c67400","title":"OpenAI gpt-oss (default)","url":"/docs/getting-started/providers/nvidia-nim#openai-gpt-oss-default","content":"| Model ID | Context | Vision | Reasoning |\n| -------------------- | ------- | ------ | --------- |\n| openai/gpt-oss-20b | 128K | No | Yes |\n\nopenai/gpt-oss-20b always reasons: the trace comes back as reasoning_content whether or not you pass a thinking option, and it counts against maxTokens. See Reasoning and thinkingLevel.","hierarchy":{"lvl0":"Getting Started","lvl1":"NVIDIA NIM Provider Guide","lvl2":"OpenAI gpt-oss (default)","lvl3":""}},
6084
6084
  {"objectID":"041d61fa62afb3ac253f977f945401de38379d0f20f40075103a0fa368137747","title":"Meta Llama","url":"/docs/getting-started/providers/nvidia-nim#meta-llama","content":"| Model ID | Context | Vision | Reasoning |\n| ------------------------------------ | ------- | ------ | --------- |\n| meta/llama-3.3-70b-instruct | 128K | No | No |\n| meta/llama-3.1-405b-instruct | 128K | No | No |\n| meta/llama-3.1-70b-instruct | 128K | No | No |\n| meta/llama-3.2-90b-vision-instruct | 128K | Yes | No |\n| meta/llama-3.2-11b-vision-instruct | 128K | Yes | No |","hierarchy":{"lvl0":"Getting Started","lvl1":"NVIDIA NIM Provider Guide","lvl2":"Meta Llama","lvl3":""}},
6085
6085
  {"objectID":"3c188653cca3eebd5cc90f43252ad42029a4fa888bfb2b470139e4e0db08e26a","title":"NVIDIA Nemotron (Reasoning)","url":"/docs/getting-started/providers/nvidia-nim#nvidia-nemotron-reasoning","content":"| Model ID | Context | Vision | Reasoning |\n| ---------------------------------------- | ------- | ------ | --------- |\n| nvidia/llama-3.3-nemotron-super-49b-v1 | 128K | No | Yes |\n| nvidia/llama-3.1-nemotron-nano-8b-v1 | 128K | No | Yes |\n| nvidia/llama-3.1-nemotron-70b-instruct | 128K | No | Yes |","hierarchy":{"lvl0":"Getting Started","lvl1":"NVIDIA NIM Provider Guide","lvl2":"NVIDIA Nemotron (Reasoning)","lvl3":""}},
6086
6086
  {"objectID":"4d9aca0894a65a52648a73478e1c73b487411326cf63e05eb8159fd8fef0c5aa","title":"DeepSeek (Hosted on NIM)","url":"/docs/getting-started/providers/nvidia-nim#deepseek-hosted-on-nim","content":"| Model ID | Context | Vision | Reasoning |\n| ------------------------------------------- | ------- | ------ | --------- |\n| deepseek-ai/deepseek-r1 | 128K | No | Yes |\n| deepseek-ai/deepseek-r1-distill-llama-70b | 128K | No | Yes |","hierarchy":{"lvl0":"Getting Started","lvl1":"NVIDIA NIM Provider Guide","lvl2":"DeepSeek (Hosted on NIM)","lvl3":""}},
6087
6087
  {"objectID":"8eccc475db8aa2e29bd49cd7c0ecb93be5b813979af07749f0c218abe7a71bd8","title":"Other Models","url":"/docs/getting-started/providers/nvidia-nim#other-models","content":"| Model ID | Context | Notes |\n| --------------------------------------- | ------- | ---------------- |\n| mistralai/mixtral-8x22b-instruct-v0.1 | 64K | Large MoE |\n| mistralai/mixtral-8x7b-instruct-v0.1 | 32K | Efficient MoE |\n| microsoft/phi-4 | 16K | Compact, capable |\n| google/gemma-3-27b-it | 128K | Google Gemma |\n\nAvailability, checked 2026-10-24. NVIDIA's GET https://integrate.api.nvidia.com/v1/models lists openai/gpt-oss-20b, meta/llama-3.2-90b-vision-instruct, meta/llama-3.2-11b-vision-instruct and nvidia/llama-3.1-nemotron-70b-instruct from the tables above, and none of the others. A chat request to meta/llama-3.3-70b-instruct or meta/llama-3.1-70b-instruct answers HTTP 410, \"has reached its end of life on 2026-08-26T09:00:00Z and is no longer available\"; nvidia/llama-3.3-nemotron-super-49b-v1 and mistralai/mixtral-8x22b-instruct-v0.1 also answer 410, and deepseek-ai/deepseek-r1 and meta/llama-3.1-405b-instruct answer 404. nvidia/llama-3.1-nemotron-70b-instruct is listed but answered 404 (\"not found for account\") to the key used for the check. openai/gpt-oss-20b and meta/llama-3.2-11b-vision-instruct each answered a plain request and a tool-calling request. The NvidiaNimModels enum keeps the retired members so existing code compiles.\n\nBrowse the full catalog at https://build.nvidia.com/models. You can pass any model ID via --model or model: — NIM returns 404 for IDs that are not in the catalog.","hierarchy":{"lvl0":"Getting Started","lvl1":"NVIDIA NIM Provider Guide","lvl2":"Other Models","lvl3":""}},
6088
6088
  {"objectID":"13a92a3d0f9f1c15c2bb97769daa214d7a883699f08b4789ce05ba89f0b1724b","title":"Basic Generation","url":"/docs/getting-started/providers/nvidia-nim#basic-generation","content":"Basic Generation","hierarchy":{"lvl0":"Getting Started","lvl1":"NVIDIA NIM Provider Guide","lvl2":"Basic Generation","lvl3":""}},
6089
6089
  {"objectID":"3bc7919c7e5bb6f759acdf2b78470d89c4ec5fc0d637553c2c123240b504a105","title":"Using a Specific Model","url":"/docs/getting-started/providers/nvidia-nim#using-a-specific-model","content":"Using a Specific Model","hierarchy":{"lvl0":"Getting Started","lvl1":"NVIDIA NIM Provider Guide","lvl2":"Using a Specific Model","lvl3":""}},
6090
- {"objectID":"def6f89a4845940b499d11b73fb1b4c4aee4bf4315cfbf3828168d4b874c3f39","title":"Reasoning with thinkingLevel","url":"/docs/getting-started/providers/nvidia-nim#reasoning-with-thinkinglevel","content":"Reasoning-capable models (Nemotron, DeepSeek-R1) accept a thinking flag via NIM's chat_template_kwargs. Pass thinkingLevel to activate it:\n\nLevels: minimal (no thinking) | low | medium | high\n\nIf the model does not support chat_template_kwargs.thinking, the provider automatically retries without it.","hierarchy":{"lvl0":"Getting Started","lvl1":"NVIDIA NIM Provider Guide","lvl2":"Reasoning with thinkingLevel","lvl3":""}},
6090
+ {"objectID":"36573826405196603df30a8a6689b9bf0223d85a4c8198708c2ee216ee2954f3","title":"Reasoning and thinkingLevel","url":"/docs/getting-started/providers/nvidia-nim#reasoning-and-thinkinglevel","content":"Two separate questions decide what you get:\nDoes the model reason? That is a property of the model. openai/gpt-oss-20b, the default, reasons on every request: NIM returns the trace as reasoning_content and NeuroLink exposes it as result.reasoning (and as reasoning chunks when streaming). No option is needed to turn it on.\nCan NeuroLink switch it on or tune it? That is a property of the provider code, and on NIM it is narrower than the thinkingLevel type suggests:\nthinkingLevel is honoured on stream() only. Any level other than minimal adds chat_template_kwargs: { thinking: true, enable_thinking: true, reasoning_budget: <maxTokens> } to the request. generate() does not forward it: the request body carries no chat_template_kwargs.\nThe three active levels are not distinguished. low, medium and high send the same flags, so thinkingLevel is an on/off switch here, with minimal meaning off.\nNeuroLink never sends reasoning_effort to NIM, so that knob is not available through it.\nAn HTTP 400 that names reasoning_budget or chat_template gets one automatic retry without that field. A 400 about the other thinking flags (thinking, enable_thinking) is not retried and is returned to you.\n\nReasoning tokens count toward maxTokens. With a small budget the model can spend all of it reasoning and stop with finish_reason: \"length\" and an empty content. On openai/gpt-oss-20b, maxTokens: 16 returned an empty answer for a one-word reply, while 64 and 256 returned it. Leave a few hundred tokens of headroom for short answers, more for hard prompts.","hierarchy":{"lvl0":"Getting Started","lvl1":"NVIDIA NIM Provider Guide","lvl2":"Reasoning and thinkingLevel","lvl3":""}},
6091
6091
  {"objectID":"7026e2a09ea6db5c0d620ce11f47fbfbeaedddcdfa16c413825bc44b46a1e5fe","title":"Streaming","url":"/docs/getting-started/providers/nvidia-nim#streaming","content":"Streaming","hierarchy":{"lvl0":"Getting Started","lvl1":"NVIDIA NIM Provider Guide","lvl2":"Streaming","lvl3":""}},
6092
6092
  {"objectID":"7cf16919f6a4e4931c46ea94384eb786a1c93d1b73d3086b3247bb826f5844cb","title":"Per-Call Credential Override","url":"/docs/getting-started/providers/nvidia-nim#per-call-credential-override","content":"For self-hosted NIM clusters, override the base URL per call:","hierarchy":{"lvl0":"Getting Started","lvl1":"NVIDIA NIM Provider Guide","lvl2":"Per-Call Credential Override","lvl3":""}},
6093
6093
  {"objectID":"d997142b7549ed2c6ac3cb1c791f610155830be4d3dfeacd34fc36fed024fcba","title":"Basic Commands","url":"/docs/getting-started/providers/nvidia-nim#basic-commands","content":"Basic Commands","hierarchy":{"lvl0":"Getting Started","lvl1":"NVIDIA NIM Provider Guide","lvl2":"Basic Commands","lvl3":""}},
6094
6094
  {"objectID":"6d2c2771b00915a5ce976d69a16c5a8a23bd35f7efd262e21884530d20c0a0e4","title":"Provider Aliases","url":"/docs/getting-started/providers/nvidia-nim#provider-aliases","content":"| Alias | Example |\n| ------------ | ----------------------- |\n| nvidia-nim | --provider nvidia-nim |\n| nvidia | --provider nvidia |\n| nim | --provider nim |","hierarchy":{"lvl0":"Getting Started","lvl1":"NVIDIA NIM Provider Guide","lvl2":"Provider Aliases","lvl3":""}},
6095
6095
  {"objectID":"7fe825d689bae105fb7cc49ed299fd96c65231ea4ad501fa3c1c3ed36df332e7","title":"Configuration Reference","url":"/docs/getting-started/providers/nvidia-nim#configuration-reference","content":"| Environment Variable | Required | Default | Description |\n| ------------------------------- | -------- | ------------------------------------- | ------------------------------------------ |\n| NVIDIA_NIM_API_KEY | Yes | — | NVIDIA NIM API key (starts with nvapi-) |\n| NVIDIA_NIM_MODEL | No | openai/gpt-oss-20b | Default model |\n| NVIDIA_NIM_BASE_URL | No | https://integrate.api.nvidia.com/v1 | Base URL (override for self-hosted NIM) |\n| NVIDIA_NIM_TOP_K | No | — | Top-K sampling; -1 to disable |\n| NVIDIA_NIM_MIN_P | No | — | Minimum token probability; 0 to disable |\n| NVIDIA_NIM_REPETITION_PENALTY | No | — | Anti-repetition factor; 1 is neutral |\n| NVIDIA_NIM_MIN_TOKENS | No | — | Minimum output length in tokens |\n| NVIDIA_NIM_CHAT_TEMPLATE | No | — | Override the model's default chat template |","hierarchy":{"lvl0":"Getting Started","lvl1":"NVIDIA NIM Provider Guide","lvl2":"Configuration Reference","lvl3":""}},
6096
6096
  {"objectID":"56a3e36fceef9780446d157f62f778d26baa8a79c25571830cc4d8ca8d7b180e","title":"Self-Hosted NIM","url":"/docs/getting-started/providers/nvidia-nim#self-hosted-nim","content":"If you run NIM on your own GPU cluster, set NVIDIA_NIM_BASE_URL to point at your cluster. Authentication is still forwarded via Authorization: Bearer, so set NVIDIA_NIM_API_KEY to any non-empty value if your cluster does not require it (or to your actual cluster token if it does).","hierarchy":{"lvl0":"Getting Started","lvl1":"NVIDIA NIM Provider Guide","lvl2":"Self-Hosted NIM","lvl3":""}},
6097
- {"objectID":"05c1f3aa67afc6e69a07d0a382fc1433f4f4bc1b1aaeba20f0dc2dbd64b4da43","title":"Feature Support","url":"/docs/getting-started/providers/nvidia-nim#feature-support","content":"| Feature | Supported | Notes |\n| --------------- | --------- | ----------------------------------------------------- |\n| Text generation | Yes | |\n| Streaming | Yes | |\n| Tool calling | Yes | Most models; depends on model support |\n| Vision / images | Yes | Model-dependent (Llama 3.2 Vision, etc.) |\n| Reasoning trace | Yes | Nemotron and DeepSeek-R1 variants via thinkingLevel |\n| Embeddings | No | Use OpenAI or Bedrock for embeddings |","hierarchy":{"lvl0":"Getting Started","lvl1":"NVIDIA NIM Provider Guide","lvl2":"Feature Support","lvl3":""}},
6097
+ {"objectID":"05c1f3aa67afc6e69a07d0a382fc1433f4f4bc1b1aaeba20f0dc2dbd64b4da43","title":"Feature Support","url":"/docs/getting-started/providers/nvidia-nim#feature-support","content":"| Feature | Supported | Notes |\n| --------------- | --------- | ---------------------------------------------------------------------------------------------------------------- |\n| Text generation | Yes | |\n| Streaming | Yes | |\n| Tool calling | Yes | Most models; depends on model support |\n| Vision / images | Yes | Model-dependent (Llama 3.2 Vision, etc.) |\n| Reasoning trace | Yes | Model-dependent; openai/gpt-oss-20b always returns one. thinkingLevel is an on/off switch on stream() only |\n| Embeddings | No | Use OpenAI or Bedrock for embeddings |","hierarchy":{"lvl0":"Getting Started","lvl1":"NVIDIA NIM Provider Guide","lvl2":"Feature Support","lvl3":""}},
6098
6098
  {"objectID":"e113acee1e904cde2e3295ebbb99df56e1d4d712cf149f774c8fbaad6ada6770","title":"\"Invalid NVIDIA NIM API key\"","url":"/docs/getting-started/providers/nvidia-nim#invalid-nvidia-nim-api-key","content":"The NVIDIA_NIM_API_KEY is missing, expired, or incorrect.\n\nGet or rotate keys at https://build.nvidia.com/settings/api-keys.","hierarchy":{"lvl0":"Getting Started","lvl1":"NVIDIA NIM Provider Guide","lvl2":"\"Invalid NVIDIA NIM API key\"","lvl3":""}},
6099
6099
  {"objectID":"25669258e3b272543a86496e295868082d0146aff134a84ead2bdf65fccb3ffb","title":"\"NVIDIA NIM rate limit exceeded\"","url":"/docs/getting-started/providers/nvidia-nim#nvidia-nim-rate-limit-exceeded","content":"Your account has hit its request-per-minute or token-per-day limit. Upgrade your account, reduce request frequency, or implement backoff. Check your current usage at https://build.nvidia.com/usage.","hierarchy":{"lvl0":"Getting Started","lvl1":"NVIDIA NIM Provider Guide","lvl2":"\"NVIDIA NIM rate limit exceeded\"","lvl3":""}},
6100
6100
  {"objectID":"8fa05f7794655a8b226d68b36d26031af67d19af32b9435a02357b7f8e719862","title":"\"NVIDIA NIM model not available\"","url":"/docs/getting-started/providers/nvidia-nim#nvidia-nim-model-not-available","content":"The model ID is not in the NIM catalog, or your account tier does not have access.\n\nUse the exact model ID shown on the model's page (e.g., openai/gpt-oss-20b).","hierarchy":{"lvl0":"Getting Started","lvl1":"NVIDIA NIM Provider Guide","lvl2":"\"NVIDIA NIM model not available\"","lvl3":""}},
6101
6101
  {"objectID":"6bc455b9dba112ad4d4cb452dc286e558ef9098ae2c16dd0048d985ed1edad6f","title":"HTTP 410 \"has reached its end of life\"","url":"/docs/getting-started/providers/nvidia-nim#http-410-has-reached-its-end-of-life","content":"The request named a model NVIDIA has retired, for example meta/llama-3.1-70b-instruct or meta/llama-3.3-70b-instruct (retired 2026-08-26). If you did not pass model:, look for a stale NVIDIA_NIM_MODEL in your .env or shell: it takes precedence over the built-in default (openai/gpt-oss-20b). Remove it or set it to a model from the current catalog.","hierarchy":{"lvl0":"Getting Started","lvl1":"NVIDIA NIM Provider Guide","lvl2":"HTTP 410 \"has reached its end of life\"","lvl3":""}},
6102
6102
  {"objectID":"34d171d7ade8a31dfc31588bfccef6e920cd37a662a53089aabb5983a7d2694c","title":"\"NVIDIA NIM quota exceeded\"","url":"/docs/getting-started/providers/nvidia-nim#nvidia-nim-quota-exceeded","content":"Account-level token or compute quota reached. Check your NIM dashboard.","hierarchy":{"lvl0":"Getting Started","lvl1":"NVIDIA NIM Provider Guide","lvl2":"\"NVIDIA NIM quota exceeded\"","lvl3":""}},
6103
6103
  {"objectID":"0697a2c79b09552d2abfdc5d788f32dfeec83add6b8a40e67389ef43b6f77ac9","title":"HTTP 400 with reasoning_budget or chat_template in the error","url":"/docs/getting-started/providers/nvidia-nim#http-400-with-reasoning_budget-or-chat_template-in-the-error","content":"The model does not support one of the NIM-specific extras. The provider automatically retries without the rejected parameter. If you see this error surfaced, it means the second attempt also failed — check the rest of the error message for the root cause.","hierarchy":{"lvl0":"Getting Started","lvl1":"NVIDIA NIM Provider Guide","lvl2":"HTTP 400 with reasoning_budget or chat_template in the error","lvl3":""}},
6104
- {"objectID":"403e25d3806bf5242a71a8e510fac16e068f907380e7f22d15d2393cbf3f28f4","title":"Thinking level has no visible effect","url":"/docs/getting-started/providers/nvidia-nim#thinking-level-has-no-visible-effect","content":"Not all models support chat_template_kwargs.thinking. If the model rejects the parameter, the provider retries the request without it and produces a normal (non-reasoning) response. Use a Nemotron or DeepSeek-R1 model for guaranteed reasoning support.","hierarchy":{"lvl0":"Getting Started","lvl1":"NVIDIA NIM Provider Guide","lvl2":"Thinking level has no visible effect","lvl3":""}},
6104
+ {"objectID":"7162fa861da3490fb14e0ab695b578a808e63f3479c23c2b34e55a26de99424c","title":"Empty content with finish_reason: \"length\"","url":"/docs/getting-started/providers/nvidia-nim#empty-content-with-finish_reason-length","content":"A reasoning model spent the whole maxTokens budget on its reasoning before it started the answer. The reasoning is in result.reasoning; raise maxTokens (a few hundred tokens is enough for a short answer on openai/gpt-oss-20b).","hierarchy":{"lvl0":"Getting Started","lvl1":"NVIDIA NIM Provider Guide","lvl2":"Empty content with finish_reason: \"length\"","lvl3":""}},
6105
+ {"objectID":"403e25d3806bf5242a71a8e510fac16e068f907380e7f22d15d2393cbf3f28f4","title":"Thinking level has no visible effect","url":"/docs/getting-started/providers/nvidia-nim#thinking-level-has-no-visible-effect","content":"On generate(), thinkingLevel is not forwarded to NIM at all; use stream().\nOn stream(), any level except minimal sends the same thinking flags, so low, medium and high behave alike.\nA model that already reasons on every request, such as openai/gpt-oss-20b, returns its trace with or without the flags.\nIf the model rejects reasoning_budget with a 400 that names it, the provider retries once without it. A rejection of thinking or enable_thinking is not retried and comes back as the 400.","hierarchy":{"lvl0":"Getting Started","lvl1":"NVIDIA NIM Provider Guide","lvl2":"Thinking level has no visible effect","lvl3":""}},
6105
6106
  {"objectID":"81d809e5e2f1a5432e211618570e5863285ced65bb39c3837bad507e576cc2b2","title":"See Also","url":"/docs/getting-started/providers/nvidia-nim#see-also","content":"Implementation spec — internal wire-format details and NIM-specific extras\nDeepSeek provider — if you only need DeepSeek-R1 via the official DeepSeek API\nOpenAI Compatible provider — generic provider for any OpenAI-compatible endpoint\n\nNeed Help? Join the GitHub Discussions or open an issue.","hierarchy":{"lvl0":"Getting Started","lvl1":"NVIDIA NIM Provider Guide","lvl2":"See Also","lvl3":""}},
6106
6107
  {"objectID":"ec3ac003bf51ae7a21d4557697635c22addb912b2f8a6812afd05c7617b743fd","title":"Ollama Provider Guide","url":"/docs/getting-started/providers/ollama","content":"Ollama Provider Guide\n\nRun AI models locally with full privacy - no API key or cloud service required\n\nOverview\n\nOllama lets you run open-source large language models entirely on your own machine. NeuroLink integrates with Ollama through a custom OllamaLanguageModel implementation that supports both the native Ollama API (/api/generate) and an OpenAI-compatible mode (/v1/chat/completions).\n\nKey Benefits\n100% Local: All inference runs on your hardware, no data leaves your machine\nNo API Key Required: No accounts, billing, or rate limits\nOffline Capable: Works completely without internet after models are pulled\n70+ Models: Llama, Mistral, Qwen, DeepSeek, Gemma, Phi, CodeLlama, and more\nTool/Function Calling: Multi-step tool execution via the OpenAI-compatible endpoint\nStreaming: Full streaming support in both native and OpenAI-compatible modes\nMultimodal: Image input support for vision-capable models (LLaVA, Llama 3.2)\nProxy-Aware: Supports HTTP/HTTPS proxy configuration\n\nAPI Modes\n\n| Mode | Endpoint | Use Case |\n| --------------------- | ---------------------- | ------------------------------------------------- |\n| Native (default) | /api/generate | Standard text generation and streaming |\n| OpenAI-compatible | /v1/chat/completions | Tool calling, chat-format messages, compatibility |\n\nTool calling always uses the OpenAI-compatible endpoint regardless of the mode setting.\n\nQuick Start\nInstall Ollama\n\nDownload from ollama.ai, open the .dmg, and drag Ollama to Applications.\n\nDownload the installer from ollama.ai and run it. WSL2 is also supported.\nStart Ollama and Pull a Model\nConfigure NeuroLink\n\nAdd to your .env file:\nTest the Setup\n\nSupported Models\n\nAvailable Models (from OllamaModels enum)\n\nAny model in the Ollama library can be used by passing its tag to --model. The OllamaModels enum in src/lib/constants/enums.ts provides named constants for common models:\n\nLlama Series\n\n| Enum Key | Model ID | Description |\n| ----------------- | ----------------- | ---------------------------------------- |\n| LLAMA4_SCOUT | llama4:scout | Llama 4 multimodal with vision and tools |\n| LLAMA4_MAVERICK | llama4:maverick | Llama 4 multimodal with vision and tools |\n| LLAMA3_3_70B | llama3.3:70b | High-performance 70B |\n| LLAMA3_2_LATEST | llama3.2:latest | Optimized for edge deployment (default) |\n| LLAMA3_2_3B | llama3.2:3b | Compact 3B edge model |\n| LLAMA3_2_1B | llama3.2:1b | Ultra-compact 1B model |\n| LLAMA3_1_8B | llama3.1:8b | Open model rivaling proprietary models |\n| LLAMA3_1_70B | llama3.1:70b | Large-scale open model |\n| LLAMA3_1_405B | llama3.1:405b | Largest open Llama model |\n\nQwen Series\n\n| Enum Key | Model ID | Description |\n| ------------- | ------------- | -------------------------------- |\n| QWEN3_4B | qwen3:4b | Advanced reasoning, multilingual |\n| QWEN3_8B | qwen3:8b | Advanced reasoning, multilingual |\n| QWEN3_14B | qwen3:14b | Advanced reasoning, multilingual |\n| QWEN3_32B | qwen3:32b | Advanced reasoning, multilingual |\n| QWEN3_72B | qwen3:72b | Advanced reasoning, multilingual |\n| QWQ_32B | qwq:32b | Reasoning-specialized model |\n| QWEN2_5_72B | qwen2.5:72b | Enhanced coding and mathematics |\n\nDeepSeek Series\n\n| Enum Key | Model ID | Description |\n| -------------------- | -------------------- | -------------------------- |\n| DEEPSEEK_R1_7B | deepseek-r1:7b | State-of-the-art reasoning |\n| DEEPSEEK_R1_14B | deepseek-r1:14b | Reasoning at 14B scale |\n| DEEPSEEK_R1_32B | deepseek-r1:32b | Reasoning at 32B scale |\n| DEEPSEEK_R1_70B | deepseek-r1:70b | Large-scale reasoning |\n| DEEPSEEK_V3_LATEST | deepseek-v3:latest | Mixture of Experts model |\n\nMistral Series\n\n| Enum Key | Model ID | Description |\n| ---------------------- | ---------------------- | ---------------------------- |\n| MISTRAL_LATEST | mistral:latest | Efficient general-purpose 7B |\n| MISTRAL_SMALL_LATEST | mistral-small:latest | Compact Mistral variant |\n| MISTRAL_NEMO_LATEST | mistral-nemo:latest | Nemo architecture |\n| MISTRAL_LARGE_LATEST | mistral-large:latest | Largest Mistral model |\n\nCode-Specialized Models\n\n| Enum Key | Model ID | Description |\n| ------------------- | ------------------- | ------------------------- |\n| CODELLAMA_7B | codellama:7b | Code-focused Llama 7B |\n| CODELLAMA_13B | codellama:13b | Code-focused Llama 13B |\n| CODELLAMA_34B | codellama:34b | Code-focused Llama 34B |\n| CODELLAMA_70B | codellama:70b | Code-focused Llama 70B |\n| QWE","hierarchy":{"lvl0":"Getting Started","lvl1":"Ollama Provider Guide","lvl2":"","lvl3":""}},
6107
6108
  {"objectID":"279448d05aa41576a8f2d67b977f92d561f583abcce219892e3dea61565b5d4d","title":"Ollama Provider Guide","url":"/docs/getting-started/providers/ollama#ollama-provider-guide","content":"Run AI models locally with full privacy - no API key or cloud service required","hierarchy":{"lvl0":"Getting Started","lvl1":"Ollama Provider Guide","lvl2":"Ollama Provider Guide","lvl3":""}},
@@ -9776,7 +9777,7 @@
9776
9777
  {"objectID":"64c8513d79573595bd25cf0d845b49f256c3cf9de8563ac2436454e2b1e09451","title":"Tool Calling / Function Calling","url":"/docs/reference/provider-comparison#tool-calling-function-calling","content":"Native Full Support:\n✓ OpenAI - Industry-leading function calling\n✓ Anthropic - Advanced tool use, parallel execution\n✓ Azure OpenAI - Same as OpenAI\n✓ Mistral - Native function calling\n✓ Google Vertex - Gemini + Claude models\n✓ Google AI Studio - Gemini models\n✓ Amazon Bedrock - Converse API tool support\n✓ LiteLLM - Proxies to backend providers\n✓ DeepSeek - Both deepseek-chat and deepseek-reasoner\n\nModel-Dependent Support:\n⚠️ NVIDIA NIM - Depends on hosted model (Llama 3.x: yes; embedding-only models: no)\n⚠️ LM Studio - Depends on loaded model (Llama 3.1+, Mistral 7B Instruct v0.3, etc.)\n⚠️ llama.cpp - Requires --jinja server flag; depends on loaded model\n⚠️ HuggingFace - Only specific models:\nLlama 3.1+ series\nHermes 3 models\nCodeLlama 34B\nMistral 7B Instruct v0.3\n⚠️ Ollama - Only compatible models:\nLlama 3.1+\nGemma 3 with tool training\n⚠️ OpenRouter - Check model capabilities:\nClaude models: ✓\nGPT-4 models: ✓\nGemini models: ✓\nMany others vary\n⚠️ OpenAI Compatible - Depends on backend\n⚠️ Amazon SageMaker - Depends on custom endpoint","hierarchy":{"lvl0":"Reference","lvl1":"AI Provider Comparison Guide","lvl2":"Tool Calling / Function Calling","lvl3":""}},
9777
9778
  {"objectID":"1f40384e83724e7342fc4f35571f89a9d311598beddf5e55ef662095a3b09b39","title":"Vision / Multimodal Capabilities","url":"/docs/reference/provider-comparison#vision-multimodal-capabilities","content":"Native Vision Support:\n\nTier 1 (Best Vision):\nOpenAI - GPT-4o, GPT-5 series, O-series\n10 images max\nPNG, JPEG, WEBP, GIF\nAnthropic - Claude 4.5 Sonnet/Haiku, Claude 4.0 Opus/Sonnet\n20 images max\nExcellent vision quality\nGoogle Vertex/AI Studio - Gemini 2.5+, 3.x\n16 images max\nNative multimodal architecture\n\nTier 2 (Good Vision):\nAzure OpenAI - Same models as OpenAI\n10 images max\nMistral - Small 2506, Pixtral\n10 images max (conservative)\n\nModel-Dependent Vision:\n⚠️ LiteLLM - Depends on backend (e.g., GPT-4o via LiteLLM = vision)\n⚠️ Ollama - LLaVA, Llama 3.2 Vision, Gemini models\n⚠️ OpenAI Compatible - Backend-dependent\n⚠️ OpenRouter - Model-dependent (Claude, GPT-4o, Gemini support vision)\n⚠️ Amazon Bedrock - Claude models support vision\n⚠️ NVIDIA NIM - Depends on hosted model (e.g., Phi-3-vision, Llama 3.2 Vision)\n⚠️ LM Studio - Depends on loaded model (LLaVA, Llama 3.2 Vision, Qwen-VL, etc.)\n⚠️ llama.cpp - Depends on loaded model (LLaVA, Llama 3.2 Vision, etc.)\n\nNo Vision Support:\n✗ HuggingFace\n✗ Amazon SageMaker\n✗ DeepSeek (API does not accept image input)","hierarchy":{"lvl0":"Reference","lvl1":"AI Provider Comparison Guide","lvl2":"Vision / Multimodal Capabilities","lvl3":""}},
9778
9779
  {"objectID":"911528f2fb54ac08272012c7be3a0138b20e326674d6b43dfadd365c29c1f5ac","title":"PDF Document Processing","url":"/docs/reference/provider-comparison#pdf-document-processing","content":"Native PDF Support:\n✓ Anthropic - Native PDF understanding (best)\n✓ Google AI Studio - Gemini PDF processing\n✓ Google Vertex - Gemini + Claude PDF support\n✓ Amazon Bedrock - Claude models\n\nNo PDF Support (Requires Preprocessing):\n✗ OpenAI\n✗ Azure OpenAI\n✗ Mistral\n✗ HuggingFace\n✗ LiteLLM\n✗ Ollama\n✗ OpenAI Compatible\n✗ OpenRouter\n✗ Amazon SageMaker\n✗ DeepSeek\n✗ NVIDIA NIM\n✗ LM Studio\n✗ llama.cpp","hierarchy":{"lvl0":"Reference","lvl1":"AI Provider Comparison Guide","lvl2":"PDF Document Processing","lvl3":""}},
9779
- {"objectID":"4f50978899e311665cef4648bef20d67023649b38ba24da8fd3138020c508876","title":"Extended Thinking / Reasoning","url":"/docs/reference/provider-comparison#extended-thinking-reasoning","content":"Native Extended Thinking:\n✓ Anthropic - All Claude 4.0+ models (best)\nClaude Sonnet 4, Opus 4, Opus 4.1, Sonnet 4.5, Opus 4.5, Haiku 4.5, Sonnet 4.6, Opus 4.6\nThinking levels: minimal, low, medium, high\nTransparent reasoning process\nAvailable on Pro and Max subscription tiers (not Free)\n✓ Google AI Studio - Gemini 2.5 Pro, Gemini 2.5 Flash, Gemini 3 Flash, Gemini 3.1 Pro\nThinking levels: minimal, low, medium, high\nConfigurable thinking budget\n✓ Google Vertex - Same as AI Studio (Gemini only, not Claude)\n\nNative Extended Thinking (continued):\n✓ DeepSeek - deepseek-reasoner (R1) model exposes chain-of-thought natively; deepseek-chat supports opt-in thinking mode\n✓ NVIDIA NIM - Hosted Nemotron-Reasoning and DeepSeek-R1 models; controlled via thinkingLevel option\n\nModel-Dependent Thinking:\n⚠️ LM Studio - Depends on loaded model (Qwen3, DeepSeek-R1-distill variants expose reasoning)\n⚠️ llama.cpp - Depends on loaded model (DeepSeek-R1-distill GGUF variants expose reasoning)\n\nNo Extended Thinking:\n✗ OpenAI (standard reasoning only)\n✗ Azure OpenAI\n✗ Amazon Bedrock\n✗ Amazon SageMaker\n✗ Mistral\n✗ HuggingFace\n✗ LiteLLM\n✗ Ollama\n✗ OpenAI Compatible\n✗ OpenRouter","hierarchy":{"lvl0":"Reference","lvl1":"AI Provider Comparison Guide","lvl2":"Extended Thinking / Reasoning","lvl3":""}},
9780
+ {"objectID":"4f50978899e311665cef4648bef20d67023649b38ba24da8fd3138020c508876","title":"Extended Thinking / Reasoning","url":"/docs/reference/provider-comparison#extended-thinking-reasoning","content":"Native Extended Thinking:\n✓ Anthropic - All Claude 4.0+ models (best)\nClaude Sonnet 4, Opus 4, Opus 4.1, Sonnet 4.5, Opus 4.5, Haiku 4.5, Sonnet 4.6, Opus 4.6\nThinking levels: minimal, low, medium, high\nTransparent reasoning process\nAvailable on Pro and Max subscription tiers (not Free)\n✓ Google AI Studio - Gemini 2.5 Pro, Gemini 2.5 Flash, Gemini 3 Flash, Gemini 3.1 Pro\nThinking levels: minimal, low, medium, high\nConfigurable thinking budget\n✓ Google Vertex - Same as AI Studio (Gemini only, not Claude)\n\nNative Extended Thinking (continued):\n✓ DeepSeek - deepseek-reasoner (R1) model exposes chain-of-thought natively; deepseek-chat supports opt-in thinking mode\n✓ NVIDIA NIM - Reasoning depends on the hosted model: the default openai/gpt-oss-20b returns a reasoning trace on every request. thinkingLevel is an on/off switch on stream() only (see the NVIDIA NIM guide)\n\nModel-Dependent Thinking:\n⚠️ LM Studio - Depends on loaded model (Qwen3, DeepSeek-R1-distill variants expose reasoning)\n⚠️ llama.cpp - Depends on loaded model (DeepSeek-R1-distill GGUF variants expose reasoning)\n\nNo Extended Thinking:\n✗ OpenAI (standard reasoning only)\n✗ Azure OpenAI\n✗ Amazon Bedrock\n✗ Amazon SageMaker\n✗ Mistral\n✗ HuggingFace\n✗ LiteLLM\n✗ Ollama\n✗ OpenAI Compatible\n✗ OpenRouter","hierarchy":{"lvl0":"Reference","lvl1":"AI Provider Comparison Guide","lvl2":"Extended Thinking / Reasoning","lvl3":""}},
9780
9781
  {"objectID":"cd68af52bcf2e36d3b2e97be0a344bf44a6b1d38fb99f65b4fe0a2ef6ab01c7a","title":"Structured Output / JSON Schema","url":"/docs/reference/provider-comparison#structured-output-json-schema","content":"Full Support (Tools + Schema Together):\n✓ OpenAI - Native JSON mode\n✓ Anthropic - Full schema + tools\n✓ Azure OpenAI - Same as OpenAI\n✓ Amazon Bedrock - Schema validation\n✓ Mistral - JSON schema support\n✓ LiteLLM - Proxies to backend\n✓ OpenAI Compatible - OpenAI-compatible endpoints\n✓ OpenRouter - Model-dependent\n✓ DeepSeek - JSON schema support via OpenAI-compatible API\n\nPartial Support (Tools OR Schema, Not Both):\n⚠️ Google AI Studio - ❌ Cannot combine\nMust use disableTools: true with schemas\nGemini API limitation\n⚠️ Google Vertex - ❌ Cannot combine (Gemini models only)\nClaude models on Vertex CAN combine\nGemini models have same limitation as AI Studio\n\nModel-Dependent Structured Output:\n⚠️ NVIDIA NIM - Model-dependent reliability; capable frontier models work well\n⚠️ LM Studio - Model-dependent reliability; small local models may struggle with strict schemas\n⚠️ llama.cpp - Model-dependent reliability; small local models may struggle with strict schemas\n\nNo Structured Output:\n✗ HuggingFace\n✗ Ollama\n✗ Amazon SageMaker","hierarchy":{"lvl0":"Reference","lvl1":"AI Provider Comparison Guide","lvl2":"Structured Output / JSON Schema","lvl3":""}},
9781
9782
  {"objectID":"038b1663987283255a2c0201ac7fbc8e702454e5d9b474d2b3d36f80a603bc4d","title":"1. OpenAI","url":"/docs/reference/provider-comparison#1-openai","content":"Provider ID: openai\nDefault Model: gpt-4o-mini\n\nStrengths:\nIndustry-leading model quality\nBest-in-class developer experience\nExtensive ecosystem and integrations\nExcellent documentation\nReliable uptime and performance\n\nWeaknesses:\nExpensive at scale\nNo free tier\nNo PDF support\nNo extended thinking\n\nBest For:\nProduction applications requiring highest quality\nCritical customer-facing features\nComplex reasoning tasks\nWhen budget allows premium pricing\n\nPricing:\nGPT-4o: $2.50/$10.00 per 1M tokens\nGPT-4o-mini: $0.15/$0.60 per 1M tokens\nGPT-5 series: $15.00-$60.00 input, $45.00-$180.00 output","hierarchy":{"lvl0":"Reference","lvl1":"AI Provider Comparison Guide","lvl2":"1. OpenAI","lvl3":""}},
9782
9783
  {"objectID":"a7b8772db759f78d7770cfdd8bb85cd0e79d6fb9a833bf5901d2cc57bec7923e","title":"2. Anthropic","url":"/docs/reference/provider-comparison#2-anthropic","content":"Provider ID: anthropic\nDefault Model: claude-sonnet-4-6\nAuth Methods: API Key, OAuth 2.0 (unique among providers)\n\nStrengths:\nExtended thinking - Best reasoning capabilities\nNative PDF support - Document understanding\nDual auth support - API key for developers, OAuth for subscription users\nSubscription tiers - Free, Pro ($20/mo), Max ($100+/mo) as alternatives to per-token pricing\n200K token context window\nStrong safety features\nExcellent for analysis and research\n\nWeaknesses:\nHigher cost than some alternatives (API pricing)\nSmaller ecosystem than OpenAI\nLimited regional availability\nSubscription tiers have model access restrictions (e.g., Opus requires Max tier)\n\nBest For:\nComplex reasoning and analysis\nDocument processing workflows\nAgentic workflows with tools\nWhen extended thinking is valuable\nSubscription users who prefer flat-rate pricing over per-token costs\n\nPricing:\n\nPer-Token API Pricing:\nClaude Haiku 4.5: $0.25/$1.25 per 1M tokens\nClaude Sonnet 4.5: $3.00/$15.00 per 1M tokens\nClaude Opus 4.5: $15.00/$75.00 per 1M tokens\n\nSubscription Pricing (via OAuth):\nFree: Limited daily messages, Sonnet access\nPro ($20/mo): Higher limits, priority access, extended thinking\nMax ($100+/mo): 5x-20x usage, Opus access, highest rate limits","hierarchy":{"lvl0":"Reference","lvl1":"AI Provider Comparison Guide","lvl2":"2. Anthropic","lvl3":""}},
@@ -9792,7 +9793,7 @@
9792
9793
  {"objectID":"5850b5e6ab599e2c9e2952653e0db0616ccd777c908edd1b43dd4381d0d1eab7","title":"12. OpenAI Compatible","url":"/docs/reference/provider-comparison#12-openai-compatible","content":"Provider ID: openai-compatible\nDefault Model: Auto-discovered\n\nStrengths:\nWorks with any OpenAI-compatible endpoint\nvLLM, FastChat, LocalAI support\nCustom deployment flexibility\nAuto-discovers available models\n\nWeaknesses:\nCapabilities entirely backend-dependent\nNo standardized capability detection\nConfiguration varies by provider\nAuthentication varies\n\nBest For:\nCustom deployments (vLLM, FastChat)\nInternal model serving\nPrivate cloud deployments\nWhen you control the backend\n\nPricing:\nDepends entirely on backend provider\nSelf-hosted: Infrastructure costs only\nCloud-hosted: Provider-specific pricing","hierarchy":{"lvl0":"Reference","lvl1":"AI Provider Comparison Guide","lvl2":"12. OpenAI Compatible","lvl3":""}},
9793
9794
  {"objectID":"260fb153eca401bd1ca6ed426b7f594aba2907dd9389b79d0bfe62380fc8a7be","title":"13. OpenRouter","url":"/docs/reference/provider-comparison#13-openrouter","content":"Provider ID: openrouter\nDefault Model: anthropic/claude-3-5-sonnet\n\nStrengths:\nAccess to 300+ models from 60+ providers\nMany FREE models available\nAutomatic failover\nUnified API for all models\nCost tracking\n\nWeaknesses:\nTool support varies by model\nVision support varies by model\nCredit-based pricing system\nModel availability can change\n\nBest For:\nAccess to many providers via one API\nCost optimization (free models available)\nRapid prototyping\nWhen you want provider flexibility\n\nPricing:\nFree models available:\nGoogle Gemini 2.0 Flash: FREE\nMeta Llama 3.3 70B: FREE\nQwen models: FREE\nPaid models:\nClaude 3.5 Sonnet: $3.00/$15.00 per 1M tokens\nGPT-4o: $2.50/$10.00 per 1M tokens","hierarchy":{"lvl0":"Reference","lvl1":"AI Provider Comparison Guide","lvl2":"13. OpenRouter","lvl3":""}},
9794
9795
  {"objectID":"e3aa53a228f2eb44916ad3d765c881b2565668588e1c94e1df543232a78413f6","title":"14. DeepSeek","url":"/docs/reference/provider-comparison#14-deepseek","content":"Provider ID: deepseek\nDefault Model: deepseek-chat\nAliases: ds\n\nStrengths:\nVery competitive pricing (among the cheapest frontier-quality models)\ndeepseek-reasoner (R1) — strong open-weight reasoning model\nOpenAI-compatible API — minimal integration overhead\nTool calling supported on both models\n\nWeaknesses:\nNo vision / multimodal support\nCloud-only (data sent to DeepSeek servers in China — consider for compliance)\nNo PDF support\n\nBest For:\nCost-sensitive text and reasoning workloads\nAgentic tool-calling pipelines where budget matters\nExperimenting with open-weight-quality reasoning at low cost\n\nPricing:\ndeepseek-chat (V3): ~$0.14/$0.28 per 1M tokens\ndeepseek-reasoner (R1): ~$0.55/$2.19 per 1M tokens","hierarchy":{"lvl0":"Reference","lvl1":"AI Provider Comparison Guide","lvl2":"14. DeepSeek","lvl3":""}},
9795
- {"objectID":"6e5ecdf1db31b0952ff3e3ab0758af1a084052e528319de6bc88f64cef9c3d97","title":"15. NVIDIA NIM","url":"/docs/reference/provider-comparison#15-nvidia-nim","content":"Provider ID: nvidia-nim\nDefault Model: openai/gpt-oss-20b\nAliases: nvidia, nim\n\nStrengths:\nAccess to NVIDIA-hosted Llama, Mistral, Nemotron, DeepSeek models\nThinking/reasoning supported on Nemotron-Reasoning and DeepSeek-R1 models\nVision supported on vision-capable models (Phi-3-vision, Llama 3.2 Vision)\nOpenAI-compatible API with NIM-specific extras (top_k, min_p, reasoning_budget)\nGraceful retry on 400 errors — drops unsupported extras automatically\n\nWeaknesses:\nTool and vision capability depends entirely on the specific hosted model\nRequires NVIDIA NGC API key\nNo PDF support\n\nBest For:\nRunning NVIDIA-optimized Llama/Mistral/Nemotron models in the cloud\nReasoning workloads via hosted DeepSeek-R1 or Nemotron\nDevelopers already in the NVIDIA ecosystem (NGC, DGX Cloud)\n\nPricing:\nVaries by model; new accounts receive free credits\nSee https://build.nvidia.com/models for per-model pricing","hierarchy":{"lvl0":"Reference","lvl1":"AI Provider Comparison Guide","lvl2":"15. NVIDIA NIM","lvl3":""}},
9796
+ {"objectID":"6e5ecdf1db31b0952ff3e3ab0758af1a084052e528319de6bc88f64cef9c3d97","title":"15. NVIDIA NIM","url":"/docs/reference/provider-comparison#15-nvidia-nim","content":"Provider ID: nvidia-nim\nDefault Model: openai/gpt-oss-20b\nAliases: nvidia, nim\n\nStrengths:\nAccess to NVIDIA-hosted Llama, Mistral, Nemotron, DeepSeek models\nReasoning is model-dependent: the default openai/gpt-oss-20b returns a reasoning trace on every request; thinkingLevel toggles NIM's thinking flags on stream() only\nVision supported on vision-capable models (Phi-3-vision, Llama 3.2 Vision)\nOpenAI-compatible API with NIM-specific extras (top_k, min_p, reasoning_budget)\nGraceful retry on 400 errors — drops unsupported extras automatically\n\nWeaknesses:\nTool and vision capability depends entirely on the specific hosted model\nRequires NVIDIA NGC API key\nNo PDF support\n\nBest For:\nRunning NVIDIA-optimized Llama/Mistral/Nemotron models in the cloud\nReasoning workloads on hosted reasoning models such as openai/gpt-oss-20b\nDevelopers already in the NVIDIA ecosystem (NGC, DGX Cloud)\n\nPricing:\nVaries by model; new accounts receive free credits\nSee https://build.nvidia.com/models for per-model pricing","hierarchy":{"lvl0":"Reference","lvl1":"AI Provider Comparison Guide","lvl2":"15. NVIDIA NIM","lvl3":""}},
9796
9797
  {"objectID":"3d848b89e6f368d83d5eb4c1857ca90c4fa81391f9da441b10fb82227632408f","title":"16. LM Studio","url":"/docs/reference/provider-comparison#16-lm-studio","content":"Provider ID: lm-studio\nDefault Model: Auto-discovered from running server\nAliases: lmstudio, lms\n\nStrengths:\nCompletely FREE (local execution via LM Studio desktop app)\nMaximum privacy — no data sent to cloud\nAuto-discovers the currently loaded model via /v1/models\nVision supported on compatible models (LLaVA, Llama 3.2 Vision, Qwen-VL, etc.)\nTool calling supported on compatible models\n\nWeaknesses:\nRequires LM Studio app and a loaded model\nModel quality and capability depend entirely on what is loaded\nNo PDF support\nSmall local models may give inconsistent structured output\n\nBest For:\nPrivacy-critical local inference\nOffline / air-gapped environments\nDevelopment and experimentation without cloud costs\nTesting multiple open-weight models via a GUI\n\nPricing:\nFREE (hardware costs only)\nRequires local GPU for best performance","hierarchy":{"lvl0":"Reference","lvl1":"AI Provider Comparison Guide","lvl2":"16. LM Studio","lvl3":""}},
9797
9798
  {"objectID":"a0f05ec8e14d9e4fb69779c0c25f1e732ae384b506c5be585c5089cd457f293f","title":"17. llama.cpp","url":"/docs/reference/provider-comparison#17-llamacpp","content":"Provider ID: llamacpp\nDefault Model: Auto-discovered from running llama-server\nAliases: llama.cpp, llama-cpp\n\nStrengths:\nCompletely FREE (local execution via llama-server)\nMaximum privacy — no data sent to cloud\nGGUF model support — run quantized models on CPU or GPU\nAuto-discovers loaded model via /v1/models\nVision supported on compatible models (LLaVA, Llama 3.2 Vision)\nTool calling supported when server started with --jinja flag\n\nWeaknesses:\nRequires building / downloading llama-server and a GGUF model\nTool calling requires --jinja flag at server startup\nModel quality depends on the GGUF model loaded\nNo PDF support\nSmall local models may give inconsistent structured output\n\nBest For:\nMaximum privacy and air-gapped deployments\nCPU inference without a GPU\nRunning heavily quantized models at low resource cost\nPower users who want direct control over model serving\n\nPricing:\nFREE (hardware costs only)\nNo API costs or rate limits","hierarchy":{"lvl0":"Reference","lvl1":"AI Provider Comparison Guide","lvl2":"17. llama.cpp","lvl3":""}},
9798
9799
  {"objectID":"7a70d0d5fafc012db75fd708bf54e3db3a35a71ce61eb67049e87218bbc874d4","title":"Voice Providers","url":"/docs/reference/provider-comparison#voice-providers","content":"Voice providers handle audio I/O and are distinct from LLM text-generation providers. They are categorised by function: Text-to-Speech (TTS), Speech-to-Text (STT), and Realtime (bidirectional audio over WebSocket).\n\n| Provider | Type | Protocol | Streaming | Formats | Auth |\n| ------------------- | -------- | ---------------- | --------- | ----------------------------------------------------- | -------------------------------------------------- |\n| google-ai (TTS) | TTS | REST (gRPC SDK) | No | MP3, WAV, OGG | Service Account (GOOGLE_APPLICATION_CREDENTIALS) |\n| openai-tts | TTS | REST | No | MP3, WAV, OGG, Opus | API Key |\n| elevenlabs | TTS | REST | No | MP3, WAV (PCM), Opus | API Key |\n| azure-tts | TTS | REST | No | MP3, WAV (PCM), Opus | API Key + Region |\n| whisper | STT | REST | No | WAV, MP3, M4A, FLAC, OGG, Opus, WebM, MP4, MPEG, MPGA | API Key |\n| google-stt | STT | REST | No | WAV, FLAC, MP3, OGG | API Key or Service Account |\n| deepgram | STT | REST + WebSocket | Yes | WAV, MP3, OGG, FLAC | API Key |\n| azure-stt | STT | REST | No | WAV¹, OGG, Opus | API Key + Region |\n| openai-realtime | Realtime | WebSocket | Yes | PCM16,","hierarchy":{"lvl0":"Reference","lvl1":"AI Provider Comparison Guide","lvl2":"Voice Providers","lvl3":""}},
@@ -9870,7 +9871,7 @@
9870
9871
  {"objectID":"adefcedd575b72009c4bc0f61997c4250040929f014824c6c6cdbbe7fa0ef1e6","title":"Enterprise Production","url":"/docs/reference/provider-selection#enterprise-production","content":"Recommended Stack:\n\nEnterprise Requirements Checklist:\n[x] SLA guarantees (99.9%+)\n[x] HIPAA/SOC2 compliance\n[x] Multi-region deployment\n[x] Provider failover strategy\n[x] Cost monitoring and alerts","hierarchy":{"lvl0":"Reference","lvl1":"Provider Selection Guide","lvl2":"Enterprise Production","lvl3":""}},
9871
9872
  {"objectID":"00ead7f5ba563f9adeac903fd53da014cebdb61e277745108608ac4774e49f57","title":"Research and Analysis","url":"/docs/reference/provider-selection#research-and-analysis","content":"Recommended Stack:","hierarchy":{"lvl0":"Reference","lvl1":"Provider Selection Guide","lvl2":"Research and Analysis","lvl3":""}},
9872
9873
  {"objectID":"1272876f7ecd7e162c7ae353a481e9a18a6d43fa20e84116552e1ac6b188cea8","title":"Cost-Efficient Reasoning (DeepSeek)","url":"/docs/reference/provider-selection#cost-efficient-reasoning-deepseek","content":"Choose DeepSeek when you need frontier-quality reasoning at a fraction of the cost of Anthropic or OpenAI.\nWhen to choose: Text-only agentic workflows, chain-of-thought reasoning tasks, budget-constrained production.\nProvider ID: deepseek\nKey models: deepseek-chat (V3 — general purpose), deepseek-reasoner (R1 — reasoning)\nNot suitable for: Vision, PDF, or image processing tasks.\nCredential needed: DEEPSEEK_API_KEY (get one at https://platform.deepseek.com)","hierarchy":{"lvl0":"Reference","lvl1":"Provider Selection Guide","lvl2":"Cost-Efficient Reasoning (DeepSeek)","lvl3":""}},
9873
- {"objectID":"a91dc684aba34ed7cc14c808212a1a4ccc3bf679374984bb60818d50498bae4f","title":"NVIDIA-Hosted Models (NVIDIA NIM)","url":"/docs/reference/provider-selection#nvidia-hosted-models-nvidia-nim","content":"Choose NVIDIA NIM when you want NVIDIA-curated hosted inference — Llama, Nemotron, Mistral, and DeepSeek-R1 — accessed via an NVIDIA API key.\nWhen to choose: You want Llama 3.x or Nemotron models served at scale; you need thinking/reasoning via hosted DeepSeek-R1 or Nemotron-Reasoning; you are already an NGC customer.\nProvider ID: nvidia-nim\nKey models: openai/gpt-oss-20b (default), nvidia/nemotron-4-340b-instruct, DeepSeek-R1 variants\nVision: Available on select models (Phi-3-vision, Llama 3.2 Vision); check https://build.nvidia.com/models.\nNot suitable for: PDF processing; vision on non-vision models.\nCredential needed: NVIDIA_NIM_API_KEY (get one at https://build.nvidia.com/settings/api-keys)","hierarchy":{"lvl0":"Reference","lvl1":"Provider Selection Guide","lvl2":"NVIDIA-Hosted Models (NVIDIA NIM)","lvl3":""}},
9874
+ {"objectID":"a91dc684aba34ed7cc14c808212a1a4ccc3bf679374984bb60818d50498bae4f","title":"NVIDIA-Hosted Models (NVIDIA NIM)","url":"/docs/reference/provider-selection#nvidia-hosted-models-nvidia-nim","content":"Choose NVIDIA NIM when you want NVIDIA-curated hosted inference — Llama, Nemotron, Mistral, and DeepSeek-R1 — accessed via an NVIDIA API key.\nWhen to choose: You want Llama 3.x or Nemotron models served at scale; you need a hosted reasoning model such as openai/gpt-oss-20b; you are already an NGC customer.\nProvider ID: nvidia-nim\nKey models: openai/gpt-oss-20b (default), nvidia/nemotron-4-340b-instruct, DeepSeek-R1 variants\nVision: Available on select models (Phi-3-vision, Llama 3.2 Vision); check https://build.nvidia.com/models.\nNot suitable for: PDF processing; vision on non-vision models.\nCredential needed: NVIDIA_NIM_API_KEY (get one at https://build.nvidia.com/settings/api-keys)","hierarchy":{"lvl0":"Reference","lvl1":"Provider Selection Guide","lvl2":"NVIDIA-Hosted Models (NVIDIA NIM)","lvl3":""}},
9874
9875
  {"objectID":"cc36677fe4f4c550b7760d8c16ffddec196c19f2498027b05576b3ba4fa37105","title":"Local Inference via LM Studio","url":"/docs/reference/provider-selection#local-inference-via-lm-studio","content":"Choose LM Studio when you want a desktop GUI for managing and running local models, with zero cloud cost and maximum privacy.\nWhen to choose: You want a GUI to browse, download, and switch models; you need local inference without managing llama-server manually; vision models like LLaVA or Qwen-VL are attractive.\nProvider ID: lm-studio\nModel: Auto-discovered from the loaded model (or pass an explicit model name).\nDefault base URL: http://localhost:1234/v1\nNot suitable for: Production at scale (single machine); PDF processing.\nSetup: Download LM Studio, load a model, click \"Start Server\".","hierarchy":{"lvl0":"Reference","lvl1":"Provider Selection Guide","lvl2":"Local Inference via LM Studio","lvl3":""}},
9875
9876
  {"objectID":"72e9be8e5b8e718308f0fe7360bcba27aae8b42fffa35be62d9a4ef188c470ae","title":"Local Inference via llama.cpp","url":"/docs/reference/provider-selection#local-inference-via-llamacpp","content":"Choose llama.cpp when you want the lowest-level, most resource-efficient local inference — especially on CPU or with heavily quantized GGUF models.\nWhen to choose: You need CPU-only inference; you want direct llama-server process control; you are running in a headless / server environment.\nProvider ID: llamacpp\nModel: Auto-discovered from the running llama-server (or pass an explicit model name).\nDefault base URL: http://localhost:8080/v1\nTool calling: Requires server to be started with --jinja flag.\nNot suitable for: PDF processing; production at scale without additional infrastructure.\nSetup: ./llama-server -m model.gguf --port 8080 [--jinja]","hierarchy":{"lvl0":"Reference","lvl1":"Provider Selection Guide","lvl2":"Local Inference via llama.cpp","lvl3":""}},
9876
9877
  {"objectID":"f6ce3650e34df2b638d084f777182ef05448c55cc7487917a52a5f6a3a2b4864","title":"Privacy-Critical Applications","url":"/docs/reference/provider-selection#privacy-critical-applications","content":"Recommended Stack:","hierarchy":{"lvl0":"Reference","lvl1":"Provider Selection Guide","lvl2":"Privacy-Critical Applications","lvl3":""}},
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juspay/neurolink",
3
- "version": "13.8.26",
3
+ "version": "13.8.28",
4
4
  "packageManager": "pnpm@10.34.9+sha512.f49b5a8ea0fdedb44bb3c0c1d6575092a53c2950d95b7ad15df11f17974877a2de3a01c07e934e9b28ce716e51c09a94962c7306d09be2e1e4b18a8c8762fd32",
5
5
  "description": "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/call) for routing, tool selection and context budgeting. MCP-native (4 transports), voice TTS/STT/realtime, RAG, agents, memory, compaction, 9 observability exporters. OpenAI · Anthropic · Gemini · Bedrock · Azure · Ollama · TypeSafe Jev and more.",
6
6
  "author": {