View Source OpenaiEx.Batches (openai_ex v0.8.4)

This module provides an implementation of the OpenAI Batch API. The API reference can be found at https://platform.openai.com/docs/api-reference/batch.

Summary

Functions

Cancels an in-progress batch.

Creates and executes a batch from an uploaded file of requests.

Lists your organization's batches.

Creates a new batch request with the given arguments.

Retrieves a batch.

Functions

Cancels an in-progress batch.

https://platform.openai.com/docs/api-reference/batch/cancel

Creates and executes a batch from an uploaded file of requests.

https://platform.openai.com/docs/api-reference/batch/create

Link to this function

list(openai, opts \\ [])

View Source
Link to this function

list!(openai, opts \\ [])

View Source

Lists your organization's batches.

https://platform.openai.com/docs/api-reference/batch/list

Creates a new batch request with the given arguments.

Arguments

  • args: A list of key-value pairs, or a map, representing the fields of the batch request.

Returns

A map containing the fields of the batch request.

Retrieves a batch.

https://platform.openai.com/docs/api-reference/batch/retrieve