@ai-sdk/openai 3.0.0-beta.22 → 3.0.0-beta.24

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/dist/index.mjs CHANGED
@@ -21,7 +21,7 @@ import {
21
21
  } from "@ai-sdk/provider-utils";
22
22
 
23
23
  // src/openai-error.ts
24
- import * as z from "zod/v4";
24
+ import { z } from "zod/v4";
25
25
  import { createJsonErrorResponseHandler } from "@ai-sdk/provider-utils";
26
26
  var openaiErrorDataSchema = z.object({
27
27
  error: z.object({
@@ -258,7 +258,7 @@ import {
258
258
  lazyValidator,
259
259
  zodSchema
260
260
  } from "@ai-sdk/provider-utils";
261
- import * as z2 from "zod/v4";
261
+ import { z as z2 } from "zod/v4";
262
262
  var openaiChatResponseSchema = lazyValidator(
263
263
  () => zodSchema(
264
264
  z2.object({
@@ -399,7 +399,7 @@ import {
399
399
  lazyValidator as lazyValidator2,
400
400
  zodSchema as zodSchema2
401
401
  } from "@ai-sdk/provider-utils";
402
- import * as z3 from "zod/v4";
402
+ import { z as z3 } from "zod/v4";
403
403
  var openaiChatLanguageModelOptions = lazyValidator2(
404
404
  () => zodSchema2(
405
405
  z3.object({
@@ -1217,7 +1217,7 @@ function mapOpenAIFinishReason2(finishReason) {
1217
1217
  }
1218
1218
 
1219
1219
  // src/completion/openai-completion-api.ts
1220
- import * as z4 from "zod/v4";
1220
+ import { z as z4 } from "zod/v4";
1221
1221
  import {
1222
1222
  lazyValidator as lazyValidator3,
1223
1223
  zodSchema as zodSchema3
@@ -1282,7 +1282,7 @@ import {
1282
1282
  lazyValidator as lazyValidator4,
1283
1283
  zodSchema as zodSchema4
1284
1284
  } from "@ai-sdk/provider-utils";
1285
- import * as z5 from "zod/v4";
1285
+ import { z as z5 } from "zod/v4";
1286
1286
  var openaiCompletionProviderOptions = lazyValidator4(
1287
1287
  () => zodSchema4(
1288
1288
  z5.object({
@@ -1574,7 +1574,7 @@ import {
1574
1574
  lazyValidator as lazyValidator5,
1575
1575
  zodSchema as zodSchema5
1576
1576
  } from "@ai-sdk/provider-utils";
1577
- import * as z6 from "zod/v4";
1577
+ import { z as z6 } from "zod/v4";
1578
1578
  var openaiEmbeddingProviderOptions = lazyValidator5(
1579
1579
  () => zodSchema5(
1580
1580
  z6.object({
@@ -1594,7 +1594,7 @@ var openaiEmbeddingProviderOptions = lazyValidator5(
1594
1594
 
1595
1595
  // src/embedding/openai-embedding-api.ts
1596
1596
  import { lazyValidator as lazyValidator6, zodSchema as zodSchema6 } from "@ai-sdk/provider-utils";
1597
- import * as z7 from "zod/v4";
1597
+ import { z as z7 } from "zod/v4";
1598
1598
  var openaiTextEmbeddingResponseSchema = lazyValidator6(
1599
1599
  () => zodSchema6(
1600
1600
  z7.object({
@@ -1677,7 +1677,7 @@ import {
1677
1677
 
1678
1678
  // src/image/openai-image-api.ts
1679
1679
  import { lazyValidator as lazyValidator7, zodSchema as zodSchema7 } from "@ai-sdk/provider-utils";
1680
- import * as z8 from "zod/v4";
1680
+ import { z as z8 } from "zod/v4";
1681
1681
  var openaiImageResponseSchema = lazyValidator7(
1682
1682
  () => zodSchema7(
1683
1683
  z8.object({
@@ -1788,7 +1788,7 @@ import {
1788
1788
  lazySchema,
1789
1789
  zodSchema as zodSchema8
1790
1790
  } from "@ai-sdk/provider-utils";
1791
- import * as z9 from "zod/v4";
1791
+ import { z as z9 } from "zod/v4";
1792
1792
  var codeInterpreterInputSchema = lazySchema(
1793
1793
  () => zodSchema8(
1794
1794
  z9.object({
@@ -1837,7 +1837,7 @@ import {
1837
1837
  lazySchema as lazySchema2,
1838
1838
  zodSchema as zodSchema9
1839
1839
  } from "@ai-sdk/provider-utils";
1840
- import * as z10 from "zod/v4";
1840
+ import { z as z10 } from "zod/v4";
1841
1841
  var comparisonFilterSchema = z10.object({
1842
1842
  key: z10.string(),
1843
1843
  type: z10.enum(["eq", "ne", "gt", "gte", "lt", "lte"]),
@@ -1891,7 +1891,7 @@ import {
1891
1891
  lazySchema as lazySchema3,
1892
1892
  zodSchema as zodSchema10
1893
1893
  } from "@ai-sdk/provider-utils";
1894
- import * as z11 from "zod/v4";
1894
+ import { z as z11 } from "zod/v4";
1895
1895
  var imageGenerationArgsSchema = lazySchema3(
1896
1896
  () => zodSchema10(
1897
1897
  z11.object({
@@ -1931,7 +1931,7 @@ import {
1931
1931
  lazySchema as lazySchema4,
1932
1932
  zodSchema as zodSchema11
1933
1933
  } from "@ai-sdk/provider-utils";
1934
- import * as z12 from "zod/v4";
1934
+ import { z as z12 } from "zod/v4";
1935
1935
  var localShellInputSchema = lazySchema4(
1936
1936
  () => zodSchema11(
1937
1937
  z12.object({
@@ -1962,7 +1962,7 @@ import {
1962
1962
  lazySchema as lazySchema5,
1963
1963
  zodSchema as zodSchema12
1964
1964
  } from "@ai-sdk/provider-utils";
1965
- import * as z13 from "zod/v4";
1965
+ import { z as z13 } from "zod/v4";
1966
1966
  var webSearchArgsSchema = lazySchema5(
1967
1967
  () => zodSchema12(
1968
1968
  z13.object({
@@ -2016,7 +2016,7 @@ import {
2016
2016
  lazySchema as lazySchema6,
2017
2017
  zodSchema as zodSchema13
2018
2018
  } from "@ai-sdk/provider-utils";
2019
- import * as z14 from "zod/v4";
2019
+ import { z as z14 } from "zod/v4";
2020
2020
  var webSearchPreviewArgsSchema = lazySchema6(
2021
2021
  () => zodSchema13(
2022
2022
  z14.object({
@@ -2182,7 +2182,7 @@ import {
2182
2182
  parseProviderOptions as parseProviderOptions4,
2183
2183
  validateTypes
2184
2184
  } from "@ai-sdk/provider-utils";
2185
- import * as z15 from "zod/v4";
2185
+ import { z as z15 } from "zod/v4";
2186
2186
  function isFileId(data, prefixes) {
2187
2187
  if (!prefixes) return false;
2188
2188
  return prefixes.some((prefix) => data.startsWith(prefix));
@@ -2475,7 +2475,7 @@ import {
2475
2475
  lazyValidator as lazyValidator8,
2476
2476
  zodSchema as zodSchema14
2477
2477
  } from "@ai-sdk/provider-utils";
2478
- import * as z16 from "zod/v4";
2478
+ import { z as z16 } from "zod/v4";
2479
2479
  var openaiResponsesChunkSchema = lazyValidator8(
2480
2480
  () => zodSchema14(
2481
2481
  z16.union([
@@ -2900,7 +2900,7 @@ import {
2900
2900
  lazyValidator as lazyValidator9,
2901
2901
  zodSchema as zodSchema15
2902
2902
  } from "@ai-sdk/provider-utils";
2903
- import * as z17 from "zod/v4";
2903
+ import { z as z17 } from "zod/v4";
2904
2904
  var TOP_LOGPROBS_MAX = 20;
2905
2905
  var openaiResponsesReasoningModelIds = [
2906
2906
  "o1",
@@ -4165,7 +4165,7 @@ import {
4165
4165
  lazyValidator as lazyValidator10,
4166
4166
  zodSchema as zodSchema16
4167
4167
  } from "@ai-sdk/provider-utils";
4168
- import * as z18 from "zod/v4";
4168
+ import { z as z18 } from "zod/v4";
4169
4169
  var openaiSpeechProviderOptionsSchema = lazyValidator10(
4170
4170
  () => zodSchema16(
4171
4171
  z18.object({
@@ -4288,7 +4288,7 @@ import {
4288
4288
 
4289
4289
  // src/transcription/openai-transcription-api.ts
4290
4290
  import { lazyValidator as lazyValidator11, zodSchema as zodSchema17 } from "@ai-sdk/provider-utils";
4291
- import * as z19 from "zod/v4";
4291
+ import { z as z19 } from "zod/v4";
4292
4292
  var openaiTranscriptionResponseSchema = lazyValidator11(
4293
4293
  () => zodSchema17(
4294
4294
  z19.object({
@@ -4325,7 +4325,7 @@ import {
4325
4325
  lazyValidator as lazyValidator12,
4326
4326
  zodSchema as zodSchema18
4327
4327
  } from "@ai-sdk/provider-utils";
4328
- import * as z20 from "zod/v4";
4328
+ import { z as z20 } from "zod/v4";
4329
4329
  var openAITranscriptionProviderOptions = lazyValidator12(
4330
4330
  () => zodSchema18(
4331
4331
  z20.object({
@@ -4523,7 +4523,7 @@ var OpenAITranscriptionModel = class {
4523
4523
  };
4524
4524
 
4525
4525
  // src/version.ts
4526
- var VERSION = true ? "3.0.0-beta.22" : "0.0.0-test";
4526
+ var VERSION = true ? "3.0.0-beta.24" : "0.0.0-test";
4527
4527
 
4528
4528
  // src/openai-provider.ts
4529
4529
  function createOpenAI(options = {}) {