@ai-sdk/openai 2.0.0-canary.13 → 2.0.0-canary.14

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.
@@ -339,17 +339,15 @@ function prepareTools({
339
339
  var OpenAIChatLanguageModel = class {
340
340
  constructor(modelId, config) {
341
341
  this.specificationVersion = "v2";
342
+ this.supportedUrls = {
343
+ "image/*": [/^https?:\/\/.*$/]
344
+ };
342
345
  this.modelId = modelId;
343
346
  this.config = config;
344
347
  }
345
348
  get provider() {
346
349
  return this.config.provider;
347
350
  }
348
- async getSupportedUrls() {
349
- return {
350
- "image/*": [/^https?:\/\/.*$/]
351
- };
352
- }
353
351
  async getArgs({
354
352
  prompt,
355
353
  maxOutputTokens,
@@ -853,11 +851,23 @@ var reasoningModels = {
853
851
  "o1-preview-2024-09-12": {
854
852
  systemMessageMode: "remove"
855
853
  },
854
+ o3: {
855
+ systemMessageMode: "developer"
856
+ },
857
+ "o3-2025-04-16": {
858
+ systemMessageMode: "developer"
859
+ },
856
860
  "o3-mini": {
857
861
  systemMessageMode: "developer"
858
862
  },
859
863
  "o3-mini-2025-01-31": {
860
864
  systemMessageMode: "developer"
865
+ },
866
+ "o4-mini": {
867
+ systemMessageMode: "developer"
868
+ },
869
+ "o4-mini-2025-04-16": {
870
+ systemMessageMode: "developer"
861
871
  }
862
872
  };
863
873
 
@@ -986,6 +996,9 @@ var openaiCompletionProviderOptions = z4.object({
986
996
  var OpenAICompletionLanguageModel = class {
987
997
  constructor(modelId, config) {
988
998
  this.specificationVersion = "v2";
999
+ this.supportedUrls = {
1000
+ // No URLs are supported for completion models.
1001
+ };
989
1002
  this.modelId = modelId;
990
1003
  this.config = config;
991
1004
  }
@@ -995,11 +1008,6 @@ var OpenAICompletionLanguageModel = class {
995
1008
  get provider() {
996
1009
  return this.config.provider;
997
1010
  }
998
- async getSupportedUrls() {
999
- return {
1000
- // no supported urls for completion models
1001
- };
1002
- }
1003
1011
  async getArgs({
1004
1012
  prompt,
1005
1013
  maxOutputTokens,
@@ -1341,7 +1349,7 @@ var OpenAIImageModel = class {
1341
1349
  this.modelId = modelId;
1342
1350
  this.settings = settings;
1343
1351
  this.config = config;
1344
- this.specificationVersion = "v1";
1352
+ this.specificationVersion = "v2";
1345
1353
  }
1346
1354
  get maxImagesPerCall() {
1347
1355
  var _a, _b;
@@ -1930,13 +1938,11 @@ function prepareResponsesTools({
1930
1938
  var OpenAIResponsesLanguageModel = class {
1931
1939
  constructor(modelId, config) {
1932
1940
  this.specificationVersion = "v2";
1933
- this.modelId = modelId;
1934
- this.config = config;
1935
- }
1936
- async getSupportedUrls() {
1937
- return {
1941
+ this.supportedUrls = {
1938
1942
  "image/*": [/^https?:\/\/.*$/]
1939
1943
  };
1944
+ this.modelId = modelId;
1945
+ this.config = config;
1940
1946
  }
1941
1947
  get provider() {
1942
1948
  return this.config.provider;