@juspay/neurolink 12.49.2 → 12.49.3

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/CHANGELOG.md CHANGED
@@ -1,8 +1,8 @@
1
- ## [12.49.2](https://github.com/juspay/neurolink/compare/v12.49.1...v12.49.2) (2026-10-07)
1
+ ## [12.49.3](https://github.com/juspay/neurolink/compare/v12.49.2...v12.49.3) (2026-10-07)
2
2
 
3
3
  ### Bug Fixes
4
4
 
5
- - **(providers):** report the Gemini finish reasons that cut a turn short as more than stop ([386ea2d](https://github.com/juspay/neurolink/commit/386ea2d916c5b514ddce11efc70675606e3e4880))
5
+ - **(core):** send the remaining Google SDK clients through the proxy and match NO_PROXY like curl ([12bee55](https://github.com/juspay/neurolink/commit/12bee5548d131b91e547d5a401c50829ab9e741a))
6
6
 
7
7
  ## [11.2.3](https://github.com/juspay/neurolink/compare/v11.2.2...v11.2.3) (2026-08-19)
8
8
 
@@ -8,6 +8,7 @@
8
8
  */
9
9
  import { AIProviderName, ErrorSeverity, ErrorCategory, } from "../../constants/enums.js";
10
10
  import { logger } from "../../utils/logger.js";
11
+ import { googleSdkProxyHttpOptions } from "../../proxy/proxyFetch.js";
11
12
  import { readFile } from "node:fs/promises";
12
13
  import { NeuroLinkError, ErrorFactory } from "../../utils/errorHandling.js";
13
14
  // ---------------------------------------------------------------------------
@@ -123,7 +124,12 @@ export async function analyzeVideoWithVertexAI(messages, options = {}) {
123
124
  model,
124
125
  frameCount,
125
126
  });
126
- const ai = new GoogleGenAI({ vertexai: true, project, location });
127
+ const ai = new GoogleGenAI({
128
+ vertexai: true,
129
+ project,
130
+ location,
131
+ httpOptions: googleSdkProxyHttpOptions(),
132
+ });
127
133
  const response = await ai.models.generateContent({
128
134
  model,
129
135
  config: buildConfig(),
@@ -160,7 +166,10 @@ export async function analyzeVideoWithGeminiAPI(messages, options = {}) {
160
166
  model,
161
167
  frameCount,
162
168
  });
163
- const ai = new GoogleGenAI({ apiKey });
169
+ const ai = new GoogleGenAI({
170
+ apiKey,
171
+ httpOptions: googleSdkProxyHttpOptions(),
172
+ });
164
173
  logger.debug("[GeminiVideoAnalyzer] Generating analysis with frames");
165
174
  const response = await ai.models.generateContent({
166
175
  model,
@@ -800,10 +800,12 @@ const policyFreeTools = {
800
800
  }
801
801
  const limitedResults = Math.min(Math.max(maxResults, 1), 5);
802
802
  const { GoogleGenAI } = await import("@google/genai");
803
+ const { googleSdkProxyHttpOptions } = await import("../proxy/proxyFetch.js");
803
804
  const vertex_ai = new GoogleGenAI({
804
805
  vertexai: true,
805
806
  project: hasProjectId,
806
807
  location: projectLocation,
808
+ httpOptions: googleSdkProxyHttpOptions(),
807
809
  });
808
810
  const websearchModel = resolveWebsearchModel();
809
811
  const startTime = Date.now();