@ai-sdk/openai 2.0.23 → 2.0.24

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.
@@ -1930,7 +1930,12 @@ var OpenAITranscriptionModel = class {
1930
1930
  const formData = new FormData();
1931
1931
  const blob = audio instanceof Uint8Array ? new Blob([audio]) : new Blob([(0, import_provider_utils9.convertBase64ToUint8Array)(audio)]);
1932
1932
  formData.append("model", this.modelId);
1933
- formData.append("file", new File([blob], "audio", { type: mediaType }));
1933
+ const fileExtension = (0, import_provider_utils9.mediaTypeToExtension)(mediaType);
1934
+ formData.append(
1935
+ "file",
1936
+ new File([blob], "audio", { type: mediaType }),
1937
+ `audio.${fileExtension}`
1938
+ );
1934
1939
  if (openAIOptions) {
1935
1940
  const transcriptionModelOptions = {
1936
1941
  include: openAIOptions.include,