@juspay/neurolink 11.3.1 → 11.4.0

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 (132) hide show
  1. package/CHANGELOG.md +3 -3
  2. package/dist/constants/enums.d.ts +1 -0
  3. package/dist/constants/enums.js +5 -1
  4. package/dist/lib/constants/enums.d.ts +1 -0
  5. package/dist/lib/constants/enums.js +5 -1
  6. package/dist/lib/models/manifestRegistry.d.ts +33 -0
  7. package/dist/lib/models/manifestRegistry.js +174 -0
  8. package/dist/lib/models/manifests/anthropic.d.ts +9 -0
  9. package/dist/lib/models/manifests/anthropic.js +346 -0
  10. package/dist/lib/models/manifests/azure.d.ts +2 -0
  11. package/dist/lib/models/manifests/azure.js +87 -0
  12. package/dist/lib/models/manifests/bedrock.d.ts +2 -0
  13. package/dist/lib/models/manifests/bedrock.js +75 -0
  14. package/dist/lib/models/manifests/cloudflare.d.ts +8 -0
  15. package/dist/lib/models/manifests/cloudflare.js +19 -0
  16. package/dist/lib/models/manifests/cohere.d.ts +8 -0
  17. package/dist/lib/models/manifests/cohere.js +19 -0
  18. package/dist/lib/models/manifests/deepseek.d.ts +8 -0
  19. package/dist/lib/models/manifests/deepseek.js +19 -0
  20. package/dist/lib/models/manifests/fireworks.d.ts +8 -0
  21. package/dist/lib/models/manifests/fireworks.js +19 -0
  22. package/dist/lib/models/manifests/google-ai.d.ts +2 -0
  23. package/dist/lib/models/manifests/google-ai.js +28 -0
  24. package/dist/lib/models/manifests/groq.d.ts +8 -0
  25. package/dist/lib/models/manifests/groq.js +19 -0
  26. package/dist/lib/models/manifests/huggingface.d.ts +8 -0
  27. package/dist/lib/models/manifests/huggingface.js +19 -0
  28. package/dist/lib/models/manifests/ideogram.d.ts +8 -0
  29. package/dist/lib/models/manifests/ideogram.js +19 -0
  30. package/dist/lib/models/manifests/jina.d.ts +8 -0
  31. package/dist/lib/models/manifests/jina.js +19 -0
  32. package/dist/lib/models/manifests/litellm.d.ts +8 -0
  33. package/dist/lib/models/manifests/litellm.js +19 -0
  34. package/dist/lib/models/manifests/llamacpp.d.ts +8 -0
  35. package/dist/lib/models/manifests/llamacpp.js +19 -0
  36. package/dist/lib/models/manifests/lm-studio.d.ts +8 -0
  37. package/dist/lib/models/manifests/lm-studio.js +19 -0
  38. package/dist/lib/models/manifests/mistral.d.ts +2 -0
  39. package/dist/lib/models/manifests/mistral.js +50 -0
  40. package/dist/lib/models/manifests/nvidia-nim.d.ts +8 -0
  41. package/dist/lib/models/manifests/nvidia-nim.js +19 -0
  42. package/dist/lib/models/manifests/ollama.d.ts +2 -0
  43. package/dist/lib/models/manifests/ollama.js +72 -0
  44. package/dist/lib/models/manifests/openai-compatible.d.ts +8 -0
  45. package/dist/lib/models/manifests/openai-compatible.js +19 -0
  46. package/dist/lib/models/manifests/openai.d.ts +11 -0
  47. package/dist/lib/models/manifests/openai.js +560 -0
  48. package/dist/lib/models/manifests/openrouter.d.ts +8 -0
  49. package/dist/lib/models/manifests/openrouter.js +19 -0
  50. package/dist/lib/models/manifests/perplexity.d.ts +8 -0
  51. package/dist/lib/models/manifests/perplexity.js +19 -0
  52. package/dist/lib/models/manifests/recraft.d.ts +8 -0
  53. package/dist/lib/models/manifests/recraft.js +19 -0
  54. package/dist/lib/models/manifests/replicate.d.ts +8 -0
  55. package/dist/lib/models/manifests/replicate.js +19 -0
  56. package/dist/lib/models/manifests/sagemaker.d.ts +8 -0
  57. package/dist/lib/models/manifests/sagemaker.js +19 -0
  58. package/dist/lib/models/manifests/stability.d.ts +8 -0
  59. package/dist/lib/models/manifests/stability.js +19 -0
  60. package/dist/lib/models/manifests/together-ai.d.ts +8 -0
  61. package/dist/lib/models/manifests/together-ai.js +19 -0
  62. package/dist/lib/models/manifests/vertex.d.ts +8 -0
  63. package/dist/lib/models/manifests/vertex.js +19 -0
  64. package/dist/lib/models/manifests/voyage.d.ts +8 -0
  65. package/dist/lib/models/manifests/voyage.js +19 -0
  66. package/dist/lib/models/manifests/xai.d.ts +8 -0
  67. package/dist/lib/models/manifests/xai.js +19 -0
  68. package/dist/lib/types/model.d.ts +77 -0
  69. package/dist/models/manifestRegistry.d.ts +33 -0
  70. package/dist/models/manifestRegistry.js +173 -0
  71. package/dist/models/manifests/anthropic.d.ts +9 -0
  72. package/dist/models/manifests/anthropic.js +345 -0
  73. package/dist/models/manifests/azure.d.ts +2 -0
  74. package/dist/models/manifests/azure.js +86 -0
  75. package/dist/models/manifests/bedrock.d.ts +2 -0
  76. package/dist/models/manifests/bedrock.js +74 -0
  77. package/dist/models/manifests/cloudflare.d.ts +8 -0
  78. package/dist/models/manifests/cloudflare.js +18 -0
  79. package/dist/models/manifests/cohere.d.ts +8 -0
  80. package/dist/models/manifests/cohere.js +18 -0
  81. package/dist/models/manifests/deepseek.d.ts +8 -0
  82. package/dist/models/manifests/deepseek.js +18 -0
  83. package/dist/models/manifests/fireworks.d.ts +8 -0
  84. package/dist/models/manifests/fireworks.js +18 -0
  85. package/dist/models/manifests/google-ai.d.ts +2 -0
  86. package/dist/models/manifests/google-ai.js +27 -0
  87. package/dist/models/manifests/groq.d.ts +8 -0
  88. package/dist/models/manifests/groq.js +18 -0
  89. package/dist/models/manifests/huggingface.d.ts +8 -0
  90. package/dist/models/manifests/huggingface.js +18 -0
  91. package/dist/models/manifests/ideogram.d.ts +8 -0
  92. package/dist/models/manifests/ideogram.js +18 -0
  93. package/dist/models/manifests/jina.d.ts +8 -0
  94. package/dist/models/manifests/jina.js +18 -0
  95. package/dist/models/manifests/litellm.d.ts +8 -0
  96. package/dist/models/manifests/litellm.js +18 -0
  97. package/dist/models/manifests/llamacpp.d.ts +8 -0
  98. package/dist/models/manifests/llamacpp.js +18 -0
  99. package/dist/models/manifests/lm-studio.d.ts +8 -0
  100. package/dist/models/manifests/lm-studio.js +18 -0
  101. package/dist/models/manifests/mistral.d.ts +2 -0
  102. package/dist/models/manifests/mistral.js +49 -0
  103. package/dist/models/manifests/nvidia-nim.d.ts +8 -0
  104. package/dist/models/manifests/nvidia-nim.js +18 -0
  105. package/dist/models/manifests/ollama.d.ts +2 -0
  106. package/dist/models/manifests/ollama.js +71 -0
  107. package/dist/models/manifests/openai-compatible.d.ts +8 -0
  108. package/dist/models/manifests/openai-compatible.js +18 -0
  109. package/dist/models/manifests/openai.d.ts +11 -0
  110. package/dist/models/manifests/openai.js +559 -0
  111. package/dist/models/manifests/openrouter.d.ts +8 -0
  112. package/dist/models/manifests/openrouter.js +18 -0
  113. package/dist/models/manifests/perplexity.d.ts +8 -0
  114. package/dist/models/manifests/perplexity.js +18 -0
  115. package/dist/models/manifests/recraft.d.ts +8 -0
  116. package/dist/models/manifests/recraft.js +18 -0
  117. package/dist/models/manifests/replicate.d.ts +8 -0
  118. package/dist/models/manifests/replicate.js +18 -0
  119. package/dist/models/manifests/sagemaker.d.ts +8 -0
  120. package/dist/models/manifests/sagemaker.js +18 -0
  121. package/dist/models/manifests/stability.d.ts +8 -0
  122. package/dist/models/manifests/stability.js +18 -0
  123. package/dist/models/manifests/together-ai.d.ts +8 -0
  124. package/dist/models/manifests/together-ai.js +18 -0
  125. package/dist/models/manifests/vertex.d.ts +8 -0
  126. package/dist/models/manifests/vertex.js +18 -0
  127. package/dist/models/manifests/voyage.d.ts +8 -0
  128. package/dist/models/manifests/voyage.js +18 -0
  129. package/dist/models/manifests/xai.d.ts +8 -0
  130. package/dist/models/manifests/xai.js +18 -0
  131. package/dist/types/model.d.ts +77 -0
  132. package/package.json +3 -2
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Minimal manifest: groq has no MODEL_REGISTRY entries today, so
3
+ * only the provider-wide fallback is known. Named models can be added here
4
+ * incrementally without touching any consumer — see Task 5 of the model
5
+ * metadata consolidation plan.
6
+ */
7
+ export const groqManifest = {
8
+ defaultContextWindow: 128000,
9
+ models: {
10
+ _default: {
11
+ aliases: [],
12
+ contextWindow: 128000,
13
+ maxOutputTokens: 64000,
14
+ vision: false,
15
+ functionCalling: false,
16
+ },
17
+ },
18
+ };
@@ -0,0 +1,8 @@
1
+ import type { ProviderModelManifest } from "../../types/index.js";
2
+ /**
3
+ * Minimal manifest: huggingface has no MODEL_REGISTRY entries today, so
4
+ * only the provider-wide fallback is known. Named models can be added here
5
+ * incrementally without touching any consumer — see Task 5 of the model
6
+ * metadata consolidation plan.
7
+ */
8
+ export declare const huggingfaceManifest: ProviderModelManifest;
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Minimal manifest: huggingface has no MODEL_REGISTRY entries today, so
3
+ * only the provider-wide fallback is known. Named models can be added here
4
+ * incrementally without touching any consumer — see Task 5 of the model
5
+ * metadata consolidation plan.
6
+ */
7
+ export const huggingfaceManifest = {
8
+ defaultContextWindow: 32000,
9
+ models: {
10
+ _default: {
11
+ aliases: [],
12
+ contextWindow: 32000,
13
+ maxOutputTokens: 32000,
14
+ vision: false,
15
+ functionCalling: false,
16
+ },
17
+ },
18
+ };
@@ -0,0 +1,8 @@
1
+ import type { ProviderModelManifest } from "../../types/index.js";
2
+ /**
3
+ * Minimal manifest: ideogram has no MODEL_REGISTRY entries today, so
4
+ * only the provider-wide fallback is known. Named models can be added here
5
+ * incrementally without touching any consumer — see Task 5 of the model
6
+ * metadata consolidation plan.
7
+ */
8
+ export declare const ideogramManifest: ProviderModelManifest;
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Minimal manifest: ideogram has no MODEL_REGISTRY entries today, so
3
+ * only the provider-wide fallback is known. Named models can be added here
4
+ * incrementally without touching any consumer — see Task 5 of the model
5
+ * metadata consolidation plan.
6
+ */
7
+ export const ideogramManifest = {
8
+ defaultContextWindow: 2000,
9
+ models: {
10
+ _default: {
11
+ aliases: [],
12
+ contextWindow: 2000,
13
+ maxOutputTokens: 2000,
14
+ vision: false,
15
+ functionCalling: false,
16
+ },
17
+ },
18
+ };
@@ -0,0 +1,8 @@
1
+ import type { ProviderModelManifest } from "../../types/index.js";
2
+ /**
3
+ * Minimal manifest: jina has no MODEL_REGISTRY entries today, so
4
+ * only the provider-wide fallback is known. Named models can be added here
5
+ * incrementally without touching any consumer — see Task 5 of the model
6
+ * metadata consolidation plan.
7
+ */
8
+ export declare const jinaManifest: ProviderModelManifest;
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Minimal manifest: jina has no MODEL_REGISTRY entries today, so
3
+ * only the provider-wide fallback is known. Named models can be added here
4
+ * incrementally without touching any consumer — see Task 5 of the model
5
+ * metadata consolidation plan.
6
+ */
7
+ export const jinaManifest = {
8
+ defaultContextWindow: 8192,
9
+ models: {
10
+ _default: {
11
+ aliases: [],
12
+ contextWindow: 8192,
13
+ maxOutputTokens: 8192,
14
+ vision: false,
15
+ functionCalling: false,
16
+ },
17
+ },
18
+ };
@@ -0,0 +1,8 @@
1
+ import type { ProviderModelManifest } from "../../types/index.js";
2
+ /**
3
+ * Minimal manifest: litellm has no MODEL_REGISTRY entries today, so
4
+ * only the provider-wide fallback is known. Named models can be added here
5
+ * incrementally without touching any consumer — see Task 5 of the model
6
+ * metadata consolidation plan.
7
+ */
8
+ export declare const litellmManifest: ProviderModelManifest;
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Minimal manifest: litellm has no MODEL_REGISTRY entries today, so
3
+ * only the provider-wide fallback is known. Named models can be added here
4
+ * incrementally without touching any consumer — see Task 5 of the model
5
+ * metadata consolidation plan.
6
+ */
7
+ export const litellmManifest = {
8
+ defaultContextWindow: 128000,
9
+ models: {
10
+ _default: {
11
+ aliases: [],
12
+ contextWindow: 128000,
13
+ maxOutputTokens: 128000,
14
+ vision: false,
15
+ functionCalling: false,
16
+ },
17
+ },
18
+ };
@@ -0,0 +1,8 @@
1
+ import type { ProviderModelManifest } from "../../types/index.js";
2
+ /**
3
+ * Minimal manifest: llamacpp has no MODEL_REGISTRY entries today, so
4
+ * only the provider-wide fallback is known. Named models can be added here
5
+ * incrementally without touching any consumer — see Task 5 of the model
6
+ * metadata consolidation plan.
7
+ */
8
+ export declare const llamacppManifest: ProviderModelManifest;
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Minimal manifest: llamacpp has no MODEL_REGISTRY entries today, so
3
+ * only the provider-wide fallback is known. Named models can be added here
4
+ * incrementally without touching any consumer — see Task 5 of the model
5
+ * metadata consolidation plan.
6
+ */
7
+ export const llamacppManifest = {
8
+ defaultContextWindow: 8192,
9
+ models: {
10
+ _default: {
11
+ aliases: [],
12
+ contextWindow: 8192,
13
+ maxOutputTokens: 8192,
14
+ vision: false,
15
+ functionCalling: false,
16
+ },
17
+ },
18
+ };
@@ -0,0 +1,8 @@
1
+ import type { ProviderModelManifest } from "../../types/index.js";
2
+ /**
3
+ * Minimal manifest: lm-studio has no MODEL_REGISTRY entries today, so
4
+ * only the provider-wide fallback is known. Named models can be added here
5
+ * incrementally without touching any consumer — see Task 5 of the model
6
+ * metadata consolidation plan.
7
+ */
8
+ export declare const lmStudioManifest: ProviderModelManifest;
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Minimal manifest: lm-studio has no MODEL_REGISTRY entries today, so
3
+ * only the provider-wide fallback is known. Named models can be added here
4
+ * incrementally without touching any consumer — see Task 5 of the model
5
+ * metadata consolidation plan.
6
+ */
7
+ export const lmStudioManifest = {
8
+ defaultContextWindow: 8192,
9
+ models: {
10
+ _default: {
11
+ aliases: [],
12
+ contextWindow: 8192,
13
+ maxOutputTokens: 8192,
14
+ vision: false,
15
+ functionCalling: false,
16
+ },
17
+ },
18
+ };
@@ -0,0 +1,2 @@
1
+ import type { ProviderModelManifest } from "../../types/index.js";
2
+ export declare const mistralManifest: ProviderModelManifest;
@@ -0,0 +1,49 @@
1
+ export const mistralManifest = {
2
+ defaultContextWindow: 128000,
3
+ models: {
4
+ "mistral-large-latest": {
5
+ aliases: ["mistral-large", "mistral-flagship"],
6
+ displayName: "Mistral Large",
7
+ contextWindow: 131072,
8
+ maxOutputTokens: 8192,
9
+ pricingPerMTok: { input: 2, output: 6 },
10
+ vision: true,
11
+ functionCalling: true,
12
+ reasoning: true,
13
+ jsonMode: true,
14
+ },
15
+ "mistral-small-latest": {
16
+ aliases: ["mistral-small", "mistral-cheap"],
17
+ displayName: "Mistral Small",
18
+ contextWindow: 32768,
19
+ maxOutputTokens: 8192,
20
+ pricingPerMTok: { input: 0.2, output: 0.6 },
21
+ vision: true,
22
+ functionCalling: true,
23
+ reasoning: true,
24
+ jsonMode: true,
25
+ },
26
+ "codestral-latest": {
27
+ aliases: ["codestral", "mistral-code"],
28
+ displayName: "Codestral",
29
+ contextWindow: 32768,
30
+ maxOutputTokens: 8192,
31
+ pricingPerMTok: { input: 0.3, output: 0.9 },
32
+ vision: false,
33
+ functionCalling: true,
34
+ reasoning: true,
35
+ jsonMode: true,
36
+ },
37
+ "pixtral-large": {
38
+ aliases: ["pixtral", "mistral-vision"],
39
+ displayName: "Pixtral Large",
40
+ contextWindow: 131072,
41
+ maxOutputTokens: 8192,
42
+ // pricingPerMTok omitted: hasPricing() reports no verified rate
43
+ vision: true,
44
+ functionCalling: true,
45
+ reasoning: true,
46
+ jsonMode: true,
47
+ },
48
+ },
49
+ };
@@ -0,0 +1,8 @@
1
+ import type { ProviderModelManifest } from "../../types/index.js";
2
+ /**
3
+ * Minimal manifest: nvidia-nim has no MODEL_REGISTRY entries today, so
4
+ * only the provider-wide fallback is known. Named models can be added here
5
+ * incrementally without touching any consumer — see Task 5 of the model
6
+ * metadata consolidation plan.
7
+ */
8
+ export declare const nvidiaNimManifest: ProviderModelManifest;
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Minimal manifest: nvidia-nim has no MODEL_REGISTRY entries today, so
3
+ * only the provider-wide fallback is known. Named models can be added here
4
+ * incrementally without touching any consumer — see Task 5 of the model
5
+ * metadata consolidation plan.
6
+ */
7
+ export const nvidiaNimManifest = {
8
+ defaultContextWindow: 128000,
9
+ models: {
10
+ _default: {
11
+ aliases: [],
12
+ contextWindow: 128000,
13
+ maxOutputTokens: 64000,
14
+ vision: false,
15
+ functionCalling: false,
16
+ },
17
+ },
18
+ };
@@ -0,0 +1,2 @@
1
+ import type { ProviderModelManifest } from "../../types/index.js";
2
+ export declare const ollamaManifest: ProviderModelManifest;
@@ -0,0 +1,71 @@
1
+ export const ollamaManifest = {
2
+ defaultContextWindow: 128000,
3
+ models: {
4
+ "llama4:latest": {
5
+ aliases: ["llama4", "llama4-local"],
6
+ displayName: "Llama 4",
7
+ contextWindow: 131072,
8
+ maxOutputTokens: 8192,
9
+ // pricingPerMTok omitted: hasPricing() reports no verified rate
10
+ vision: true,
11
+ functionCalling: true,
12
+ reasoning: true,
13
+ jsonMode: true,
14
+ },
15
+ "llama3.3:latest": {
16
+ aliases: ["llama3.3", "llama3.3-local"],
17
+ displayName: "Llama 3.3",
18
+ contextWindow: 131072,
19
+ maxOutputTokens: 8192,
20
+ // pricingPerMTok omitted: hasPricing() reports no verified rate
21
+ vision: false,
22
+ functionCalling: true,
23
+ reasoning: true,
24
+ jsonMode: true,
25
+ },
26
+ "llama3.2:latest": {
27
+ aliases: ["llama3.2", "llama", "local", "offline"],
28
+ displayName: "Llama 3.2 Latest",
29
+ contextWindow: 131072,
30
+ maxOutputTokens: 8192,
31
+ // pricingPerMTok omitted: hasPricing() reports no verified rate
32
+ vision: false,
33
+ functionCalling: false,
34
+ reasoning: true,
35
+ jsonMode: false,
36
+ },
37
+ "deepseek-r1:70b": {
38
+ aliases: ["deepseek-r1", "deepseek-reasoning", "local-reasoning"],
39
+ displayName: "DeepSeek-R1 70B",
40
+ contextWindow: 65536,
41
+ maxOutputTokens: 8192,
42
+ // pricingPerMTok omitted: hasPricing() reports no verified rate
43
+ vision: false,
44
+ functionCalling: false,
45
+ reasoning: true,
46
+ jsonMode: false,
47
+ },
48
+ "qwen3:72b": {
49
+ aliases: ["qwen3", "qwen3-72b-local"],
50
+ displayName: "Qwen 3 72B",
51
+ contextWindow: 131072,
52
+ maxOutputTokens: 8192,
53
+ // pricingPerMTok omitted: hasPricing() reports no verified rate
54
+ vision: false,
55
+ functionCalling: true,
56
+ reasoning: true,
57
+ jsonMode: true,
58
+ },
59
+ "mistral-large:latest": {
60
+ aliases: ["mistral-large-local"],
61
+ displayName: "Mistral Large (Local)",
62
+ contextWindow: 131072,
63
+ maxOutputTokens: 8192,
64
+ // pricingPerMTok omitted: hasPricing() reports no verified rate
65
+ vision: false,
66
+ functionCalling: true,
67
+ reasoning: true,
68
+ jsonMode: true,
69
+ },
70
+ },
71
+ };
@@ -0,0 +1,8 @@
1
+ import type { ProviderModelManifest } from "../../types/index.js";
2
+ /**
3
+ * Minimal manifest: openai-compatible has no MODEL_REGISTRY entries today, so
4
+ * only the provider-wide fallback is known. Named models can be added here
5
+ * incrementally without touching any consumer — see Task 5 of the model
6
+ * metadata consolidation plan.
7
+ */
8
+ export declare const openaiCompatibleManifest: ProviderModelManifest;
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Minimal manifest: openai-compatible has no MODEL_REGISTRY entries today, so
3
+ * only the provider-wide fallback is known. Named models can be added here
4
+ * incrementally without touching any consumer — see Task 5 of the model
5
+ * metadata consolidation plan.
6
+ */
7
+ export const openaiCompatibleManifest = {
8
+ defaultContextWindow: 128000,
9
+ models: {
10
+ _default: {
11
+ aliases: [],
12
+ contextWindow: 128000,
13
+ maxOutputTokens: 64000,
14
+ vision: false,
15
+ functionCalling: false,
16
+ },
17
+ },
18
+ };
@@ -0,0 +1,11 @@
1
+ import type { ProviderModelManifest } from "../../types/index.js";
2
+ /**
3
+ * OpenAI model manifest. contextWindow values come from
4
+ * MODEL_CONTEXT_WINDOWS.openai (src/lib/constants/contextWindows.ts), which
5
+ * disagrees with MODEL_REGISTRY.limits.maxContextTokens for several ids
6
+ * (e.g. gpt-5: 400_000 here vs 256_000 there) — MODEL_CONTEXT_WINDOWS wins
7
+ * as the more actively-maintained store. maxOutputTokens/aliases/capability
8
+ * flags come from MODEL_REGISTRY (src/lib/models/modelRegistry.ts:30-984).
9
+ * pricingPerMTok comes from PRICING.openai (src/lib/utils/pricing.ts).
10
+ */
11
+ export declare const openaiManifest: ProviderModelManifest;