@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 +2 -2
- package/dist/adapters/video/videoAnalyzer.d.ts +5 -0
- package/dist/adapters/video/videoAnalyzer.js +10 -2
- package/dist/browser/neurolink.min.js +518 -518
- package/dist/core/constants.js +1 -1
- package/dist/factories/providerFactory.js +2 -2
- package/dist/providers/googleVertex/client.js +2 -2
- package/dist/utils/modelRouter.d.ts +1 -1
- package/dist/utils/modelRouter.js +1 -1
- package/dist/utils/pricing.js +8 -0
- package/dist/utils/videoAnalysisProcessor.js +1 -1
- package/package.json +1 -1
package/dist/core/constants.js
CHANGED
|
@@ -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-
|
|
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-
|
|
111
|
-
model = process.env.VERTEX_MODEL || "gemini-
|
|
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-
|
|
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-
|
|
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-
|
|
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;
|
package/dist/utils/pricing.js
CHANGED
|
@@ -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-
|
|
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.
|
|
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": {
|