@kenkaiiii/gg-ai 5.65.1 → 5.66.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/README.md +1 -1
- package/dist/index.cjs +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1029,7 +1029,7 @@ function isAdaptiveThinkingModel(model) {
|
|
|
1029
1029
|
function toAnthropicThinking(level, maxTokens, model) {
|
|
1030
1030
|
if (isAdaptiveThinkingModel(model)) {
|
|
1031
1031
|
let effort = level;
|
|
1032
|
-
if (effort === "xhigh" && !/opus-5|opus-4-8|opus-4-7/.test(model)) {
|
|
1032
|
+
if (effort === "xhigh" && !/opus-5|opus-4-8|opus-4-7|sonnet-5[-.]5/.test(model)) {
|
|
1033
1033
|
effort = "high";
|
|
1034
1034
|
}
|
|
1035
1035
|
return {
|
|
@@ -2505,7 +2505,7 @@ function extractRequestIdFromMessage(message) {
|
|
|
2505
2505
|
|
|
2506
2506
|
// src/providers/openai-codex.ts
|
|
2507
2507
|
var DEFAULT_BASE_URL = "https://chatgpt.com/backend-api";
|
|
2508
|
-
var CODEX_CLIENT_VERSION = "0.
|
|
2508
|
+
var CODEX_CLIENT_VERSION = "0.159.1";
|
|
2509
2509
|
var CODEX_REQUEST_COMPRESSION_MIN_BYTES = 16 * 1024;
|
|
2510
2510
|
var zstdInitPromise;
|
|
2511
2511
|
async function encodeCodexRequest(body) {
|
|
@@ -2551,7 +2551,7 @@ async function encodeCodexRequest(body) {
|
|
|
2551
2551
|
}
|
|
2552
2552
|
}
|
|
2553
2553
|
function usesResponsesLite(model) {
|
|
2554
|
-
return model.startsWith("gpt-5.6-") || model.startsWith("gpt-6-");
|
|
2554
|
+
return model.startsWith("gpt-5.6-") || model.startsWith("gpt-6-") || model.startsWith("gpt-6.");
|
|
2555
2555
|
}
|
|
2556
2556
|
function outputTextKey(itemId, contentIndex) {
|
|
2557
2557
|
return `${itemId ?? ""}:${contentIndex ?? 0}`;
|
|
@@ -2670,7 +2670,7 @@ async function* runStream3(options, retriedWithoutReasoning = false) {
|
|
|
2670
2670
|
if (response.status === 400 && message === `The '${options.model}' model is not supported when using Codex with a ChatGPT account.`) {
|
|
2671
2671
|
hint = "This model is not available through your ChatGPT account. Switch to a model listed for OpenAI via the model selector, or check your ChatGPT usage limits.";
|
|
2672
2672
|
} else if (response.status === 404 && text.includes("does not exist")) {
|
|
2673
|
-
hint = "This model is not in OpenAI's current catalog for your ChatGPT account. Switch to GPT-6 Astra, GPT-6 Sol, or GPT-6 Luna via the model selector.";
|
|
2673
|
+
hint = "This model is not in OpenAI's current catalog for your ChatGPT account. Switch to GPT-6 Astra, GPT-6.1 Sol, or GPT-6 Luna via the model selector.";
|
|
2674
2674
|
}
|
|
2675
2675
|
throw new ProviderError("openai", message, {
|
|
2676
2676
|
statusCode: response.status,
|