@kenkaiiii/gg-ai 4.3.171 → 4.3.172
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 +7 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -685,11 +685,7 @@ function toOpenAIToolChoice(choice) {
|
|
|
685
685
|
if (choice === "required") return "required";
|
|
686
686
|
return { type: "function", function: { name: choice.name } };
|
|
687
687
|
}
|
|
688
|
-
function
|
|
689
|
-
return /^gpt-5\.\d+-pro$/i.test(model);
|
|
690
|
-
}
|
|
691
|
-
function toOpenAIReasoningEffort(level, model) {
|
|
692
|
-
if (isOpenAIProVariant(model) && level === "low") return "medium";
|
|
688
|
+
function toOpenAIReasoningEffort(level, _model) {
|
|
693
689
|
return level;
|
|
694
690
|
}
|
|
695
691
|
function normalizeAnthropicStopReason(reason) {
|
|
@@ -1527,9 +1523,13 @@ async function* runStream3(options) {
|
|
|
1527
1523
|
const requestId = parsed.requestId ?? response.headers.get("x-request-id") ?? response.headers.get("openai-request-id") ?? void 0;
|
|
1528
1524
|
let hint;
|
|
1529
1525
|
if (response.status === 400 && text.includes("not supported")) {
|
|
1530
|
-
|
|
1526
|
+
if (options.model === "gpt-5.5-pro") {
|
|
1527
|
+
hint = "Use gpt-5.5 instead. OpenAI's Codex model catalog does not list gpt-5.5-pro.";
|
|
1528
|
+
} else {
|
|
1529
|
+
hint = "This model is not available through Codex for the authenticated account. Run /model and choose a model listed for OpenAI Codex, or check your Codex model picker/usage limits.";
|
|
1530
|
+
}
|
|
1531
1531
|
} else if (response.status === 404 && text.includes("does not exist")) {
|
|
1532
|
-
hint = "
|
|
1532
|
+
hint = "This model is not in the current OpenAI Codex catalog for this account. Try gpt-5.5, gpt-5.4, gpt-5.4-mini, or gpt-5.3-codex.";
|
|
1533
1533
|
}
|
|
1534
1534
|
throw new ProviderError("openai", message, {
|
|
1535
1535
|
statusCode: response.status,
|