2020
2121class BaseFiles (BaseDomain , Generic [FileTypeT ]):
2222 """Files domain, which contains API for working with files.
23+
2324 Files is a part of :ref:`Assistants API`, which is the only place you could use it.
2425 Provides upload, get and list methods that allow you to work with remote file objects you created earlier.
2526 """
@@ -40,10 +41,10 @@ async def _upload_bytes(
4041 """Uploads a byte array as a file.
4142
4243 :param data: The byte data to upload.
43- :param name: The name of the file on server.
44+ :param name: The name of the file on the server.
4445 :param description: A description of the file.
4546 :param mime_type: The MIME type of the file.
46- By default (i.e. when UNDEFINED) server will try to auto-detect mime-type and you could override this file.
47+ By default (i.e. when UNDEFINED) the server will try to auto-detect mime-type and you could override this file.
4748 :param labels: Labels associated with the file.
4849 :param ttl_days: Time-to-live in days for the file.
4950 :param expiration_policy: Expiration policy for the file.
@@ -91,10 +92,10 @@ async def _upload(
9192 """Uploads a file from a specified path.
9293
9394 :param path: The path of the file to upload.
94- :param name: The name of the file on server.
95+ :param name: The name of the file on the server.
9596 :param description: A description of the file.
9697 :param mime_type: The MIME type of the file.
97- By default (i.e. when UNDEFINED) server will try to auto-detect mime-type and you could override this file.
98+ By default (i.e. when UNDEFINED) the server will try to auto-detect mime-type and you could override this file.
9899 :param labels: Labels associated with the file.
99100 :param ttl_days: Time-to-live in days for the file.
100101 :param expiration_policy: Expiration policy for the file.
0 commit comments