fix python3.8 error

This commit is contained in:
Ishaan Jaff 2024-05-28 17:25:08 -07:00
parent c6eb004ed1
commit 215f19440c

View file

@ -87,7 +87,7 @@ def create_file(
extra_headers: Optional[Dict[str, str]] = None,
extra_body: Optional[Dict[str, str]] = None,
**kwargs,
) -> Union[FileObject | Coroutine[Any, Any, FileObject]]:
) -> Union[FileObject, Coroutine[Any, Any, FileObject]]:
"""
Files are used to upload documents that can be used with features like Assistants, Fine-tuning, and Batch API.