class

OpenAI::BatchRequestCounts

Inherits JSON::Serializable < Reference < Object

The request counts for different statuses within the batch.

Constructors

new(total : Int64 = 0, completed : Int64 = 0, failed : Int64 = 0)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

completed

Number of requests that have been completed successfully.

Source
completed=(completed : Int64)

Number of requests that have been completed successfully.

Source
failed

Number of requests that have failed.

Source
failed=(failed : Int64)

Number of requests that have failed.

Source
total

Total number of requests in the batch.

Source
total=(total : Int64)

Total number of requests in the batch.

Source