@ai-sdk/openai 3.0.0-beta.38 → 3.0.0-beta.40
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 +15 -0
- package/dist/index.js +18 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +18 -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 +5 -5
package/dist/internal/index.mjs
CHANGED
|
@@ -3756,7 +3756,14 @@ var OpenAIResponsesLanguageModel = class {
|
|
|
3756
3756
|
id: (_i = (_h = (_g = this.config).generateId) == null ? void 0 : _h.call(_g)) != null ? _i : generateId2(),
|
|
3757
3757
|
mediaType: "text/plain",
|
|
3758
3758
|
title: (_k = (_j = annotation.quote) != null ? _j : annotation.filename) != null ? _k : "Document",
|
|
3759
|
-
filename: (_l = annotation.filename) != null ? _l : annotation.file_id
|
|
3759
|
+
filename: (_l = annotation.filename) != null ? _l : annotation.file_id,
|
|
3760
|
+
...annotation.file_id ? {
|
|
3761
|
+
providerMetadata: {
|
|
3762
|
+
openai: {
|
|
3763
|
+
fileId: annotation.file_id
|
|
3764
|
+
}
|
|
3765
|
+
}
|
|
3766
|
+
} : {}
|
|
3760
3767
|
});
|
|
3761
3768
|
}
|
|
3762
3769
|
}
|
|
@@ -4345,7 +4352,14 @@ var OpenAIResponsesLanguageModel = class {
|
|
|
4345
4352
|
id: (_s = (_r = (_q = self.config).generateId) == null ? void 0 : _r.call(_q)) != null ? _s : generateId2(),
|
|
4346
4353
|
mediaType: "text/plain",
|
|
4347
4354
|
title: (_u = (_t = value.annotation.quote) != null ? _t : value.annotation.filename) != null ? _u : "Document",
|
|
4348
|
-
filename: (_v = value.annotation.filename) != null ? _v : value.annotation.file_id
|
|
4355
|
+
filename: (_v = value.annotation.filename) != null ? _v : value.annotation.file_id,
|
|
4356
|
+
...value.annotation.file_id ? {
|
|
4357
|
+
providerMetadata: {
|
|
4358
|
+
openai: {
|
|
4359
|
+
fileId: value.annotation.file_id
|
|
4360
|
+
}
|
|
4361
|
+
}
|
|
4362
|
+
} : {}
|
|
4349
4363
|
});
|
|
4350
4364
|
}
|
|
4351
4365
|
} else if (isErrorChunk(value)) {
|