@anthonyhaussman/opencode-agy-auth 1.1.7 → 1.1.8-alpha.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/index.js +17 -2
- package/dist/index.js.map +1 -1
- package/dist/src/sdk/agy-cli-version.d.ts +1 -1
- package/package.json +5 -4
package/dist/index.js
CHANGED
|
@@ -268,7 +268,7 @@ function createAgyActivityRequestId() {
|
|
|
268
268
|
import os from "os";
|
|
269
269
|
|
|
270
270
|
// src/sdk/agy-cli-version.ts
|
|
271
|
-
var AGY_CLI_VERSION = "1.1.
|
|
271
|
+
var AGY_CLI_VERSION = "1.1.8";
|
|
272
272
|
|
|
273
273
|
// src/sdk/user-agent.ts
|
|
274
274
|
var cachedUserAgent = null;
|
|
@@ -17611,10 +17611,10 @@ function normalizeThinking(requestPayload, modelThinkingConfig, providerThinking
|
|
|
17611
17611
|
requestPayload.thinkingConfig,
|
|
17612
17612
|
rawGenerationConfig?.thinkingConfig
|
|
17613
17613
|
);
|
|
17614
|
-
const normalizedThinkingConfig = normalizeThinkingConfig(mergedThinkingConfig);
|
|
17615
17614
|
if (Object.prototype.hasOwnProperty.call(requestPayload, "thinkingConfig")) {
|
|
17616
17615
|
delete requestPayload.thinkingConfig;
|
|
17617
17616
|
}
|
|
17617
|
+
const normalizedThinkingConfig = normalizeThinkingConfig(mergedThinkingConfig);
|
|
17618
17618
|
if (!normalizedThinkingConfig) {
|
|
17619
17619
|
if (rawGenerationConfig) {
|
|
17620
17620
|
requestPayload.generationConfig = rawGenerationConfig;
|
|
@@ -18156,11 +18156,13 @@ var STATIC_MODELS_SIMPLE = {
|
|
|
18156
18156
|
};
|
|
18157
18157
|
var TIER_MAPPING = {
|
|
18158
18158
|
"gemini-3.6-flash": {
|
|
18159
|
+
minimal: "gemini-3.6-flash-low",
|
|
18159
18160
|
low: "gemini-3.6-flash-low",
|
|
18160
18161
|
medium: "gemini-3.6-flash-medium",
|
|
18161
18162
|
high: "gemini-3.6-flash-high"
|
|
18162
18163
|
},
|
|
18163
18164
|
"gemini-3.5-flash": {
|
|
18165
|
+
minimal: "gemini-3.5-flash-extra-low",
|
|
18164
18166
|
low: "gemini-3.5-flash-extra-low",
|
|
18165
18167
|
medium: "gemini-3.5-flash-low",
|
|
18166
18168
|
high: "gemini-3-flash-agent"
|
|
@@ -18175,7 +18177,20 @@ var buildModelFromSimple = (modelId, simple) => {
|
|
|
18175
18177
|
const isGpt = modelId.startsWith("gpt-");
|
|
18176
18178
|
let variants = void 0;
|
|
18177
18179
|
if (TIER_MAPPING[modelId]) {
|
|
18180
|
+
const hasMinimal = TIER_MAPPING[modelId].minimal !== void 0;
|
|
18178
18181
|
variants = {
|
|
18182
|
+
...hasMinimal ? {
|
|
18183
|
+
"minimal": {
|
|
18184
|
+
id: "minimal",
|
|
18185
|
+
name: "minimal",
|
|
18186
|
+
displayName: "minimal",
|
|
18187
|
+
title: "minimal",
|
|
18188
|
+
label: "minimal",
|
|
18189
|
+
options: { name: "minimal" },
|
|
18190
|
+
headers: { "x-agy-tier": "minimal" },
|
|
18191
|
+
thinkingConfig: { thinkingBudget: 1e3, includeThoughts: true }
|
|
18192
|
+
}
|
|
18193
|
+
} : {},
|
|
18179
18194
|
"low": { id: "low", name: "low", displayName: "low", title: "low", label: "low", options: { name: "low" }, headers: { "x-agy-tier": "low" } },
|
|
18180
18195
|
...TIER_MAPPING[modelId].medium !== void 0 ? { "medium": { id: "medium", name: "medium", displayName: "medium", title: "medium", label: "medium", options: { name: "medium" }, headers: { "x-agy-tier": "medium" } } } : {},
|
|
18181
18196
|
"high": { id: "high", name: "high", displayName: "high", title: "high", label: "high", options: { name: "high" }, headers: { "x-agy-tier": "high" } }
|