@ai-sdk/openai 3.0.0-beta.95 → 3.0.0-beta.97
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 +14 -0
- package/dist/index.js +17 -13
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +17 -13
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.js +16 -12
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +16 -12
- package/dist/internal/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/internal/index.js
CHANGED
|
@@ -373,10 +373,12 @@ var openaiChatResponseSchema = (0, import_provider_utils3.lazySchema)(
|
|
|
373
373
|
annotations: import_v42.z.array(
|
|
374
374
|
import_v42.z.object({
|
|
375
375
|
type: import_v42.z.literal("url_citation"),
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
376
|
+
url_citation: import_v42.z.object({
|
|
377
|
+
start_index: import_v42.z.number(),
|
|
378
|
+
end_index: import_v42.z.number(),
|
|
379
|
+
url: import_v42.z.string(),
|
|
380
|
+
title: import_v42.z.string()
|
|
381
|
+
})
|
|
380
382
|
})
|
|
381
383
|
).nullish()
|
|
382
384
|
}),
|
|
@@ -440,10 +442,12 @@ var openaiChatChunkSchema = (0, import_provider_utils3.lazySchema)(
|
|
|
440
442
|
annotations: import_v42.z.array(
|
|
441
443
|
import_v42.z.object({
|
|
442
444
|
type: import_v42.z.literal("url_citation"),
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
445
|
+
url_citation: import_v42.z.object({
|
|
446
|
+
start_index: import_v42.z.number(),
|
|
447
|
+
end_index: import_v42.z.number(),
|
|
448
|
+
url: import_v42.z.string(),
|
|
449
|
+
title: import_v42.z.string()
|
|
450
|
+
})
|
|
447
451
|
})
|
|
448
452
|
).nullish()
|
|
449
453
|
}).nullish(),
|
|
@@ -879,8 +883,8 @@ var OpenAIChatLanguageModel = class {
|
|
|
879
883
|
type: "source",
|
|
880
884
|
sourceType: "url",
|
|
881
885
|
id: (0, import_provider_utils5.generateId)(),
|
|
882
|
-
url: annotation.url,
|
|
883
|
-
title: annotation.title
|
|
886
|
+
url: annotation.url_citation.url,
|
|
887
|
+
title: annotation.url_citation.title
|
|
884
888
|
});
|
|
885
889
|
}
|
|
886
890
|
const completionTokenDetails = (_d = response.usage) == null ? void 0 : _d.completion_tokens_details;
|
|
@@ -1095,8 +1099,8 @@ var OpenAIChatLanguageModel = class {
|
|
|
1095
1099
|
type: "source",
|
|
1096
1100
|
sourceType: "url",
|
|
1097
1101
|
id: (0, import_provider_utils5.generateId)(),
|
|
1098
|
-
url: annotation.url,
|
|
1099
|
-
title: annotation.title
|
|
1102
|
+
url: annotation.url_citation.url,
|
|
1103
|
+
title: annotation.url_citation.title
|
|
1100
1104
|
});
|
|
1101
1105
|
}
|
|
1102
1106
|
}
|