@ai-sdk/openai 4.0.78 → 4.0.80

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 CHANGED
@@ -1,5 +1,33 @@
1
1
  # @ai-sdk/openai
2
2
 
3
+ ## 4.0.80
4
+
5
+ ### Patch Changes
6
+
7
+ - c2511c1: fix: use standards-compliant User-Agent header
8
+ - Updated dependencies [c2511c1]
9
+ - @ai-sdk/provider-utils@5.0.51
10
+
11
+ ## 4.0.79
12
+
13
+ ### Patch Changes
14
+
15
+ - e3605f6: Fix streamed tool calls with missing, blank, or repeated IDs.
16
+ - 525efc5: feat(provider): advertise image model file and mask input support
17
+
18
+ Use confirmed model IDs for capability declarations so unrecognized model names
19
+ remain unknown. Include Together AI FLUX.2 Pro and Flex single-image editing, and
20
+ allow asynchronous capability lookups and middleware overrides to resolve to
21
+ unknown.
22
+
23
+ Advertise QuiverAI Arrow 2 and Arrow 2 Telos file-input support, and mark Together
24
+ AI Gemini image inputs unsupported by the current single-image request mapping.
25
+
26
+ - Updated dependencies [e3605f6]
27
+ - Updated dependencies [525efc5]
28
+ - @ai-sdk/provider-utils@5.0.50
29
+ - @ai-sdk/provider@4.0.19
30
+
3
31
  ## 4.0.78
4
32
 
5
33
  ### Patch Changes
package/dist/index.js CHANGED
@@ -2657,6 +2657,32 @@ var OpenAIImageModel = class _OpenAIImageModel {
2657
2657
  get maxImagesPerCall() {
2658
2658
  return getMaxImagesPerCall(this.modelId);
2659
2659
  }
2660
+ get supportsFileInputs() {
2661
+ if (this.config.imageInputCapabilities != null) {
2662
+ return this.config.imageInputCapabilities.supportsFileInputs;
2663
+ }
2664
+ if ([
2665
+ "dall-e-2",
2666
+ "gpt-image-1",
2667
+ "gpt-image-1-mini",
2668
+ "gpt-image-1.5",
2669
+ "gpt-image-2",
2670
+ "gpt-image-2.5-flare",
2671
+ "gpt-image-2.5-flare-2026-09-08",
2672
+ "gpt-image-2.5-sunburst",
2673
+ "gpt-image-2.5-sunburst-2026-09-08",
2674
+ "chatgpt-image-latest"
2675
+ ].includes(this.modelId)) {
2676
+ return true;
2677
+ }
2678
+ return this.modelId === "dall-e-3" ? false : void 0;
2679
+ }
2680
+ get supportsMaskInputs() {
2681
+ if (this.config.imageInputCapabilities != null) {
2682
+ return this.config.imageInputCapabilities.supportsMaskInputs;
2683
+ }
2684
+ return this.supportsFileInputs;
2685
+ }
2660
2686
  get provider() {
2661
2687
  return this.config.provider;
2662
2688
  }
@@ -12028,7 +12054,7 @@ var OpenAISkills = class {
12028
12054
  };
12029
12055
 
12030
12056
  // src/version.ts
12031
- var VERSION = true ? "4.0.78" : "0.0.0-test";
12057
+ var VERSION = true ? "4.0.80" : "0.0.0-test";
12032
12058
 
12033
12059
  // src/openai-provider.ts
12034
12060
  function createOpenAI(options = {}) {
@@ -12052,7 +12078,7 @@ function createOpenAI(options = {}) {
12052
12078
  "OpenAI-Project": options.project,
12053
12079
  ...options.headers
12054
12080
  },
12055
- `ai-sdk/openai/${VERSION}`
12081
+ `ai-sdk-openai/${VERSION}`
12056
12082
  );
12057
12083
  const createChatModel = (modelId) => new OpenAIChatLanguageModel(modelId, {
12058
12084
  provider: `${providerName}.chat`,