Skip to content

Commit 2c8eb48

Browse files
Include /v1/embeddings as Batches endpoint
1 parent 8eb793e commit 2c8eb48

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -497,11 +497,9 @@ puts response.dig("data", 0, "embedding")
497497
```
498498

499499
### Batches
500-
501-
The Batches endpoint allows you to create and manage large batches of API requests to run asynchronously. Currently, only the `/v1/chat/completions` endpoint is supported for batches.
500+
The Batches endpoint allows you to create and manage large batches of API requests to run asynchronously. Currently, the supported endpoints for batches are `/v1/chat/completions` (Chat Completions API) and `/v1/embeddings` (Embeddings API).
502501

503502
To use the Batches endpoint, you need to first upload a JSONL file containing the batch requests using the Files endpoint. The file must be uploaded with the purpose set to `batch`. Each line in the JSONL file represents a single request and should have the following format:
504-
505503
```json
506504
{
507505
"custom_id": "request-1",

0 commit comments

Comments
 (0)