@ai-sdk/openai 4.0.0-beta.16 → 4.0.0-beta.18

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.
@@ -838,7 +838,7 @@ declare const applyPatchToolFactory: _ai_sdk_provider_utils.ProviderToolFactoryW
838
838
  * (e.g., patch results or errors).
839
839
  */
840
840
  output?: string;
841
- }, {}>;
841
+ }, {}, {}>;
842
842
  /**
843
843
  * The apply_patch tool lets GPT-5.1 create, update, and delete files in your
844
844
  * codebase using structured diffs. Instead of just suggesting edits, the model
@@ -866,7 +866,7 @@ declare const applyPatch: _ai_sdk_provider_utils.ProviderToolFactoryWithOutputSc
866
866
  * (e.g., patch results or errors).
867
867
  */
868
868
  output?: string;
869
- }, {}>;
869
+ }, {}, {}>;
870
870
 
871
871
  declare const codeInterpreterInputSchema: _ai_sdk_provider_utils.LazySchema<{
872
872
  containerId: string;
@@ -923,7 +923,7 @@ declare const codeInterpreterToolFactory: _ai_sdk_provider_utils.ProviderToolFac
923
923
  */
924
924
  url: string;
925
925
  }> | null;
926
- }, CodeInterpreterArgs>;
926
+ }, CodeInterpreterArgs, {}>;
927
927
  declare const codeInterpreter: (args?: CodeInterpreterArgs) => _ai_sdk_provider_utils.Tool<{
928
928
  /**
929
929
  * The code to run, or null if not available.
@@ -951,7 +951,7 @@ declare const codeInterpreter: (args?: CodeInterpreterArgs) => _ai_sdk_provider_
951
951
  */
952
952
  url: string;
953
953
  }> | null;
954
- }>;
954
+ }, {}>;
955
955
 
956
956
  declare const fileSearchArgsSchema: _ai_sdk_provider_utils.LazySchema<{
957
957
  vectorStoreIds: string[];
@@ -1034,7 +1034,7 @@ declare const fileSearch: _ai_sdk_provider_utils.ProviderToolFactoryWithOutputSc
1034
1034
  * A filter to apply.
1035
1035
  */
1036
1036
  filters?: OpenAIResponsesFileSearchToolComparisonFilter | OpenAIResponsesFileSearchToolCompoundFilter;
1037
- }>;
1037
+ }, {}>;
1038
1038
 
1039
1039
  declare const imageGenerationArgsSchema: _ai_sdk_provider_utils.LazySchema<{
1040
1040
  background?: "auto" | "transparent" | "opaque" | undefined;
@@ -1115,7 +1115,7 @@ declare const imageGeneration: (args?: ImageGenerationArgs) => _ai_sdk_provider_
1115
1115
  * The generated image encoded in base64.
1116
1116
  */
1117
1117
  result: string;
1118
- }>;
1118
+ }, {}>;
1119
1119
 
1120
1120
  declare const webSearchPreviewArgsSchema: _ai_sdk_provider_utils.LazySchema<{
1121
1121
  searchContextSize?: "low" | "medium" | "high" | undefined;
@@ -1198,6 +1198,6 @@ declare const webSearchPreview: _ai_sdk_provider_utils.ProviderToolFactoryWithOu
1198
1198
  */
1199
1199
  timezone?: string;
1200
1200
  };
1201
- }>;
1201
+ }, {}>;
1202
1202
 
