@ai-sdk/openai 2.1.0-beta.0 → 2.1.0-beta.2
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 +20 -0
- package/dist/index.d.mts +7 -5
- package/dist/index.d.ts +7 -5
- package/dist/index.js +21 -12
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +22 -13
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.d.mts +4 -4
- package/dist/internal/index.d.ts +4 -4
- package/dist/internal/index.js +3 -2
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +3 -2
- package/dist/internal/index.mjs.map +1 -1
- package/package.json +4 -3
package/dist/internal/index.mjs
CHANGED
|
@@ -1516,7 +1516,7 @@ var openaiEmbeddingProviderOptions = z6.object({
|
|
|
1516
1516
|
// src/embedding/openai-embedding-model.ts
|
|
1517
1517
|
var OpenAIEmbeddingModel = class {
|
|
1518
1518
|
constructor(modelId, config) {
|
|
1519
|
-
this.specificationVersion = "
|
|
1519
|
+
this.specificationVersion = "v3";
|
|
1520
1520
|
this.maxEmbeddingsPerCall = 2048;
|
|
1521
1521
|
this.supportsParallelCalls = true;
|
|
1522
1522
|
this.modelId = modelId;
|
|
@@ -2156,6 +2156,7 @@ async function convertToOpenAIResponsesInput({
|
|
|
2156
2156
|
});
|
|
2157
2157
|
break;
|
|
2158
2158
|
}
|
|
2159
|
+
// assistant tool result parts are from provider-executed tools:
|
|
2159
2160
|
case "tool-result": {
|
|
2160
2161
|
if (store) {
|
|
2161
2162
|
input.push({ type: "item_reference", id: part.toolCallId });
|
|
@@ -2946,7 +2947,7 @@ var OpenAIResponsesLanguageModel = class {
|
|
|
2946
2947
|
])
|
|
2947
2948
|
),
|
|
2948
2949
|
service_tier: z18.string().nullish(),
|
|
2949
|
-
incomplete_details: z18.object({ reason: z18.string() }).
|
|
2950
|
+
incomplete_details: z18.object({ reason: z18.string() }).nullish(),
|
|
2950
2951
|
usage: usageSchema2
|
|
2951
2952
|
})
|
|
2952
2953
|
),
|