@ai-sdk/openai 2.1.0-beta.1 → 2.1.0-beta.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/CHANGELOG.md +32 -0
- package/dist/index.d.mts +38 -5
- package/dist/index.d.ts +38 -5
- package/dist/index.js +22 -14
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +23 -15
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.d.mts +7 -7
- package/dist/internal/index.d.ts +7 -7
- package/dist/internal/index.js +8 -8
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +6 -6
- package/dist/internal/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/internal/index.mjs
CHANGED
|
@@ -244,7 +244,7 @@ function mapOpenAIFinishReason(finishReason) {
|
|
|
244
244
|
|
|
245
245
|
// src/chat/openai-chat-options.ts
|
|
246
246
|
import { z as z2 } from "zod/v4";
|
|
247
|
-
var
|
|
247
|
+
var openaiChatLanguageModelOptions = z2.object({
|
|
248
248
|
/**
|
|
249
249
|
* Modify the likelihood of specified tokens appearing in the completion.
|
|
250
250
|
*
|
|
@@ -428,7 +428,7 @@ var OpenAIChatLanguageModel = class {
|
|
|
428
428
|
const openaiOptions = (_a = await parseProviderOptions({
|
|
429
429
|
provider: "openai",
|
|
430
430
|
providerOptions,
|
|
431
|
-
schema:
|
|
431
|
+
schema: openaiChatLanguageModelOptions
|
|
432
432
|
})) != null ? _a : {};
|
|
433
433
|
const structuredOutputs = (_b = openaiOptions.structuredOutputs) != null ? _b : true;
|
|
434
434
|
if (topK != null) {
|
|
@@ -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;
|
|
@@ -2947,7 +2947,7 @@ var OpenAIResponsesLanguageModel = class {
|
|
|
2947
2947
|
])
|
|
2948
2948
|
),
|
|
2949
2949
|
service_tier: z18.string().nullish(),
|
|
2950
|
-
incomplete_details: z18.object({ reason: z18.string() }).
|
|
2950
|
+
incomplete_details: z18.object({ reason: z18.string() }).nullish(),
|
|
2951
2951
|
usage: usageSchema2
|
|
2952
2952
|
})
|
|
2953
2953
|
),
|
|
@@ -3836,8 +3836,8 @@ export {
|
|
|
3836
3836
|
hasDefaultResponseFormat,
|
|
3837
3837
|
modelMaxImagesPerCall,
|
|
3838
3838
|
openAITranscriptionProviderOptions,
|
|
3839
|
+
openaiChatLanguageModelOptions,
|
|
3839
3840
|
openaiCompletionProviderOptions,
|
|
3840
|
-
openaiEmbeddingProviderOptions
|
|
3841
|
-
openaiProviderOptions
|
|
3841
|
+
openaiEmbeddingProviderOptions
|
|
3842
3842
|
};
|
|
3843
3843
|
//# sourceMappingURL=index.mjs.map
|