API calls for all endpoints tagged CountTokens.
Summary
Functions
Count tokens Counts the number of tokens in the provided messages.
Functions
@spec count_tokens( Tesla.Env.client(), ExBifrost.Model.CountTokensRequest.t(), keyword() ) :: {:ok, ExBifrost.Model.BifrostError.t()} | {:ok, ExBifrost.Model.CountTokensResponse.t()} | {:error, Tesla.Env.t()}
Count tokens Counts the number of tokens in the provided messages.
Parameters
connection(ExBifrost.Connection): Connection to servercount_tokens_request(CountTokensRequest):opts(keyword): Optional parameters
Returns
{:ok, ExBifrost.Model.CountTokensResponse.t}on success{:error, Tesla.Env.t}on failure