@ai-sdk/openai 3.0.60 → 3.0.61

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-sdk/openai",
3
- "version": "3.0.60",
3
+ "version": "3.0.61",
4
4
  "license": "Apache-2.0",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/index.js",
@@ -36,8 +36,8 @@
36
36
  }
37
37
  },
38
38
  "dependencies": {
39
- "@ai-sdk/provider": "3.0.10",
40
- "@ai-sdk/provider-utils": "4.0.26"
39
+ "@ai-sdk/provider-utils": "4.0.26",
40
+ "@ai-sdk/provider": "3.0.10"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@types/node": "20.17.24",
@@ -701,11 +701,17 @@ export async function convertToOpenAIResponsesInput({
701
701
  return {
702
702
  type: 'input_image' as const,
703
703
  image_url: `data:${item.mediaType};base64,${item.data}`,
704
+ detail:
705
+ item.providerOptions?.[providerOptionsName]
706
+ ?.imageDetail,
704
707
  };
705
708
  case 'image-url':
706
709
  return {
707
710
  type: 'input_image' as const,
708
711
  image_url: item.url,
712
+ detail:
713
+ item.providerOptions?.[providerOptionsName]
714
+ ?.imageDetail,
709
715
  };
710
716
  case 'file-data':
711
717
  return {
@@ -764,6 +770,9 @@ export async function convertToOpenAIResponsesInput({
764
770
  return {
765
771
  type: 'input_image' as const,
766
772
  image_url: `data:${item.mediaType};base64,${item.data}`,
773
+ detail:
774
+ item.providerOptions?.[providerOptionsName]
775
+ ?.imageDetail,
767
776
  };
768
777
  }
769
778
 
@@ -771,6 +780,9 @@ export async function convertToOpenAIResponsesInput({
771
780
  return {
772
781
  type: 'input_image' as const,
773
782
  image_url: item.url,
783
+ detail:
784
+ item.providerOptions?.[providerOptionsName]
785
+ ?.imageDetail,
774
786
  };
775
787
  }
776
788