@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.mjs
CHANGED
|
@@ -327,10 +327,12 @@ var openaiChatResponseSchema = lazySchema(
|
|
|
327
327
|
annotations: z2.array(
|
|
328
328
|
z2.object({
|
|
329
329
|
type: z2.literal("url_citation"),
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
330
|
+
url_citation: z2.object({
|
|
331
|
+
start_index: z2.number(),
|
|
332
|
+
end_index: z2.number(),
|
|
333
|
+
url: z2.string(),
|
|
334
|
+
title: z2.string()
|
|
335
|
+
})
|
|
334
336
|
})
|
|
335
337
|
).nullish()
|
|
336
338
|
}),
|
|
@@ -394,10 +396,12 @@ var openaiChatChunkSchema = lazySchema(
|
|
|
394
396
|
annotations: z2.array(
|
|
395
397
|
z2.object({
|
|
396
398
|
type: z2.literal("url_citation"),
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
399
|
+
url_citation: z2.object({
|
|
400
|
+
start_index: z2.number(),
|
|
401
|
+
end_index: z2.number(),
|
|
402
|
+
url: z2.string(),
|
|
403
|
+
title: z2.string()
|
|
404
|
+
})
|
|
401
405
|
})
|
|
402
406
|
).nullish()
|
|
403
407
|
}).nullish(),
|
|
@@ -835,8 +839,8 @@ var OpenAIChatLanguageModel = class {
|
|
|
835
839
|
type: "source",
|
|
836
840
|
sourceType: "url",
|
|
837
841
|
id: generateId(),
|
|
838
|
-
url: annotation.url,
|
|
839
|
-
title: annotation.title
|
|
842
|
+
url: annotation.url_citation.url,
|
|
843
|
+
title: annotation.url_citation.title
|
|
840
844
|
});
|
|
841
845
|
}
|
|
842
846
|
const completionTokenDetails = (_d = response.usage) == null ? void 0 : _d.completion_tokens_details;
|
|
@@ -1051,8 +1055,8 @@ var OpenAIChatLanguageModel = class {
|
|
|
1051
1055
|
type: "source",
|
|
1052
1056
|
sourceType: "url",
|
|
1053
1057
|
id: generateId(),
|
|
1054
|
-
url: annotation.url,
|
|
1055
|
-
title: annotation.title
|
|
1058
|
+
url: annotation.url_citation.url,
|
|
1059
|
+
title: annotation.url_citation.title
|
|
1056
1060
|
});
|
|
1057
1061
|
}
|
|
1058
1062
|
}
|