Arcana::AI::Embed::Result
Constructors
Instance methods
cost(at : Time = Time.utc, table : Pricing::Table = Pricing::Table.default) : Pricing::Cost | Pricing::Unpriced
What this call cost; see Pricing. at is when it was made.
dimensions
Sourceembeddings
Sourcemodel
Sourceprovider
Sourceraw_request
Sourceraw_response
Sourceretry_wait
Sourceretry_wait=(retry_wait : Time::Span)
Sourcetoken_counts
Sourcetotal_tokens
DEPRECATED Use usage.input (nil #usage means the provider reported none), and #cost for what the call cost. Removed in arcana-ai 0.6.0.
usage
The tokens the provider billed, as a Usage (all input); nil
when it reported none. Pricing prices it.
usage=(usage : Usage | Nil)
The tokens the provider billed, as a Usage (all input); nil
when it reported none. Pricing prices it.