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

Function read_file_content

src/openai/_files.py:79–82  ·  view source on GitHub ↗
(file: FileContent)

Source from the content-addressed store, hash-verified

77
78
79def read_file_content(file: FileContent) -> HttpxFileContent:
80 if isinstance(file, os.PathLike):
81 return pathlib.Path(file).read_bytes()
82 return file
83
84
85@overload

Callers 1

_transform_fileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected