@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.
@@ -181,7 +181,7 @@ export const DEFAULT_DOCUMENTATION_MAX_TOKENS = 12000; // For documentation gene
181
181
  export const PROVIDER_CONFIG = {
182
182
  evaluation: {
183
183
  maxTokens: DEFAULT_EVALUATION_MAX_TOKENS,
184
- model: "gemini-2.5-flash",
184
+ model: "gemini-3.8-flash",
185
185
  temperature: 0.3, // Lower temperature for consistent evaluation
186
186
  },
187
187
  analysis: {
@@ -107,8 +107,8 @@ export class ProviderFactory {
107
107
  if (!model) {
108
108
  // Check for provider-specific environment variables
109
109
  if (resolvedProviderName.toLowerCase().includes("vertex")) {
110
- // Use gemini-2.5-flash as default - latest GA model with best price-performance
111
- model = process.env.VERTEX_MODEL || "gemini-2.5-flash";
110
+ // Use gemini-3.8-flash as default - gemini-2.5-flash has a scheduled Vertex retirement date of 2026-10-20 (https://docs.cloud.google.com/vertex-ai/generative-ai/docs/learn/model-versions)
111
+ model = process.env.VERTEX_MODEL || "gemini-3.8-flash";
112
112
  }
113
113
  else if (resolvedProviderName.toLowerCase().includes("bedrock")) {
114
114
  model = process.env.BEDROCK_MODEL || process.env.BEDROCK_MODEL_ID;
@@ -371,9 +371,9 @@ export const resolveVertexLocation = (modelName, configuredLocation) => {
371
371
  */
372
372
  const resolveVertexRegionForModel = resolveVertexLocation;
373
373
  const getDefaultVertexModel = () => {
374
- // Use gemini-2.5-flash as default - latest and best price-performance model
374
+ // Use gemini-3.8-flash as default: gemini-2.5-flash has a scheduled Vertex retirement date of 2026-10-20 (https://docs.cloud.google.com/vertex-ai/generative-ai/docs/learn/model-versions)
375
375
  // Override with VERTEX_MODEL environment variable if needed
376
- return process.env.VERTEX_MODEL || "gemini-2.5-flash";
376
+ return process.env.VERTEX_MODEL || "gemini-3.8-flash";
377
377
  };
378
378
  const hasGoogleCredentials = () => {
379
379
  return !!(process.env.GOOGLE_APPLICATION_CREDENTIALS_NEUROLINK ||
@@ -10,7 +10,7 @@ declare const MODEL_CONFIGS: {
10
10
  readonly fast: {
11
11
  readonly primary: {
12
12
  readonly provider: "vertex";
13
- readonly model: "gemini-2.5-flash";
13
+ readonly model: "gemini-3.8-flash";
14
14
  readonly capabilities: readonly ["speed", "general", "code", "basic-reasoning"];
15
15
  readonly avgResponseTime: 800;
16
16
  readonly costPerToken: 0.0001;
@@ -20,7 +20,7 @@ const MODEL_CONFIGS = {
20
20
  fast: {
21
21
  primary: {
22
22
  provider: "vertex",
23
- model: "gemini-2.5-flash",
23
+ model: "gemini-3.8-flash",
24
24
  capabilities: ["speed", "general", "code", "basic-reasoning"],
25
25
  avgResponseTime: 800,
26
26
  costPerToken: 0.0001,
@@ -542,6 +542,14 @@ const PRICING = {
542
542
  output: 1.5 / 1_000_000,
543
543
  cacheRead: 0.025 / 1_000_000,
544
544
  },
545
+ // Gemini 3.8 Flash (default Vertex model). Standard paid-tier rate through
546
+ // 2026-12-31 (input $1.50 / output $7.50 / cache $0.15 per 1M from 2027-01-01):
547
+ // https://ai.google.dev/gemini-api/docs/pricing
548
+ "gemini-3.8-flash": {
549
+ input: 0.75 / 1_000_000,
550
+ output: 3.75 / 1_000_000,
551
+ cacheRead: 0.075 / 1_000_000,
552
+ },
545
553
  // Gemini 3.1 preview family
546
554
  // cacheRead = 0.25x input (cached content tokens; explicit-cache storage is
547
555
  // billed separately by TTL/time, so no per-token cacheCreation rate here).
@@ -50,7 +50,7 @@ export async function executeVideoAnalysis(messages, options) {
50
50
  ? undefined
51
51
  : process.env.GOOGLE_VERTEX_PROJECT || process.env.GOOGLE_CLOUD_PROJECT,
52
52
  location: options.region || process.env.GOOGLE_VERTEX_LOCATION,
53
- model: options.model || "gemini-2.5-flash",
53
+ model: options.model || "gemini-3.8-flash",
54
54
  });
55
55
  logger.debug("[VideoAnalysisProcessor] Video analysis completed", {
56
56
  hasResult: !!videoAnalysisText,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juspay/neurolink",
3
- "version": "13.8.29",
3
+ "version": "13.8.30",
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": {