@kenkaiiii/gg-ai 5.65.0 → 5.66.0
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 +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -40,7 +40,7 @@ Tool parameters are Zod schemas. Converted to JSON Schema at the provider bounda
|
|
|
40
40
|
|
|
41
41
|
| Provider | Models | Notes |
|
|
42
42
|
|---|---|---|
|
|
43
|
-
| `anthropic` | Claude Opus 5.5, Sonnet 5, Haiku 4.5 | Extended thinking, prompt caching, server-side compaction |
|
|
43
|
+
| `anthropic` | Claude Opus 5.5, Sonnet 5.5, Haiku 4.5 | Extended thinking, prompt caching, server-side compaction |
|
|
44
44
|
| `openai` | GPT-4.1, o3, o4-mini | Supports OAuth (codex endpoint) and API keys |
|
|
45
45
|
| `glm` | GLM-5.3 | Z.AI platform, OpenAI-compatible |
|
|
46
46
|
| `moonshot` | Kimi K3, Kimi K2.8 Preview, Kimi K2.7 Code | Moonshot platform, OpenAI-compatible |
|
package/dist/index.cjs
CHANGED
|
@@ -1096,7 +1096,7 @@ function isAdaptiveThinkingModel(model) {
|
|
|
1096
1096
|
function toAnthropicThinking(level, maxTokens, model) {
|
|
1097
1097
|
if (isAdaptiveThinkingModel(model)) {
|
|
1098
1098
|
let effort = level;
|
|
1099
|
-
if (effort === "xhigh" && !/opus-5|opus-4-8|opus-4-7/.test(model)) {
|
|
1099
|
+
if (effort === "xhigh" && !/opus-5|opus-4-8|opus-4-7|sonnet-5[-.]5/.test(model)) {
|
|
1100
1100
|
effort = "high";
|
|
1101
1101
|
}
|
|
1102
1102
|
return {
|
|
@@ -2618,7 +2618,7 @@ async function encodeCodexRequest(body) {
|
|
|
2618
2618
|
}
|
|
2619
2619
|
}
|
|
2620
2620
|
function usesResponsesLite(model) {
|
|
2621
|
-
return model.startsWith("gpt-5.6-") || model.startsWith("gpt-6-");
|
|
2621
|
+
return model.startsWith("gpt-5.6-") || model.startsWith("gpt-6-") || model.startsWith("gpt-6.");
|
|
2622
2622
|
}
|
|
2623
2623
|
function outputTextKey(itemId, contentIndex) {
|
|
2624
2624
|
return `${itemId ?? ""}:${contentIndex ?? 0}`;
|
|
@@ -2737,7 +2737,7 @@ async function* runStream3(options, retriedWithoutReasoning = false) {
|
|
|
2737
2737
|
if (response.status === 400 && message === `The '${options.model}' model is not supported when using Codex with a ChatGPT account.`) {
|
|
2738
2738
|
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.";
|
|
2739
2739
|
} else if (response.status === 404 && text.includes("does not exist")) {
|
|
2740
|
-
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.";
|
|
2740
|
+
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.";
|
|
2741
2741
|
}
|
|
2742
2742
|
throw new ProviderError("openai", message, {
|
|
2743
2743
|
statusCode: response.status,
|