@juspay/neurolink 12.12.11 → 12.12.13
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/browser/neurolink.min.js +216 -216
- package/dist/constants/contextWindows.js +1 -0
- package/dist/constants/enums.d.ts +1 -0
- package/dist/constants/enums.js +7 -0
- package/dist/core/baseProvider.js +4 -4
- package/dist/core/modules/structuredOutputPolicy.d.ts +6 -6
- package/dist/core/modules/structuredOutputPolicy.js +6 -6
- package/dist/core/nativeGenerateLoop.js +11 -0
- package/dist/core/nativeToolFormat.js +2 -2
- package/dist/factories/providerDescriptors.js +1 -1
- package/dist/factories/providerRegistry.js +4 -1
- package/dist/neurolink.js +1 -1
- package/dist/providers/amazonSagemaker.js +1 -0
- package/dist/providers/anthropic/cacheControl.d.ts +3 -3
- package/dist/providers/anthropic/cacheControl.js +3 -3
- package/dist/providers/anthropic/client.js +26 -8
- package/dist/providers/configuredOpenAICompat.d.ts +1 -1
- package/dist/providers/configuredOpenAICompat.js +1 -1
- package/dist/providers/googleAiStudio/client.js +2 -3
- package/dist/providers/googleVertex/client.js +2 -2
- package/dist/providers/nvidiaNim/client.js +11 -1
- package/dist/providers/openaiChatCompletionsBase.d.ts +4 -4
- package/dist/providers/openaiChatCompletionsBase.js +11 -10
- package/dist/types/context.d.ts +0 -22
- package/dist/types/generate.d.ts +2 -17
- package/dist/types/providers.d.ts +1 -27
- package/dist/utils/anthropicCacheBreakpoints.d.ts +6 -6
- package/dist/utils/anthropicCacheBreakpoints.js +6 -6
- package/dist/utils/json/coerce.d.ts +3 -2
- package/dist/utils/json/coerce.js +3 -2
- package/dist/utils/modelChoices.js +1 -1
- package/dist/utils/pricing.js +8 -0
- package/dist/utils/tokenUtils.d.ts +0 -1
- package/dist/utils/tokenUtils.js +0 -1
- package/dist/utils/tool.js +0 -3
- package/docs-site/static/search-index.json +1 -1
- package/package.json +3 -1
- package/dist/context/stepBudgetGuard.d.ts +0 -61
- package/dist/context/stepBudgetGuard.js +0 -357
- package/dist/core/serviceRegistry.d.ts +0 -40
- package/dist/core/serviceRegistry.js +0 -112
|
@@ -420,7 +420,7 @@ export const DEFAULT_MODELS = {
|
|
|
420
420
|
[AIProviderName.OPENROUTER]: OpenRouterModels.CLAUDE_SONNET_4_5,
|
|
421
421
|
[AIProviderName.OPENAI_COMPATIBLE]: "gpt-4o",
|
|
422
422
|
[AIProviderName.DEEPSEEK]: DeepSeekModels.DEEPSEEK_CHAT,
|
|
423
|
-
[AIProviderName.NVIDIA_NIM]: NvidiaNimModels.
|
|
423
|
+
[AIProviderName.NVIDIA_NIM]: NvidiaNimModels.GPT_OSS_20B,
|
|
424
424
|
// LM Studio + llama.cpp auto-discover their loaded model from /v1/models;
|
|
425
425
|
// an empty default is the documented signal to use that path.
|
|
426
426
|
[AIProviderName.LM_STUDIO]: "",
|
package/dist/utils/pricing.js
CHANGED
|
@@ -500,6 +500,14 @@ const PRICING = {
|
|
|
500
500
|
},
|
|
501
501
|
},
|
|
502
502
|
"nvidia-nim": {
|
|
503
|
+
// Source: NVIDIA build.nvidia.com listed rates for openai/gpt-oss-20b,
|
|
504
|
+
// read 2026-09-06. NIM prices and models both rot — this PR exists
|
|
505
|
+
// because the default model was decommissioned — so re-check against
|
|
506
|
+
// https://build.nvidia.com/openai/gpt-oss-20b rather than trusting this.
|
|
507
|
+
"openai/gpt-oss-20b": {
|
|
508
|
+
input: 0.05 / 1_000_000,
|
|
509
|
+
output: 0.2 / 1_000_000,
|
|
510
|
+
},
|
|
503
511
|
"meta/llama-3.3-70b-instruct": {
|
|
504
512
|
input: 0.4 / 1_000_000,
|
|
505
513
|
output: 0.4 / 1_000_000,
|
package/dist/utils/tokenUtils.js
CHANGED
package/dist/utils/tool.js
CHANGED
|
@@ -41,6 +41,3 @@ export function jsonSchema(schema, options = {}) {
|
|
|
41
41
|
return wrapper;
|
|
42
42
|
}
|
|
43
43
|
export const stepCountIs = (stepCount) => ({ steps }) => steps.length === stepCount;
|
|
44
|
-
// `Output` still comes from the upstream package: its only consumer is the
|
|
45
|
-
// GenerationHandler path that the native provider loops made unreachable, and
|
|
46
|
-
// that whole path is removed in a following change rather than kept alive here.
|