@juspay/neurolink 11.26.2 → 11.27.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.
- package/CHANGELOG.md +3 -3
- package/dist/adapters/providerImageAdapter.js +20 -0
- package/dist/browser/neurolink.min.js +397 -397
- package/dist/constants/contextWindows.d.ts +18 -4
- package/dist/constants/contextWindows.js +35 -4
- package/dist/core/constants.js +59 -1
- package/dist/models/anthropicModels.d.ts +3 -6
- package/dist/models/anthropicModels.js +97 -123
- package/dist/models/manifestRegistry.d.ts +9 -0
- package/dist/models/manifestRegistry.js +23 -0
- package/dist/models/manifests/anthropic.js +5 -3
- package/dist/models/manifests/azure.js +6 -1
- package/dist/models/modelRegistry.d.ts +22 -2
- package/dist/models/modelRegistry.js +143 -8
- package/dist/providers/amazonSagemaker.d.ts +1 -1
- package/dist/providers/sagemaker/language-model.d.ts +2 -2
- package/dist/utils/pricing.js +51 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
## [11.
|
|
1
|
+
## [11.27.0](https://github.com/juspay/neurolink/compare/v11.26.2...v11.27.0) (2026-08-25)
|
|
2
2
|
|
|
3
|
-
###
|
|
3
|
+
### Features
|
|
4
4
|
|
|
5
|
-
- **(
|
|
5
|
+
- **(models):** the five metadata stores read the manifests as their source of truth ([605f648](https://github.com/juspay/neurolink/commit/605f648b7038e8566aec2127c971a792475dee36))
|
|
6
6
|
|
|
7
7
|
## [11.2.3](https://github.com/juspay/neurolink/compare/v11.2.2...v11.2.3) (2026-08-19)
|
|
8
8
|
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { ImageProcessor } from "../utils/imageProcessor.js";
|
|
6
6
|
import { logger } from "../utils/logger.js";
|
|
7
|
+
import { resolveManifestEntryStrict } from "../models/manifestRegistry.js";
|
|
7
8
|
/**
|
|
8
9
|
* Simplified logger for essential error reporting only
|
|
9
10
|
*/
|
|
@@ -630,6 +631,25 @@ export class ProviderImageAdapter {
|
|
|
630
631
|
process.env.ANTHROPIC_BASE_URL) {
|
|
631
632
|
return true;
|
|
632
633
|
}
|
|
634
|
+
// Manifest is the source of truth when it has an entry for this exact
|
|
635
|
+
// model or a declared alias ONLY — strict, no prefix fallback: a
|
|
636
|
+
// manifest "gpt-4" prefix hit must never shadow the legacy table's
|
|
637
|
+
// explicit "gpt-4-vision-preview" row, and a fabricated id must not
|
|
638
|
+
// borrow a real family's capabilities. Everything without a real
|
|
639
|
+
// manifest match falls through to the legacy tables below unchanged.
|
|
640
|
+
const manifestEntry = resolveManifestEntryStrict(normalizedProvider, model ?? "");
|
|
641
|
+
if (manifestEntry) {
|
|
642
|
+
if (!model) {
|
|
643
|
+
return true;
|
|
644
|
+
}
|
|
645
|
+
if (manifestEntry.vision) {
|
|
646
|
+
return true;
|
|
647
|
+
}
|
|
648
|
+
if (PROXY_PROVIDERS.has(normalizedProvider)) {
|
|
649
|
+
return true;
|
|
650
|
+
}
|
|
651
|
+
return false;
|
|
652
|
+
}
|
|
633
653
|
const supportedModels = VISION_CAPABILITIES[normalizedProvider];
|
|
634
654
|
if (!supportedModels) {
|
|
635
655
|
return false;
|