@kenkaiiii/gg-ai 4.3.171 → 4.3.173
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.cjs
CHANGED
|
@@ -734,11 +734,7 @@ function toOpenAIToolChoice(choice) {
|
|
|
734
734
|
if (choice === "required") return "required";
|
|
735
735
|
return { type: "function", function: { name: choice.name } };
|
|
736
736
|
}
|
|
737
|
-
function
|
|
738
|
-
return /^gpt-5\.\d+-pro$/i.test(model);
|
|
739
|
-
}
|
|
740
|
-
function toOpenAIReasoningEffort(level, model) {
|
|
741
|
-
if (isOpenAIProVariant(model) && level === "low") return "medium";
|
|
737
|
+
function toOpenAIReasoningEffort(level, _model) {
|
|
742
738
|
return level;
|
|
743
739
|
}
|
|
744
740
|
function normalizeAnthropicStopReason(reason) {
|
|
@@ -1576,9 +1572,13 @@ async function* runStream3(options) {
|
|
|
1576
1572
|
const requestId = parsed.requestId ?? response.headers.get("x-request-id") ?? response.headers.get("openai-request-id") ?? void 0;
|
|
1577
1573
|
let hint;
|
|
1578
1574
|
if (response.status === 400 && text.includes("not supported")) {
|
|
1579
|
-
|
|
1575
|
+
if (options.model === "gpt-5.5-pro") {
|
|
1576
|
+
hint = "Use gpt-5.5 instead. OpenAI's Codex model catalog does not list gpt-5.5-pro.";
|
|
1577
|
+
} else {
|
|
1578
|
+
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.";
|
|
1579
|
+
}
|
|
1580
1580
|
} else if (response.status === 404 && text.includes("does not exist")) {
|
|
1581
|
-
hint = "
|
|
1581
|
+
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.";
|
|
1582
1582
|
}
|
|
1583
1583
|
throw new ProviderError("openai", message, {
|
|
1584
1584
|
statusCode: response.status,
|