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

Function async_read_file_content

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

Source from the content-addressed store, hash-verified

119
120
121async def async_read_file_content(file: FileContent) -> HttpxFileContent:
122 if isinstance(file, os.PathLike):
123 return await anyio.Path(file).read_bytes()
124
125 return file
126
127
128def deepcopy_with_paths(item: _T, paths: Sequence[Sequence[str]]) -> _T:

Callers 1

_async_transform_fileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected