@mcowger/pi-plexus 1.8.0 → 1.8.1
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/extension.js +10 -3
- package/package.json +1 -1
package/dist/extension.js
CHANGED
|
@@ -665,8 +665,15 @@ function isPriorityEligible(modelId) {
|
|
|
665
665
|
}
|
|
666
666
|
return PRIORITY_EXTRA_FAMILIES.some((pattern) => pattern.test(id));
|
|
667
667
|
}
|
|
668
|
-
|
|
669
|
-
|
|
668
|
+
function isFlexEligible(modelId) {
|
|
669
|
+
const match = GPT_VERSION.exec(modelId.trim());
|
|
670
|
+
if (!match)
|
|
671
|
+
return false;
|
|
672
|
+
const major = Number(match[1]);
|
|
673
|
+
const minor = match[2] === undefined ? 0 : Number(match[2]);
|
|
674
|
+
return major > 5 || major === 5 && minor >= 5;
|
|
675
|
+
}
|
|
676
|
+
var ULTRAFAST_FAMILIES = [/^gpt-6(?:\.\d+)?-astra(?=$|-)/i, /^gpt-5\.6-sol(?=$|-)/i];
|
|
670
677
|
var OPENAI_RESPONSES_DIALECT = {
|
|
671
678
|
id: "openai-responses",
|
|
672
679
|
apis: OPENAI_RESPONSES_APIS,
|
|
@@ -678,7 +685,7 @@ var OPENAI_RESPONSES_DIALECT = {
|
|
|
678
685
|
case "priority":
|
|
679
686
|
return isPriorityEligible(modelId);
|
|
680
687
|
case "flex":
|
|
681
|
-
return
|
|
688
|
+
return isFlexEligible(modelId);
|
|
682
689
|
case "ultrafast":
|
|
683
690
|
return ULTRAFAST_FAMILIES.some((pattern) => pattern.test(modelId));
|
|
684
691
|
}
|