@ai-sdk/openai 2.0.55 → 2.0.56
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 +6 -0
- package/dist/index.js +17 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +17 -3
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.js +16 -2
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +16 -2
- package/dist/internal/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/internal/index.js
CHANGED
|
@@ -3699,7 +3699,14 @@ var OpenAIResponsesLanguageModel = class {
|
|
|
3699
3699
|
id: (_i = (_h = (_g = this.config).generateId) == null ? void 0 : _h.call(_g)) != null ? _i : (0, import_provider_utils29.generateId)(),
|
|
3700
3700
|
mediaType: "text/plain",
|
|
3701
3701
|
title: (_k = (_j = annotation.quote) != null ? _j : annotation.filename) != null ? _k : "Document",
|
|
3702
|
-
filename: (_l = annotation.filename) != null ? _l : annotation.file_id
|
|
3702
|
+
filename: (_l = annotation.filename) != null ? _l : annotation.file_id,
|
|
3703
|
+
...annotation.file_id ? {
|
|
3704
|
+
providerMetadata: {
|
|
3705
|
+
openai: {
|
|
3706
|
+
fileId: annotation.file_id
|
|
3707
|
+
}
|
|
3708
|
+
}
|
|
3709
|
+
} : {}
|
|
3703
3710
|
});
|
|
3704
3711
|
}
|
|
3705
3712
|
}
|
|
@@ -4277,7 +4284,14 @@ var OpenAIResponsesLanguageModel = class {
|
|
|
4277
4284
|
id: (_s = (_r = (_q = self.config).generateId) == null ? void 0 : _r.call(_q)) != null ? _s : (0, import_provider_utils29.generateId)(),
|
|
4278
4285
|
mediaType: "text/plain",
|
|
4279
4286
|
title: (_u = (_t = value.annotation.quote) != null ? _t : value.annotation.filename) != null ? _u : "Document",
|
|
4280
|
-
filename: (_v = value.annotation.filename) != null ? _v : value.annotation.file_id
|
|
4287
|
+
filename: (_v = value.annotation.filename) != null ? _v : value.annotation.file_id,
|
|
4288
|
+
...value.annotation.file_id ? {
|
|
4289
|
+
providerMetadata: {
|
|
4290
|
+
openai: {
|
|
4291
|
+
fileId: value.annotation.file_id
|
|
4292
|
+
}
|
|
4293
|
+
}
|
|
4294
|
+
} : {}
|
|
4281
4295
|
});
|
|
4282
4296
|
}
|
|
4283
4297
|
} else if (isErrorChunk(value)) {
|