@ai-sdk/openai 3.0.54 → 3.0.55
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 +9 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +37 -10
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +36 -9
- package/dist/internal/index.mjs.map +1 -1
- package/package.json +4 -4
- package/src/chat/convert-openai-chat-usage.ts +1 -1
- package/src/chat/convert-to-openai-chat-messages.ts +3 -3
- package/src/chat/map-openai-finish-reason.ts +1 -1
- package/src/chat/openai-chat-api.ts +6 -2
- package/src/chat/openai-chat-language-model.ts +14 -14
- package/src/chat/openai-chat-options.ts +5 -1
- package/src/chat/openai-chat-prepare-tools.ts +3 -3
- package/src/completion/convert-openai-completion-usage.ts +1 -1
- package/src/completion/convert-to-openai-completion-prompt.ts +1 -1
- package/src/completion/map-openai-finish-reason.ts +1 -1
- package/src/completion/openai-completion-api.ts +5 -1
- package/src/completion/openai-completion-language-model.ts +6 -6
- package/src/completion/openai-completion-options.ts +5 -1
- package/src/embedding/openai-embedding-model.ts +3 -3
- package/src/embedding/openai-embedding-options.ts +5 -1
- package/src/image/openai-image-model.ts +3 -3
- package/src/openai-config.ts +1 -1
- package/src/openai-provider.ts +9 -9
- package/src/responses/convert-openai-responses-usage.ts +1 -1
- package/src/responses/convert-to-openai-responses-input.ts +5 -5
- package/src/responses/map-openai-responses-finish-reason.ts +1 -1
- package/src/responses/openai-responses-api.ts +6 -2
- package/src/responses/openai-responses-language-model.ts +35 -35
- package/src/responses/openai-responses-options.ts +5 -1
- package/src/responses/openai-responses-prepare-tools.ts +4 -4
- package/src/responses/openai-responses-provider-metadata.ts +2 -2
- package/src/speech/openai-speech-model.ts +4 -4
- package/src/speech/openai-speech-options.ts +5 -1
- package/src/tool/file-search.ts +1 -1
- package/src/tool/mcp.ts +1 -1
- package/src/tool/tool-search.ts +2 -2
- package/src/transcription/openai-transcription-model.ts +4 -4
- package/src/transcription/openai-transcription-options.ts +5 -1
package/dist/internal/index.mjs
CHANGED
|
@@ -307,7 +307,10 @@ function mapOpenAIFinishReason(finishReason) {
|
|
|
307
307
|
}
|
|
308
308
|
|
|
309
309
|
// src/chat/openai-chat-api.ts
|
|
310
|
-
import {
|
|
310
|
+
import {
|
|
311
|
+
lazySchema,
|
|
312
|
+
zodSchema
|
|
313
|
+
} from "@ai-sdk/provider-utils";
|
|
311
314
|
import { z as z2 } from "zod/v4";
|
|
312
315
|
var openaiChatResponseSchema = lazySchema(
|
|
313
316
|
() => zodSchema(
|
|
@@ -449,7 +452,10 @@ var openaiChatChunkSchema = lazySchema(
|
|
|
449
452
|
);
|
|
450
453
|
|
|
451
454
|
// src/chat/openai-chat-options.ts
|
|
452
|
-
import {
|
|
455
|
+
import {
|
|
456
|
+
lazySchema as lazySchema2,
|
|
457
|
+
zodSchema as zodSchema2
|
|
458
|
+
} from "@ai-sdk/provider-utils";
|
|
453
459
|
import { z as z3 } from "zod/v4";
|
|
454
460
|
var openaiLanguageModelChatOptions = lazySchema2(
|
|
455
461
|
() => zodSchema2(
|
|
@@ -1271,7 +1277,10 @@ function mapOpenAIFinishReason2(finishReason) {
|
|
|
1271
1277
|
|
|
1272
1278
|
// src/completion/openai-completion-api.ts
|
|
1273
1279
|
import { z as z4 } from "zod/v4";
|
|
1274
|
-
import {
|
|
1280
|
+
import {
|
|
1281
|
+
lazySchema as lazySchema3,
|
|
1282
|
+
zodSchema as zodSchema3
|
|
1283
|
+
} from "@ai-sdk/provider-utils";
|
|
1275
1284
|
var openaiCompletionResponseSchema = lazySchema3(
|
|
1276
1285
|
() => zodSchema3(
|
|
1277
1286
|
z4.object({
|
|
@@ -1328,7 +1337,10 @@ var openaiCompletionChunkSchema = lazySchema3(
|
|
|
1328
1337
|
);
|
|
1329
1338
|
|
|
1330
1339
|
// src/completion/openai-completion-options.ts
|
|
1331
|
-
import {
|
|
1340
|
+
import {
|
|
1341
|
+
lazySchema as lazySchema4,
|
|
1342
|
+
zodSchema as zodSchema4
|
|
1343
|
+
} from "@ai-sdk/provider-utils";
|
|
1332
1344
|
import { z as z5 } from "zod/v4";
|
|
1333
1345
|
var openaiLanguageModelCompletionOptions = lazySchema4(
|
|
1334
1346
|
() => zodSchema4(
|
|
@@ -1616,7 +1628,10 @@ import {
|
|
|
1616
1628
|
} from "@ai-sdk/provider-utils";
|
|
1617
1629
|
|
|
1618
1630
|
// src/embedding/openai-embedding-options.ts
|
|
1619
|
-
import {
|
|
1631
|
+
import {
|
|
1632
|
+
lazySchema as lazySchema5,
|
|
1633
|
+
zodSchema as zodSchema5
|
|
1634
|
+
} from "@ai-sdk/provider-utils";
|
|
1620
1635
|
import { z as z6 } from "zod/v4";
|
|
1621
1636
|
var openaiEmbeddingModelOptions = lazySchema5(
|
|
1622
1637
|
() => zodSchema5(
|
|
@@ -2014,7 +2029,10 @@ var openaiTranscriptionResponseSchema = lazySchema8(
|
|
|
2014
2029
|
);
|
|
2015
2030
|
|
|
2016
2031
|
// src/transcription/openai-transcription-options.ts
|
|
2017
|
-
import {
|
|
2032
|
+
import {
|
|
2033
|
+
lazySchema as lazySchema9,
|
|
2034
|
+
zodSchema as zodSchema9
|
|
2035
|
+
} from "@ai-sdk/provider-utils";
|
|
2018
2036
|
import { z as z10 } from "zod/v4";
|
|
2019
2037
|
var openAITranscriptionModelOptions = lazySchema9(
|
|
2020
2038
|
() => zodSchema9(
|
|
@@ -2221,7 +2239,10 @@ import {
|
|
|
2221
2239
|
} from "@ai-sdk/provider-utils";
|
|
2222
2240
|
|
|
2223
2241
|
// src/speech/openai-speech-options.ts
|
|
2224
|
-
import {
|
|
2242
|
+
import {
|
|
2243
|
+
lazySchema as lazySchema10,
|
|
2244
|
+
zodSchema as zodSchema10
|
|
2245
|
+
} from "@ai-sdk/provider-utils";
|
|
2225
2246
|
import { z as z11 } from "zod/v4";
|
|
2226
2247
|
var openaiSpeechModelOptionsSchema = lazySchema10(
|
|
2227
2248
|
() => zodSchema10(
|
|
@@ -3241,7 +3262,10 @@ function mapOpenAIResponseFinishReason({
|
|
|
3241
3262
|
}
|
|
3242
3263
|
|
|
3243
3264
|
// src/responses/openai-responses-api.ts
|
|
3244
|
-
import {
|
|
3265
|
+
import {
|
|
3266
|
+
lazySchema as lazySchema15,
|
|
3267
|
+
zodSchema as zodSchema15
|
|
3268
|
+
} from "@ai-sdk/provider-utils";
|
|
3245
3269
|
import { z as z17 } from "zod/v4";
|
|
3246
3270
|
var jsonValueSchema = z17.lazy(
|
|
3247
3271
|
() => z17.union([
|
|
@@ -4086,7 +4110,10 @@ var openaiResponsesResponseSchema = lazySchema15(
|
|
|
4086
4110
|
);
|
|
4087
4111
|
|
|
4088
4112
|
// src/responses/openai-responses-options.ts
|
|
4089
|
-
import {
|
|
4113
|
+
import {
|
|
4114
|
+
lazySchema as lazySchema16,
|
|
4115
|
+
zodSchema as zodSchema16
|
|
4116
|
+
} from "@ai-sdk/provider-utils";
|
|
4090
4117
|
import { z as z18 } from "zod/v4";
|
|
4091
4118
|
var TOP_LOGPROBS_MAX = 20;
|
|
4092
4119
|
var openaiResponsesReasoningModelIds = [
|