@pdfvector/util 0.0.17 → 0.0.18
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/.tsc/lib/tier.d.ts +1 -3
- package/.tsc/lib/tier.js +1 -4
- package/CHANGELOG.md +7 -0
- package/package.json +1 -1
package/.tsc/lib/tier.d.ts
CHANGED
|
@@ -20,9 +20,7 @@ export declare const specializedParseCosts: {
|
|
|
20
20
|
export declare const specializedAskExtractCosts: Record<ModelTier, number>;
|
|
21
21
|
/** Formats supported by all tiers (nano, mini, pro, max, auto). */
|
|
22
22
|
export declare const allTierFormats: readonly ["PDF", "Word (.docx)", "Excel (.xlsx)", "PowerPoint (.pptx)", "CSV", "Text (.txt, .md, .tsv, .xml)", "HTML", "RTF", "OpenDocument (.odt, .ods, .odp)", "EPUB", "Bibliography (.bib, .ris, .nbib, .enw)"];
|
|
23
|
-
/** Formats added by the
|
|
24
|
-
export declare const proTierAdditionalFormats: readonly ["Image (PNG, JPG)"];
|
|
25
|
-
/** Formats added by the max/auto tier (superset of pro). */
|
|
23
|
+
/** Formats added by the max/auto tier. */
|
|
26
24
|
export declare const maxTierAdditionalFormats: readonly ["Image (PNG, JPG, TIFF, BMP, HEIF)"];
|
|
27
25
|
/** Short human-readable summary of all supported formats. */
|
|
28
26
|
export declare const allSupportedFormatsShort = "PDF, DOCX, XLSX, PPTX, CSV, PNG, JPG, TIFF, BMP, HEIF, TXT, MD, TSV, XML, RTF, HTML, ODT, ODS, ODP, EPUB, BIB, RIS, NBIB, ENW";
|
package/.tsc/lib/tier.js
CHANGED
|
@@ -54,9 +54,7 @@ export const allTierFormats = [
|
|
|
54
54
|
"EPUB",
|
|
55
55
|
"Bibliography (.bib, .ris, .nbib, .enw)",
|
|
56
56
|
];
|
|
57
|
-
/** Formats added by the
|
|
58
|
-
export const proTierAdditionalFormats = ["Image (PNG, JPG)"];
|
|
59
|
-
/** Formats added by the max/auto tier (superset of pro). */
|
|
57
|
+
/** Formats added by the max/auto tier. */
|
|
60
58
|
export const maxTierAdditionalFormats = [
|
|
61
59
|
"Image (PNG, JPG, TIFF, BMP, HEIF)",
|
|
62
60
|
];
|
|
@@ -71,7 +69,6 @@ export const allSupportedFormatsLong = "PDF, Word (.docx), Excel (.xlsx), PowerP
|
|
|
71
69
|
/** Pre-built format note for API descriptions (used in contract model descriptions). */
|
|
72
70
|
export const formatsByTierDescription = "Supported formats by tier:\n" +
|
|
73
71
|
`- All tiers: ${allTierFormats.join(", ")}.\n` +
|
|
74
|
-
`- Pro adds: ${proTierAdditionalFormats.join(", ")}.\n` +
|
|
75
72
|
`- Max/Auto adds: ${maxTierAdditionalFormats.join(", ")}.`;
|
|
76
73
|
// ─── Academic credit costs ────────────────────────────────────────────
|
|
77
74
|
/** Academic/grant API: fixed credits per request */
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @pdfvector/util
|
|
2
2
|
|
|
3
|
+
## 0.0.18
|
|
4
|
+
### Patch Changes
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
- [#181](https://github.com/phuctm97/pdfvector/pull/181) [`383829a`](https://github.com/phuctm97/pdfvector/commit/383829a2d4239fd6640fbabafe725c4373a8a4aa) Thanks [@khanhduyvt0101](https://github.com/khanhduyvt0101)! - Restrict image parsing to max/auto tiers with Azure DI and add text pre-check
|
|
9
|
+
|
|
3
10
|
## 0.0.17
|
|
4
11
|
### Patch Changes
|
|
5
12
|
|