promptimizer 0.1.61 → 0.1.63
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/dist/index.cjs +3 -0
- package/dist/index.js +3 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -252,6 +252,9 @@ function complexityOf(h, category) {
|
|
|
252
252
|
if (category === "factual_recall" && h.words < 28 && !h.design && !h.reason && !h.debug) {
|
|
253
253
|
score = Math.min(score, 2);
|
|
254
254
|
}
|
|
255
|
+
if (h.words <= 8 && !h.design && !h.reason && !h.debug && !h.code_fence && !h.code_kw && !h.safety && !h.multi_part) {
|
|
256
|
+
score = Math.min(score, 2);
|
|
257
|
+
}
|
|
255
258
|
if (category === "math" && h.words < 24 && !h.reason) {
|
|
256
259
|
score = Math.min(Math.max(score, 1), 2);
|
|
257
260
|
}
|
package/dist/index.js
CHANGED
|
@@ -217,6 +217,9 @@ function complexityOf(h, category) {
|
|
|
217
217
|
if (category === "factual_recall" && h.words < 28 && !h.design && !h.reason && !h.debug) {
|
|
218
218
|
score = Math.min(score, 2);
|
|
219
219
|
}
|
|
220
|
+
if (h.words <= 8 && !h.design && !h.reason && !h.debug && !h.code_fence && !h.code_kw && !h.safety && !h.multi_part) {
|
|
221
|
+
score = Math.min(score, 2);
|
|
222
|
+
}
|
|
220
223
|
if (category === "math" && h.words < 24 && !h.reason) {
|
|
221
224
|
score = Math.min(Math.max(score, 1), 2);
|
|
222
225
|
}
|
package/package.json
CHANGED