@juspay/neurolink 13.8.29 → 13.8.30

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
- ## [13.8.29](https://github.com/juspay/neurolink/compare/v13.8.28...v13.8.29) (2026-10-31)
1
+ ## [13.8.30](https://github.com/juspay/neurolink/compare/v13.8.29...v13.8.30) (2026-10-31)
2
2
 
3
3
  ### Bug Fixes
4
4
 
5
- - **(deps):** move glob to 14 and archiver's minimatch to 11 to close two new advisories ([10934ff](https://github.com/juspay/neurolink/commit/10934ffd0db310a55ff86c62b85cce7e12ea73e7))
5
+ - **(vertex):** default to gemini-3.8-flash now that gemini-2.5-flash is retired on Vertex ([6faf790](https://github.com/juspay/neurolink/commit/6faf79092c87156186893353e515351e9874e866))
6
6
 
7
7
  ## [11.2.3](https://github.com/juspay/neurolink/compare/v11.2.2...v11.2.3) (2026-08-19)
8
8
 
@@ -9,6 +9,11 @@
9
9
  import { AIProviderName } from "../../constants/enums.js";
10
10
  import "../../services/server/ai/observability/instrumentation.js";
11
11
  import type { ModelMessage } from "../../types/index.js";
12
+ /**
13
+ * Same policy as the text path: gemini-* models go to the global endpoint,
14
+ * since regional endpoints 404 for Gemini 3.x.
15
+ */
16
+ export declare function resolveVideoLocation(model: string, configuredLocation: string): string;
12
17
  export declare function analyzeVideoWithVertexAI(messages: ModelMessage[], options?: {
13
18
  project?: string;
14
19
  location?: string;
@@ -15,10 +15,11 @@ import { googleSdkProxyHttpOptions } from "../../proxy/proxyFetch.js";
15
15
  import "../../services/server/ai/observability/instrumentation.js";
16
16
  import { readFile } from "node:fs/promises";
17
17
  import { NeuroLinkError, ErrorFactory } from "../../utils/errorHandling.js";
18
+ import { resolveVertexLocation } from "../../providers/googleVertex/client.js";
18
19
  // ---------------------------------------------------------------------------
19
20
  // Shared config
20
21
  // ---------------------------------------------------------------------------
21
- const DEFAULT_MODEL = "gemini-2.5-flash";
22
+ const DEFAULT_MODEL = "gemini-3.8-flash";
22
23
  const DEFAULT_LOCATION = "us-central1";
23
24
  /**
24
25
  * Extract content items from user messages
@@ -111,14 +112,21 @@ Ensure the final response is fully self-sufficient and does not reference extern
111
112
  // ---------------------------------------------------------------------------
112
113
  // Vertex AI
113
114
  // ---------------------------------------------------------------------------
115
+ /**
116
+ * Same policy as the text path: gemini-* models go to the global endpoint,
117
+ * since regional endpoints 404 for Gemini 3.x.
118
+ */
119
+ export function resolveVideoLocation(model, configuredLocation) {
120
+ return resolveVertexLocation(model, configuredLocation);
121
+ }
114
122
  export async function analyzeVideoWithVertexAI(messages, options = {}) {
115
123
  const startTime = Date.now();
116
124
  const { GoogleGenAI } = await import("@google/genai");
117
125
  // Get default config and merge with provided options
118
126
  const config = await getVertexConfig();
119
127
  const project = options.project ?? config.project;
120
- const location = options.location ?? config.location;
121
128
  const model = options.model || DEFAULT_MODEL;
129
+ const location = resolveVideoLocation(model, options.location ?? config.location);
122
130
  // Convert frames content to parts array for Gemini
123
131
  const parts = buildContentParts(messages);
124
132
  const frameCount = parts.filter((part) => "inlineData" in part && part.inlineData).length;