@ai-sdk/openai 3.0.5 → 3.0.6

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,11 @@
1
1
  # @ai-sdk/openai
2
2
 
3
+ ## 3.0.6
4
+
5
+ ### Patch Changes
6
+
7
+ - dc87517: Fix handling of `image-url` tool result content type in OpenAI Responses API conversion
8
+
3
9
  ## 3.0.5
4
10
 
5
11
  ### Patch Changes
package/dist/index.js CHANGED
@@ -2809,6 +2809,12 @@ async function convertToOpenAIResponsesInput({
2809
2809
  image_url: `data:${item.mediaType};base64,${item.data}`
2810
2810
  };
2811
2811
  }
2812
+ case "image-url": {
2813
+ return {
2814
+ type: "input_image",
2815
+ image_url: item.url
2816
+ };
2817
+ }
2812
2818
  case "file-data": {
2813
2819
  return {
2814
2820
  type: "input_file",
@@ -5755,7 +5761,7 @@ var OpenAITranscriptionModel = class {
5755
5761
  };
5756
5762
 
5757
5763
  // src/version.ts
5758
- var VERSION = true ? "3.0.5" : "0.0.0-test";
5764
+ var VERSION = true ? "3.0.6" : "0.0.0-test";
5759
5765
 
5760
5766
  // src/openai-provider.ts
5761
5767
  function createOpenAI(options = {}) {