MCPcopy
hub / github.com/openai/openai-python / is_base64_file_input

Function is_base64_file_input

src/openai/_files.py:25–26  ·  view source on GitHub ↗
(obj: object)

Source from the content-addressed store, hash-verified

23
24
25def is_base64_file_input(obj: object) -> TypeGuard[Base64FileInput]:
26 return isinstance(obj, io.IOBase) or isinstance(obj, os.PathLike)
27
28
29def is_file_content(obj: object) -> TypeGuard[FileContent]:

Callers 2

_format_dataFunction · 0.85
_async_format_dataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected