Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .claude/skills/tryagi-openai/commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ Files are used to upload documents that can be used with features like Assistant
| `list-files` | `GET /files` | Returns a list of files. |
| `retrieve-file` | `GET /files/{file_id}` | Returns information about a specific file. |
| `retrieve-file-content` | `GET /files/{file_id}/content` | Returns the contents of the specified file. |
| `upload-file` | `POST /files` | Upload a file that can be used across various endpoints. Individual files can be up to 512 MB, and each project can store up to 2.5 TB of files in total. There is no organization-wide storage limit. - The Assistants API supports files up to 2 million tokens and of specific file types. See the [Assistants Tools guide](/docs/assistants/tools) for details. - The Fine-tuning API only supports `.jsonl` files. The input also has certain required formats for fine-tuning [chat](/docs/api-reference/fine-tuning/chat-input) or [completions](/docs/api-reference/fine-tuning/completions-input) models. - The Batch API only supports `.jsonl` files up to 200 MB in size. The input also has a specific required [format](/docs/api-reference/batch/request-input). Please [contact us](https://help.openai.com/) if you need to increase these storage limits. |
| `upload-file` | `POST /files` | Upload a file that can be used across various endpoints. Individual files can be up to 512 MB, and each project can store up to 2.5 TB of files in total. There is no organization-wide storage limit. Uploads to this endpoint are rate-limited to 2,000 files per minute per organization. - The Assistants API supports files up to 2 million tokens and of specific file types. See the [Assistants Tools guide](/docs/assistants/tools) for details. - The Fine-tuning API only supports `.jsonl` files. The input also has certain required formats for fine-tuning [chat](/docs/api-reference/fine-tuning/chat-input) or [completions](/docs/api-reference/fine-tuning/completions-input) models. - The Batch API only supports `.jsonl` files up to 200 MB in size. The input also has a specific required [format](/docs/api-reference/batch/request-input). - For Retrieval or `file_search` ingestion, upload files here first. If you need to attach multiple uploaded files to the same vector store, use [`/vector_stores/{vector_store_id}/file_batches`](/docs/api-reference/vector-stores-file-batches/createBatch) instead of attaching them one by one. Please [contact us](https://help.openai.com/) if you need to increase these storage limits. |

## `fine-tuning`

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ partial void ProcessUploadFileResponseContent(
/// <summary>
/// Upload a file that can be used across various endpoints. Individual files<br/>
/// can be up to 512 MB, and each project can store up to 2.5 TB of files in<br/>
/// total. There is no organization-wide storage limit.<br/>
/// total. There is no organization-wide storage limit. Uploads to this<br/>
/// endpoint are rate-limited to 2,000 files per minute per organization.<br/>
/// - The Assistants API supports files up to 2 million tokens and of specific<br/>
/// file types. See the [Assistants Tools guide](/docs/assistants/tools) for<br/>
/// details.<br/>
Expand All @@ -55,6 +56,10 @@ partial void ProcessUploadFileResponseContent(
/// - The Batch API only supports `.jsonl` files up to 200 MB in size. The input<br/>
/// also has a specific required<br/>
/// [format](/docs/api-reference/batch/request-input).<br/>
/// - For Retrieval or `file_search` ingestion, upload files here first. If<br/>
/// you need to attach multiple uploaded files to the same vector store, use<br/>
/// [`/vector_stores/{vector_store_id}/file_batches`](/docs/api-reference/vector-stores-file-batches/createBatch)<br/>
/// instead of attaching them one by one.<br/>
/// Please [contact us](https://help.openai.com/) if you need to increase these<br/>
/// storage limits.
/// </summary>
Expand Down Expand Up @@ -418,7 +423,8 @@ partial void ProcessUploadFileResponseContent(
/// <summary>
/// Upload a file that can be used across various endpoints. Individual files<br/>
/// can be up to 512 MB, and each project can store up to 2.5 TB of files in<br/>
/// total. There is no organization-wide storage limit.<br/>
/// total. There is no organization-wide storage limit. Uploads to this<br/>
/// endpoint are rate-limited to 2,000 files per minute per organization.<br/>
/// - The Assistants API supports files up to 2 million tokens and of specific<br/>
/// file types. See the [Assistants Tools guide](/docs/assistants/tools) for<br/>
/// details.<br/>
Expand All @@ -429,6 +435,10 @@ partial void ProcessUploadFileResponseContent(
/// - The Batch API only supports `.jsonl` files up to 200 MB in size. The input<br/>
/// also has a specific required<br/>
/// [format](/docs/api-reference/batch/request-input).<br/>
/// - For Retrieval or `file_search` ingestion, upload files here first. If<br/>
/// you need to attach multiple uploaded files to the same vector store, use<br/>
/// [`/vector_stores/{vector_store_id}/file_batches`](/docs/api-reference/vector-stores-file-batches/createBatch)<br/>
/// instead of attaching them one by one.<br/>
/// Please [contact us](https://help.openai.com/) if you need to increase these<br/>
/// storage limits.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ public partial interface IFilesClient
/// <summary>
/// Upload a file that can be used across various endpoints. Individual files<br/>
/// can be up to 512 MB, and each project can store up to 2.5 TB of files in<br/>
/// total. There is no organization-wide storage limit.<br/>
/// total. There is no organization-wide storage limit. Uploads to this<br/>
/// endpoint are rate-limited to 2,000 files per minute per organization.<br/>
/// - The Assistants API supports files up to 2 million tokens and of specific<br/>
/// file types. See the [Assistants Tools guide](/docs/assistants/tools) for<br/>
/// details.<br/>
Expand All @@ -18,6 +19,10 @@ public partial interface IFilesClient
/// - The Batch API only supports `.jsonl` files up to 200 MB in size. The input<br/>
/// also has a specific required<br/>
/// [format](/docs/api-reference/batch/request-input).<br/>
/// - For Retrieval or `file_search` ingestion, upload files here first. If<br/>
/// you need to attach multiple uploaded files to the same vector store, use<br/>
/// [`/vector_stores/{vector_store_id}/file_batches`](/docs/api-reference/vector-stores-file-batches/createBatch)<br/>
/// instead of attaching them one by one.<br/>
/// Please [contact us](https://help.openai.com/) if you need to increase these<br/>
/// storage limits.
/// </summary>
Expand All @@ -33,7 +38,8 @@ public partial interface IFilesClient
/// <summary>
/// Upload a file that can be used across various endpoints. Individual files<br/>
/// can be up to 512 MB, and each project can store up to 2.5 TB of files in<br/>
/// total. There is no organization-wide storage limit.<br/>
/// total. There is no organization-wide storage limit. Uploads to this<br/>
/// endpoint are rate-limited to 2,000 files per minute per organization.<br/>
/// - The Assistants API supports files up to 2 million tokens and of specific<br/>
/// file types. See the [Assistants Tools guide](/docs/assistants/tools) for<br/>
/// details.<br/>
Expand All @@ -44,6 +50,10 @@ public partial interface IFilesClient
/// - The Batch API only supports `.jsonl` files up to 200 MB in size. The input<br/>
/// also has a specific required<br/>
/// [format](/docs/api-reference/batch/request-input).<br/>
/// - For Retrieval or `file_search` ingestion, upload files here first. If<br/>
/// you need to attach multiple uploaded files to the same vector store, use<br/>
/// [`/vector_stores/{vector_store_id}/file_batches`](/docs/api-reference/vector-stores-file-batches/createBatch)<br/>
/// instead of attaching them one by one.<br/>
/// Please [contact us](https://help.openai.com/) if you need to increase these<br/>
/// storage limits.
/// </summary>
Expand Down
14 changes: 13 additions & 1 deletion src/libs/tryAGI.OpenAI/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9467,7 +9467,9 @@ paths:

can be up to 512 MB, and each project can store up to 2.5 TB of files in

total. There is no organization-wide storage limit.
total. There is no organization-wide storage limit. Uploads to this

endpoint are rate-limited to 2,000 files per minute per organization.


- The Assistants API supports files up to 2 million tokens and of
Expand All @@ -9482,6 +9484,10 @@ paths:
input
also has a specific required
[format](/docs/api-reference/batch/request-input).
- For Retrieval or `file_search` ingestion, upload files here first. If
you need to attach multiple uploaded files to the same vector store, use
[`/vector_stores/{vector_store_id}/file_batches`](/docs/api-reference/vector-stores-file-batches/createBatch)
instead of attaching them one by one.

Please [contact us](https://help.openai.com/) if you need to increase
these
Expand All @@ -9503,6 +9509,12 @@ paths:
x-oaiMeta:
name: Upload file
group: files
description: >
Uploads a file for later use across OpenAI APIs. Uploads to this
endpoint are rate-limited to 2,000 files per minute per organization.
For Retrieval or `file_search` ingestion, upload files here first. If
you need to attach multiple uploaded files to the same vector store,
use vector store file batches instead of attaching them one by one.
examples:
request:
curl: |
Expand Down