@axlsdk/axl 0.25.2 → 0.25.3
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 +23 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +23 -9
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -581,7 +581,7 @@ var sharedGuard = typeof installedGuard === "object" && installedGuard !== null
|
|
|
581
581
|
var buildPath = typeof __AXL_BUILD_PATH__ === "string" ? __AXL_BUILD_PATH__ : "<source>";
|
|
582
582
|
var thisCopy = {
|
|
583
583
|
path: buildPath.startsWith("file:") ? (0, import_node_url.fileURLToPath)(buildPath) : buildPath,
|
|
584
|
-
version: true ? "0.25.
|
|
584
|
+
version: true ? "0.25.3" : "unknown"
|
|
585
585
|
};
|
|
586
586
|
function warnCrossCopy(other, joined) {
|
|
587
587
|
if (other === thisCopy) return;
|
|
@@ -3850,7 +3850,7 @@ var OPENAI_PRICING = {
|
|
|
3850
3850
|
"gpt-4.1-mini": [4e-7, 16e-7, 0.25],
|
|
3851
3851
|
"gpt-4.1-nano": [1e-7, 4e-7, 0.25],
|
|
3852
3852
|
o3: [2e-6, 8e-6, 0.25],
|
|
3853
|
-
"o3-mini": [11e-7, 44e-7, 0.
|
|
3853
|
+
"o3-mini": [11e-7, 44e-7, 0.5],
|
|
3854
3854
|
"o4-mini": [11e-7, 44e-7, 0.25],
|
|
3855
3855
|
"gpt-5": [125e-8, 1e-5, 0.1],
|
|
3856
3856
|
"gpt-5-mini": [25e-8, 2e-6, 0.1],
|
|
@@ -3873,6 +3873,13 @@ var DIRECT_OPENAI_CATALOG = [
|
|
|
3873
3873
|
long: { input: 20 / M, cachedInput: 2 / M, cacheWrite: 25 / M, output: 75 / M },
|
|
3874
3874
|
contextBoundary: LONG_CONTEXT_BOUNDARY
|
|
3875
3875
|
},
|
|
3876
|
+
{
|
|
3877
|
+
aliases: ["gpt-6.1-sol"],
|
|
3878
|
+
// Rechecked 2026-10-15 against https://developers.openai.com/api/docs/pricing.
|
|
3879
|
+
short: { input: 2 / M, cachedInput: 0.1 / M, cacheWrite: 2.5 / M, output: 10 / M },
|
|
3880
|
+
long: { input: 4 / M, cachedInput: 0.2 / M, cacheWrite: 5 / M, output: 15 / M },
|
|
3881
|
+
contextBoundary: LONG_CONTEXT_BOUNDARY
|
|
3882
|
+
},
|
|
3876
3883
|
{
|
|
3877
3884
|
aliases: ["gpt-6-sol"],
|
|
3878
3885
|
short: { input: 2 / M, cachedInput: 0.2 / M, cacheWrite: 2.5 / M, output: 10 / M },
|
|
@@ -4252,12 +4259,12 @@ var BASE_EFFORTS = ["minimal", "low", "medium", "high"];
|
|
|
4252
4259
|
function bothEndpoints(value) {
|
|
4253
4260
|
return { chat: value, responses: value };
|
|
4254
4261
|
}
|
|
4255
|
-
function gpt6(id,
|
|
4262
|
+
function gpt6(id, responsesEfforts, chatTools, chatEfforts = responsesEfforts) {
|
|
4256
4263
|
return {
|
|
4257
4264
|
id,
|
|
4258
4265
|
family: "gpt-6",
|
|
4259
4266
|
reasoning: true,
|
|
4260
|
-
efforts:
|
|
4267
|
+
efforts: { chat: chatEfforts, responses: responsesEfforts },
|
|
4261
4268
|
defaultEffort: "medium",
|
|
4262
4269
|
// Same policy as GPT-5.x: a portable `temperature` is dropped while
|
|
4263
4270
|
// reasoning is active (including the active default). A raw
|
|
@@ -4285,6 +4292,13 @@ function gpt56(id) {
|
|
|
4285
4292
|
var OPENAI_EXACT_MODELS = new Map(
|
|
4286
4293
|
[
|
|
4287
4294
|
gpt6("gpt-6-astra", ["low", "medium", "high", "xhigh", "max"], "never"),
|
|
4295
|
+
// Live Chat Completions rejects max; Responses accepts it (2026-10-15).
|
|
4296
|
+
gpt6("gpt-6.1-sol", ["low", "medium", "high", "xhigh", "max"], "never", [
|
|
4297
|
+
"low",
|
|
4298
|
+
"medium",
|
|
4299
|
+
"high",
|
|
4300
|
+
"xhigh"
|
|
4301
|
+
]),
|
|
4288
4302
|
gpt6("gpt-6-sol", ["none", "low", "medium", "high", "xhigh", "max"], "effort-none-only"),
|
|
4289
4303
|
gpt6("gpt-6-luna", ["none", "low", "medium", "high", "xhigh", "max"], "effort-none-only"),
|
|
4290
4304
|
gpt56("gpt-5.6"),
|
|
@@ -4428,15 +4442,15 @@ function validateOpenAIFinalRequestBody(body, endpoint) {
|
|
|
4428
4442
|
}
|
|
4429
4443
|
}
|
|
4430
4444
|
if (activeReasoning) {
|
|
4445
|
+
const remediation = (key) => descriptor.efforts[endpoint].includes("none") ? `Remove ${key} or set reasoning effort to 'none'.` : `Remove ${key}; ${model} does not support reasoning effort 'none'.`;
|
|
4431
4446
|
const forbidden = endpoint === "chat" ? ["temperature", "top_p", "top_logprobs", "logprobs"] : ["temperature", "top_p", "top_logprobs"];
|
|
4432
4447
|
for (const key of forbidden) {
|
|
4433
|
-
if (body[key] !== void 0)
|
|
4434
|
-
fail(key, `Remove ${key} or set reasoning effort to 'none' on Sol or Luna.`);
|
|
4448
|
+
if (body[key] !== void 0) fail(key, remediation(key));
|
|
4435
4449
|
}
|
|
4436
4450
|
if (endpoint === "responses" && Array.isArray(body.include) && body.include.includes("message.output_text.logprobs")) {
|
|
4437
4451
|
fail(
|
|
4438
4452
|
"message.output_text.logprobs",
|
|
4439
|
-
"
|
|
4453
|
+
remediation("message.output_text.logprobs from include")
|
|
4440
4454
|
);
|
|
4441
4455
|
}
|
|
4442
4456
|
}
|
|
@@ -4489,8 +4503,8 @@ var OpenAIProvider = class extends OpenAICompatibleProvider {
|
|
|
4489
4503
|
constructor(options = {}) {
|
|
4490
4504
|
super({ profile: OPENAI_PROFILE, ...options });
|
|
4491
4505
|
}
|
|
4492
|
-
/** Report a clamped `effort` — Chat
|
|
4493
|
-
*
|
|
4506
|
+
/** Report a clamped `effort` — Chat caps `'max'` at `'xhigh'` on GPT-5.6 and
|
|
4507
|
+
* GPT-6.1 Sol, and maps `'none'` to the model's supported floor. */
|
|
4494
4508
|
effortResolution(options) {
|
|
4495
4509
|
return resolveOpenAIEffortResolution(
|
|
4496
4510
|
options,
|