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 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "promptimizer",
3
- "version": "0.1.61",
3
+ "version": "0.1.63",
4
4
  "description": "OpenAI-compatible SDK for Promptimizer — BYOK model routing, classification, and prompt caching.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",