1203
1203
  export { type ApplyPatchOperation, OpenAIChatLanguageModel, type OpenAIChatModelId, OpenAICompletionLanguageModel, type OpenAICompletionModelId, OpenAIEmbeddingModel, type OpenAIEmbeddingModelId, type OpenAIEmbeddingModelOptions, OpenAIImageModel, type OpenAIImageModelId, type OpenAILanguageModelChatOptions, type OpenAILanguageModelCompletionOptions, OpenAIResponsesLanguageModel, OpenAISpeechModel, type OpenAISpeechModelId, type OpenAISpeechModelOptions, type OpenAITranscriptionCallOptions, OpenAITranscriptionModel, type OpenAITranscriptionModelId, type OpenAITranscriptionModelOptions, type OpenaiResponsesCompactionProviderMetadata, type OpenaiResponsesProviderMetadata, type OpenaiResponsesReasoningProviderMetadata, type OpenaiResponsesSourceDocumentProviderMetadata, type OpenaiResponsesTextProviderMetadata, type ResponsesCompactionProviderMetadata, type ResponsesProviderMetadata, type ResponsesReasoningProviderMetadata, type ResponsesSourceDocumentProviderMetadata, type ResponsesTextProviderMetadata, applyPatch, applyPatchArgsSchema, applyPatchInputSchema, applyPatchOutputSchema, applyPatchToolFactory, codeInterpreter, codeInterpreterArgsSchema, codeInterpreterInputSchema, codeInterpreterOutputSchema, codeInterpreterToolFactory, fileSearch, fileSearchArgsSchema, fileSearchOutputSchema, hasDefaultResponseFormat, imageGeneration, imageGenerationArgsSchema, imageGenerationOutputSchema, modelMaxImagesPerCall, openAITranscriptionModelOptions, openaiEmbeddingModelOptions, openaiLanguageModelChatOptions, openaiLanguageModelCompletionOptions, openaiSpeechModelOptionsSchema, webSearchPreview, webSearchPreviewArgsSchema, webSearchPreviewInputSchema };
@@ -838,7 +838,7 @@ declare const applyPatchToolFactory: _ai_sdk_provider_utils.ProviderToolFactoryW
838
838
  * (e.g., patch results or errors).
839
839
  */
840
840
  output?: string;
841
- }, {}>;
841
+ }, {}, {}>;
842
842
  /**
843
843
  * The apply_patch tool lets GPT-5.1 create, update, and delete files in your
844
844
  * codebase using structured diffs. Instead of just suggesting edits, the model
@@ -866,7 +866,7 @@ declare const applyPatch: _ai_sdk_provider_utils.ProviderToolFactoryWithOutputSc
866
866
  * (e.g., patch results or errors).
867
867
  */
868
868
  output?: string;
869
- }, {}>;
869
+ }, {}, {}>;
870
870
 
871
871
  declare const codeInterpreterInputSchema: _ai_sdk_provider_utils.LazySchema<{
872
872
  containerId: string;
@@ -923,7 +923,7 @@ declare const codeInterpreterToolFactory: _ai_sdk_provider_utils.ProviderToolFac
923
923
  */
924
924
  url: string;
925
925
  }> | null;
926
- }, CodeInterpreterArgs>;
926
+ }, CodeInterpreterArgs, {}>;
927
927
  declare const codeInterpreter: (args?: CodeInterpreterArgs) => _ai_sdk_provider_utils.Tool<{
928
928
  /**
929
929
  * The code to run, or null if not available.
@@ -951,7 +951,7 @@ declare const codeInterpreter: (args?: CodeInterpreterArgs) => _ai_sdk_provider_
951
951
  */
952
952
  url: string;
953
953
  }> | null;
954
- }>;
954
+ }, {}>;
955
955
 
956
956
  declare const fileSearchArgsSchema: _ai_sdk_provider_utils.LazySchema<{
957
957
  vectorStoreIds: string[];
@@ -1034,7 +1034,7 @@ declare const fileSearch: _ai_sdk_provider_utils.ProviderToolFactoryWithOutputSc
1034
1034
  * A filter to apply.
1035
1035
  */
1036
1036
  filters?: OpenAIResponsesFileSearchToolComparisonFilter | OpenAIResponsesFileSearchToolCompoundFilter;
1037
- }>;
1037
+ }, {}>;
1038
1038
 
