batches.list is missing after/limit query parameters support + README inaccuracy regarding batches
marckohlbrugge opened this issue · 0 comments
ruby-openai/lib/openai/batches.rb
Lines 1 to 23 in 8eb793e
Is missing support for the after and limit parameters described here:
after
string
Optional
A cursor for use in pagination. after is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list.
limit
integer
Optional
Defaults to 20
A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.
In addition, the README incorrectly states that Batches are only available for completions, while embeddings are also supported.
README:
Line 501 in 8eb793e
OpenAI Docs:
Batches start with a .jsonl file where each line contains the details of an individual request to the API. For now, the available endpoints are /v1/chat/completions (Chat Completions API) and /v1/embeddings (Embeddings API).
Source: https://platform.openai.com/docs/guides/batch/1-preparing-your-batch-file