Skip to content

docs: clarify filenames for in-memory file uploads - #3729

Open
sylvesterkaczmarek wants to merge 1 commit into
openai:mainfrom
sylvesterkaczmarek:docs/in-memory-upload-filenames-2315
Open

docs: clarify filenames for in-memory file uploads#3729
sylvesterkaczmarek wants to merge 1 commit into
openai:mainfrom
sylvesterkaczmarek:docs/in-memory-upload-filenames-2315

Conversation

@sylvesterkaczmarek

Copy link
Copy Markdown

Summary

  • document that file-like objects such as io.BytesIO are accepted upload inputs
  • show the explicit (filename, contents, media type) form for in-memory audio uploads
  • explain why APIs that infer formats from file extensions need a meaningful multipart filename
  • document the alternative of setting .name on a mutable file-like object

Fixes #2315

Test plan

  • git diff --check

This is a documentation-only change; the existing upload transport behavior is unchanged.

@sylvesterkaczmarek
sylvesterkaczmarek requested a review from a team as a code owner August 25, 2026 00:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

openai.Audio.transcribe() fails with BytesIO unless .name is manually set

1 participant