@@ -52,7 +52,7 @@ def create(
5252 self ,
5353 * ,
5454 file : FileTypes ,
55- purpose : Literal ["fine-tune " , "assistants " ],
55+ purpose : Literal ["assistants " , "batch" , "fine-tune " ],
5656 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
5757 # The extra values given here take precedence over values defined on the client or passed to this method.
5858 extra_headers : Headers | None = None ,
@@ -79,12 +79,11 @@ def create(
7979
8080 purpose: The intended purpose of the uploaded file.
8181
82- Use "fine-tune" for
83- [Fine-tuning](https://platform.openai.com/docs/api-reference/fine-tuning) and
84- "assistants" for
82+ Use "assistants" for
8583 [Assistants](https://platform.openai.com/docs/api-reference/assistants) and
86- [Messages](https://platform.openai.com/docs/api-reference/messages). This allows
87- us to validate the format of the uploaded file is correct for fine-tuning.
84+ [Messages](https://platform.openai.com/docs/api-reference/messages), "batch" for
85+ [Batch API](https://platform.openai.com/docs/guides/batch), and "fine-tune" for
86+ [Fine-tuning](https://platform.openai.com/docs/api-reference/fine-tuning).
8887
8988 extra_headers: Send extra headers
9089
@@ -325,7 +324,7 @@ async def create(
325324 self ,
326325 * ,
327326 file : FileTypes ,
328- purpose : Literal ["fine-tune " , "assistants " ],
327+ purpose : Literal ["assistants " , "batch" , "fine-tune " ],
329328 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
330329 # The extra values given here take precedence over values defined on the client or passed to this method.
331330 extra_headers : Headers | None = None ,
@@ -352,12 +351,11 @@ async def create(
352351
353352 purpose: The intended purpose of the uploaded file.
354353
355- Use "fine-tune" for
356- [Fine-tuning](https://platform.openai.com/docs/api-reference/fine-tuning) and
357- "assistants" for
354+ Use "assistants" for
358355 [Assistants](https://platform.openai.com/docs/api-reference/assistants) and
359- [Messages](https://platform.openai.com/docs/api-reference/messages). This allows
360- us to validate the format of the uploaded file is correct for fine-tuning.
356+ [Messages](https://platform.openai.com/docs/api-reference/messages), "batch" for
357+ [Batch API](https://platform.openai.com/docs/guides/batch), and "fine-tune" for
358+ [Fine-tuning](https://platform.openai.com/docs/api-reference/fine-tuning).
361359
362360 extra_headers: Send extra headers
363361
0 commit comments