Input source to normalize.
OptionalfilenameHint: stringOptional upload filename hint.
OptionalmimeTypeHint: stringOptional MIME type hint.
Fallback filename when none can be inferred.
Error used when a string input is neither a data URI nor a local file path.
OpenAI SDK uploadable file object.
Converts supported byte-backed inputs into an OpenAI SDK uploadable file object.
String inputs must be either Data URIs or local file paths. Stream-like values are passed through to
toFile(...)so the OpenAI SDK can handle them directly.