@@ -52,7 +52,7 @@ def create(
52
52
self ,
53
53
* ,
54
54
file : FileTypes ,
55
- purpose : Literal ["fine-tune " , "assistants " ],
55
+ purpose : Literal ["assistants " , "batch" , "fine-tune " ],
56
56
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
57
57
# The extra values given here take precedence over values defined on the client or passed to this method.
58
58
extra_headers : Headers | None = None ,
@@ -79,12 +79,11 @@ def create(
79
79
80
80
purpose: The intended purpose of the uploaded file.
81
81
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
85
83
[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).
88
87
89
88
extra_headers: Send extra headers
90
89
@@ -325,7 +324,7 @@ async def create(
325
324
self ,
326
325
* ,
327
326
file : FileTypes ,
328
- purpose : Literal ["fine-tune " , "assistants " ],
327
+ purpose : Literal ["assistants " , "batch" , "fine-tune " ],
329
328
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
330
329
# The extra values given here take precedence over values defined on the client or passed to this method.
331
330
extra_headers : Headers | None = None ,
@@ -352,12 +351,11 @@ async def create(
352
351
353
352
purpose: The intended purpose of the uploaded file.
354
353
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
358
355
[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).
361
359
362
360
extra_headers: Send extra headers
363
361
0 commit comments