1039
1039
  declare const imageGenerationArgsSchema: _ai_sdk_provider_utils.LazySchema<{
1040
1040
  background?: "auto" | "transparent" | "opaque" | undefined;
@@ -1115,7 +1115,7 @@ declare const imageGeneration: (args?: ImageGenerationArgs) => _ai_sdk_provider_
1115
1115
  * The generated image encoded in base64.
1116
1116
  */
1117
1117
  result: string;
1118
- }>;
1118
+ }, {}>;
1119
1119
 
1120
1120
  declare const webSearchPreviewArgsSchema: _ai_sdk_provider_utils.LazySchema<{
1121
1121
  searchContextSize?: "low" | "medium" | "high" | undefined;
@@ -1198,6 +1198,6 @@ declare const webSearchPreview: _ai_sdk_provider_utils.ProviderToolFactoryWithOu
1198
1198
  */
1199
1199
  timezone?: string;
1200
1200
  };
1201
- }>;
1201
+ }, {}>;
1202
1202
 
1203
1203
  export { type ApplyPatchOperation, OpenAIChatLanguageModel, type OpenAIChatModelId, OpenAICompletionLanguageModel, type OpenAICompletionModelId, OpenAIEmbeddingModel, type OpenAIEmbeddingModelId, type OpenAIEmbeddingModelOptions, OpenAIImageModel, type OpenAIImageModelId, type OpenAILanguageModelChatOptions, type OpenAILanguageModelCompletionOptions, OpenAIResponsesLanguageModel, OpenAISpeechModel, type OpenAISpeechModelId, type OpenAISpeechModelOptions, type OpenAITranscriptionCallOptions, OpenAITranscriptionModel, type OpenAITranscriptionModelId, type OpenAITranscriptionModelOptions, type OpenaiResponsesCompactionProviderMetadata, type OpenaiResponsesProviderMetadata, type OpenaiResponsesReasoningProviderMetadata, type OpenaiResponsesSourceDocumentProviderMetadata, type OpenaiResponsesTextProviderMetadata, type ResponsesCompactionProviderMetadata, type ResponsesProviderMetadata, type ResponsesReasoningProviderMetadata, type ResponsesSourceDocumentProviderMetadata, type ResponsesTextProviderMetadata, applyPatch, applyPatchArgsSchema, applyPatchInputSchema, applyPatchOutputSchema, applyPatchToolFactory, codeInterpreter, codeInterpreterArgsSchema, codeInterpreterInputSchema, codeInterpreterOutputSchema, codeInterpreterToolFactory, fileSearch, fileSearchArgsSchema, fileSearchOutputSchema, hasDefaultResponseFormat, imageGeneration, imageGenerationArgsSchema, imageGenerationOutputSchema, modelMaxImagesPerCall, openAITranscriptionModelOptions, openaiEmbeddingModelOptions, openaiLanguageModelChatOptions, openaiLanguageModelCompletionOptions, openaiSpeechModelOptionsSchema, webSearchPreview, webSearchPreviewArgsSchema, webSearchPreviewInputSchema };
@@ -3100,6 +3100,11 @@ async function convertToOpenAIResponsesInput({
3100
3100
  filename: (_a2 = item.filename) != null ? _a2 : "data",
3101
3101
  file_data: `data:${item.mediaType};base64,${item.data}`
3102
3102
  };
3103
+ case "file-url":
3104
+ return {
3105
+ type: "input_file",
3106
+ file_url: item.url
3107
+ };
3103
3108
  default:
3104
3109
  warnings.push({
3105
3110
  type: "other",
@@ -3158,6 +3163,12 @@ async function convertToOpenAIResponsesInput({
3158
3163
  file_data: `data:${item.mediaType};base64,${item.data}`
3159
3164
  };
3160
3165
  }
3166
+ case "file-url": {
3167
+ return {
3168
+ type: "input_file",
3169
+ file_url: item.url
3170
+ };
3171
+ }
3161
3172
  default: {
3162
3173
  warnings.push({
3163
3174
  type: "other",