@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.
Files changed (42) hide show
  1. package/CHANGELOG.md +2 -2
  2. package/dist/browser/neurolink.min.js +216 -216
  3. package/dist/constants/contextWindows.js +1 -0
  4. package/dist/constants/enums.d.ts +1 -0
  5. package/dist/constants/enums.js +7 -0
  6. package/dist/core/baseProvider.js +4 -4
  7. package/dist/core/modules/structuredOutputPolicy.d.ts +6 -6
  8. package/dist/core/modules/structuredOutputPolicy.js +6 -6
  9. package/dist/core/nativeGenerateLoop.js +11 -0
  10. package/dist/core/nativeToolFormat.js +2 -2
  11. package/dist/factories/providerDescriptors.js +1 -1
  12. package/dist/factories/providerRegistry.js +4 -1
  13. package/dist/neurolink.js +1 -1
  14. package/dist/providers/amazonSagemaker.js +1 -0
  15. package/dist/providers/anthropic/cacheControl.d.ts +3 -3
  16. package/dist/providers/anthropic/cacheControl.js +3 -3
  17. package/dist/providers/anthropic/client.js +26 -8
  18. package/dist/providers/configuredOpenAICompat.d.ts +1 -1
  19. package/dist/providers/configuredOpenAICompat.js +1 -1
  20. package/dist/providers/googleAiStudio/client.js +2 -3
  21. package/dist/providers/googleVertex/client.js +2 -2
  22. package/dist/providers/nvidiaNim/client.js +11 -1
  23. package/dist/providers/openaiChatCompletionsBase.d.ts +4 -4
  24. package/dist/providers/openaiChatCompletionsBase.js +11 -10
  25. package/dist/types/context.d.ts +0 -22
  26. package/dist/types/generate.d.ts +2 -17
  27. package/dist/types/providers.d.ts +1 -27
  28. package/dist/utils/anthropicCacheBreakpoints.d.ts +6 -6
  29. package/dist/utils/anthropicCacheBreakpoints.js +6 -6
  30. package/dist/utils/json/coerce.d.ts +3 -2
  31. package/dist/utils/json/coerce.js +3 -2
  32. package/dist/utils/modelChoices.js +1 -1
  33. package/dist/utils/pricing.js +8 -0
  34. package/dist/utils/tokenUtils.d.ts +0 -1
  35. package/dist/utils/tokenUtils.js +0 -1
  36. package/dist/utils/tool.js +0 -3
  37. package/docs-site/static/search-index.json +1 -1
  38. package/package.json +3 -1
  39. package/dist/context/stepBudgetGuard.d.ts +0 -61
  40. package/dist/context/stepBudgetGuard.js +0 -357
  41. package/dist/core/serviceRegistry.d.ts +0 -40
  42. 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.LLAMA_3_3_70B_INSTRUCT,
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]: "",
@@ -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,
@@ -3,7 +3,6 @@
3
3
  * Handles multiple provider formats and optional fields
4
4
  *
5
5
  * Consolidates token extraction logic from:
6
- * - GenerationHandler.ts
7
6
  * - analytics.ts
8
7
  * - streamAnalytics.ts
9
8
  */
@@ -3,7 +3,6 @@
3
3
  * Handles multiple provider formats and optional fields
4
4
  *
5
5
  * Consolidates token extraction logic from:
6
- * - GenerationHandler.ts
7
6
  * - analytics.ts
8
7
  * - streamAnalytics.ts
9
8
  */
@@ -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.