@juspay/neurolink 12.55.1 → 12.55.2

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.
package/dist/neurolink.js CHANGED
@@ -202,6 +202,14 @@ const isNonRetryableForPool = sharedIsNonRetryableForPool;
202
202
  * writes already scheduled before releasing the condenser.
203
203
  */
204
204
  const MEMORY_WRITE_TIMEOUT_MS = 30_000;
205
+ /** Native tags share the health check's endpoint precedence and origin. */
206
+ function getOllamaTagsUrl() {
207
+ const baseUrl = process.env.OLLAMA_BASE_URL ||
208
+ process.env.OLLAMA_API_BASE ||
209
+ "http://localhost:11434";
210
+ // Native /api/tags is at the origin even if the compatible base ends /v1.
211
+ return new URL("/api/tags", baseUrl).toString();
212
+ }
205
213
  /**
206
214
  * NeuroLink - Universal AI Development Platform
207
215
  *
@@ -2730,7 +2738,7 @@ Current user's request: ${currentInput}`;
2730
2738
  // For Ollama, check if service is running and model is available
2731
2739
  if (route.provider === "ollama") {
2732
2740
  try {
2733
- const response = await fetch("http://localhost:11434/api/tags", {
2741
+ const response = await fetch(getOllamaTagsUrl(), {
2734
2742
  method: "GET",
2735
2743
  signal: AbortSignal.timeout(2000),
2736
2744
  });
@@ -2868,7 +2876,7 @@ Current user's request: ${currentInput}`;
2868
2876
  // For Ollama, check if service is running and model is available
2869
2877
  if (route.provider === "ollama") {
2870
2878
  try {
2871
- const response = await fetch("http://localhost:11434/api/tags", {
2879
+ const response = await fetch(getOllamaTagsUrl(), {
2872
2880
  method: "GET",
2873
2881
  signal: AbortSignal.timeout(2000),
2874
2882
  });
@@ -11893,7 +11901,7 @@ Current user's request: ${currentInput}`;
11893
11901
  // Special handling for Ollama
11894
11902
  if (providerName === "ollama") {
11895
11903
  try {
11896
- const response = await fetch("http://localhost:11434/api/tags", {
11904
+ const response = await fetch(getOllamaTagsUrl(), {
11897
11905
  method: "GET",
11898
11906
  signal: AbortSignal.timeout(PROVIDER_TIMEOUTS.AUTH_MS),
11899
11907
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juspay/neurolink",
3
- "version": "12.55.1",
3
+ "version": "12.55.2",
4
4
  "packageManager": "pnpm@10.15.1",
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": {
@@ -146,6 +146,7 @@
146
146
  "test:stream-structured-output": "pnpm exec tsx test/continuous-test-suite-stream-structured-output.ts",
147
147
  "test:browser-bundle": "pnpm exec tsx test/continuous-test-suite-browser-bundle.ts",
148
148
  "test:providers-mocked": "pnpm exec tsx test/continuous-test-suite-providers-mocked.ts",
149
+ "test:image-download-transport": "pnpm exec tsx test/continuous-test-suite-image-download-transport.ts",
149
150
  "test:decide-contract": "pnpm exec tsx test/continuous-test-suite-decide-provider-contract.ts",
150
151
  "test:acceptance-gate": "pnpm exec tsx test/continuous-test-suite-acceptance-gate.ts",
151
152
  "test:cli-fallback": "pnpm exec tsx test/continuous-test-suite-cli-fallback.ts",