@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.
package/dist/index.mjs CHANGED
@@ -345,17 +345,15 @@ function prepareTools({
345
345
  var OpenAIChatLanguageModel = class {
346
346
  constructor(modelId, config) {
347
347
  this.specificationVersion = "v2";
348
+ this.supportedUrls = {
349
+ "image/*": [/^https?:\/\/.*$/]
350
+ };
348
351
  this.modelId = modelId;
349
352
  this.config = config;
350
353
  }
351
354
  get provider() {
352
355
  return this.config.provider;
353
356
  }
354
- async getSupportedUrls() {
355
- return {
356
- "image/*": [/^https?:\/\/.*$/]
357
- };
358
- }
359
357
  async getArgs({
360
358
  prompt,
361
359
  maxOutputTokens,
@@ -859,11 +857,23 @@ var reasoningModels = {
859
857
  "o1-preview-2024-09-12": {
860
858
  systemMessageMode: "remove"
861
859
  },
860
+ o3: {
861
+ systemMessageMode: "developer"
862
+ },
863
+ "o3-2025-04-16": {
864
+ systemMessageMode: "developer"
865
+ },
862
866
  "o3-mini": {
863
867
  systemMessageMode: "developer"
864
868
  },
865
869
  "o3-mini-2025-01-31": {
866
870
  systemMessageMode: "developer"
871
+ },
872
+ "o4-mini": {
873
+ systemMessageMode: "developer"
874
+ },
875
+ "o4-mini-2025-04-16": {
876
+ systemMessageMode: "developer"
867
877
  }
868
878
  };
869
879
 
@@ -992,6 +1002,9 @@ var openaiCompletionProviderOptions = z4.object({
992
1002
  var OpenAICompletionLanguageModel = class {
993
1003
  constructor(modelId, config) {
994
1004
  this.specificationVersion = "v2";
1005
+ this.supportedUrls = {
1006
+ // No URLs are supported for completion models.
1007
+ };
995
1008
  this.modelId = modelId;
996
1009
  this.config = config;
997
1010
  }
@@ -1001,11 +1014,6 @@ var OpenAICompletionLanguageModel = class {
1001
1014
  get provider() {
1002
1015
  return this.config.provider;
1003
1016
  }
1004
- async getSupportedUrls() {
1005
- return {
1006
- // no supported urls for completion models
1007
- };
1008
- }
1009
1017
  async getArgs({
1010
1018
  prompt,
1011
1019
  maxOutputTokens,
@@ -1347,7 +1355,7 @@ var OpenAIImageModel = class {
1347
1355
  this.modelId = modelId;
1348
1356
  this.settings = settings;
1349
1357
  this.config = config;
1350
- this.specificationVersion = "v1";
1358
+ this.specificationVersion = "v2";
1351
1359
  }
1352
1360
  get maxImagesPerCall() {
1353
1361
  var _a, _b;
@@ -1853,13 +1861,11 @@ function prepareResponsesTools({
1853
1861
  var OpenAIResponsesLanguageModel = class {
1854
1862
  constructor(modelId, config) {
1855
1863
  this.specificationVersion = "v2";
1856
- this.modelId = modelId;
1857
- this.config = config;
1858
- }
1859
- async getSupportedUrls() {
1860
- return {
1864
+ this.supportedUrls = {
1861
1865
  "image/*": [/^https?:\/\/.*$/]
1862
1866
  };
1867
+ this.modelId = modelId;
1868
+ this.config = config;
1863
1869
  }
1864
1870
  get provider() {
1865
1871
  return this.config.provider;