@absolutejs/ai 0.6.6 → 0.6.7

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/CHANGELOG.md CHANGED
@@ -6,6 +6,12 @@ This file is generated by `absolute-changelog` from the entries in
6
6
  `changelog/`. Edit an entry, not this file — and add new ones under
7
7
  `changelog/unreleased/`.
8
8
 
9
+ ## 0.6.7 — 2026-10-22
10
+
11
+ ### Fixed
12
+
13
+ - **Retain the requested model when validating legacy document checkpoints after provider recovery**
14
+
9
15
  ## 0.6.6 — 2026-10-22
10
16
 
11
17
  ### Changed
package/changelog.json CHANGED
@@ -2,6 +2,16 @@
2
2
  "contract": 1,
3
3
  "name": "@absolutejs/ai",
4
4
  "releases": [
5
+ {
6
+ "changes": [
7
+ {
8
+ "kind": "fixed",
9
+ "summary": "Retain the requested model when validating legacy document checkpoints after provider recovery"
10
+ }
11
+ ],
12
+ "date": "2026-10-22",
13
+ "version": "0.6.7"
14
+ },
5
15
  {
6
16
  "changes": [
7
17
  {
package/dist/ai/index.js CHANGED
@@ -9063,6 +9063,7 @@ var hashText = async (text) => {
9063
9063
  return Array.from(new Uint8Array(digest), (byte) => byte.toString(16).padStart(2, "0")).join("");
9064
9064
  };
9065
9065
  var prepareAITextInputInternal = async (provider, params, options, stopAfterSection) => {
9066
+ const requestedModel = params.model;
9066
9067
  if (options.providerFallback)
9067
9068
  params = { ...params };
9068
9069
  const inspectBudget = async (_provider, request) => {
@@ -9130,7 +9131,10 @@ var prepareAITextInputInternal = async (provider, params, options, stopAfterSect
9130
9131
  }));
9131
9132
  const compatibleHashes = new Set([taskHash]);
9132
9133
  if (options.providerFallback && options.checkpoint) {
9133
- for (const model of providerFallbackModels(params.model, options.providerFallback)) {
9134
+ for (const model of new Set([
9135
+ ...providerFallbackModels(requestedModel, options.providerFallback),
9136
+ ...providerFallbackModels(params.model, options.providerFallback)
9137
+ ])) {
9134
9138
  compatibleHashes.add(await hashText(JSON.stringify({
9135
9139
  preparationPolicyVersion: 3,
9136
9140
  preparationModel: options.preparationModel,
@@ -9582,5 +9586,5 @@ export {
9582
9586
  xai
9583
9587
  };
9584
9588
 
9585
- //# debugId=3224ABE1580A431764756E2164756E21
9589
+ //# debugId=09EF9D42933CF31D64756E2164756E21
9586
9590
  //# sourceMappingURL=index.js.map