33from __future__ import annotations
44
55from typing import List
6- from typing_extensions import Literal
76
87import httpx
98
1615 PartsWithStreamingResponse ,
1716 AsyncPartsWithStreamingResponse ,
1817)
19- from ...types import upload_create_params , upload_complete_params
18+ from ...types import FilePurpose , upload_create_params , upload_complete_params
2019from ..._types import NOT_GIVEN , Body , Query , Headers , NotGiven
2120from ..._utils import (
2221 maybe_transform ,
2726from ..._response import to_streamed_response_wrapper , async_to_streamed_response_wrapper
2827from ..._base_client import make_request_options
2928from ...types .upload import Upload
29+ from ...types .file_purpose import FilePurpose
3030
3131__all__ = ["Uploads" , "AsyncUploads" ]
3232
@@ -50,7 +50,7 @@ def create(
5050 bytes : int ,
5151 filename : str ,
5252 mime_type : str ,
53- purpose : Literal [ "assistants" , "batch" , "fine-tune" , "vision" ] ,
53+ purpose : FilePurpose ,
5454 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
5555 # The extra values given here take precedence over values defined on the client or passed to this method.
5656 extra_headers : Headers | None = None ,
@@ -233,7 +233,7 @@ async def create(
233233 bytes : int ,
234234 filename : str ,
235235 mime_type : str ,
236- purpose : Literal [ "assistants" , "batch" , "fine-tune" , "vision" ] ,
236+ purpose : FilePurpose ,
237237 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
238238 # The extra values given here take precedence over values defined on the client or passed to this method.
239239 extra_headers : Headers | None = None ,
0 commit comments