@juspay/neurolink 12.49.2 → 12.49.4
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 +3 -2
- package/dist/adapters/video/videoAnalyzer.js +11 -2
- package/dist/agent/directTools.js +2 -0
- package/dist/browser/neurolink.min.js +427 -427
- package/dist/constants/contextWindows.d.ts +4 -0
- package/dist/constants/contextWindows.js +47 -0
- package/dist/providers/amazonBedrock/client.d.ts +8 -0
- package/dist/providers/amazonBedrock/client.js +43 -18
- package/dist/providers/googleVertex/client.js +31 -8
- package/dist/providers/openAI/client.d.ts +9 -0
- package/dist/providers/openAI/client.js +50 -20
- package/dist/proxy/utils/noProxyUtils.d.ts +11 -6
- package/dist/proxy/utils/noProxyUtils.js +118 -31
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
## [12.49.
|
|
1
|
+
## [12.49.4](https://github.com/juspay/neurolink/compare/v12.49.3...v12.49.4) (2026-10-07)
|
|
2
2
|
|
|
3
3
|
### Bug Fixes
|
|
4
4
|
|
|
5
|
-
- **(providers):**
|
|
5
|
+
- **(providers):** reject embeddings that come back empty or short from Vertex, Bedrock and OpenAI ([545bfb8](https://github.com/juspay/neurolink/commit/545bfb80259a97caab63711def0010e57bd6a7c1))
|
|
6
|
+
- **(providers):** resolve Bedrock cross-region ids to their model's context window ([30ead2d](https://github.com/juspay/neurolink/commit/30ead2d7e2b52276f945888ced30598bef68988a))
|
|
6
7
|
|
|
7
8
|
## [11.2.3](https://github.com/juspay/neurolink/compare/v11.2.2...v11.2.3) (2026-08-19)
|
|
8
9
|
|
|
@@ -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({
|
|
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({
|
|
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();
|