@zenning/openai 1.4.2 → 1.4.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.js +14 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +14 -3
- package/dist/index.mjs.map +1 -1
- package/internal/dist/index.js +14 -3
- package/internal/dist/index.js.map +1 -1
- package/internal/dist/index.mjs +14 -3
- package/internal/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2476,8 +2476,14 @@ var OpenAIResponsesLanguageModel = class {
|
|
|
2476
2476
|
source: {
|
|
2477
2477
|
sourceType: "url",
|
|
2478
2478
|
id: (_h = (_g = (_f = self.config).generateId) == null ? void 0 : _g.call(_f)) != null ? _h : (0, import_provider_utils9.generateId)(),
|
|
2479
|
-
|
|
2480
|
-
|
|
2479
|
+
file: value.annotation.type && value.annotation.type === "file_citation" ? {
|
|
2480
|
+
type: value.annotation.type,
|
|
2481
|
+
file_id: value.annotation.file_id,
|
|
2482
|
+
filename: value.annotation.filename,
|
|
2483
|
+
index: value.annotation.index
|
|
2484
|
+
} : void 0,
|
|
2485
|
+
url: value.annotation.type && value.annotation.type === "url_citation" ? value.annotation.url : void 0,
|
|
2486
|
+
title: value.annotation.type && value.annotation.type === "url_citation" ? value.annotation.title : void 0
|
|
2481
2487
|
}
|
|
2482
2488
|
});
|
|
2483
2489
|
}
|
|
@@ -2580,7 +2586,12 @@ var responseAnnotationAddedSchema = import_zod7.z.object({
|
|
|
2580
2586
|
type: import_zod7.z.literal("url_citation"),
|
|
2581
2587
|
url: import_zod7.z.string(),
|
|
2582
2588
|
title: import_zod7.z.string()
|
|
2583
|
-
})
|
|
2589
|
+
}).or(import_zod7.z.object({
|
|
2590
|
+
type: import_zod7.z.literal("file_citation"),
|
|
2591
|
+
file_id: import_zod7.z.string(),
|
|
2592
|
+
filename: import_zod7.z.string(),
|
|
2593
|
+
index: import_zod7.z.number()
|
|
2594
|
+
}))
|
|
2584
2595
|
});
|
|
2585
2596
|
var responseReasoningSummaryTextDeltaSchema = import_zod7.z.object({
|
|
2586
2597
|
type: import_zod7.z.literal("response.reasoning_summary_text.delta"),
|