Learn R Programming

civis (version 3.1.3)

usage_list_llm: Get a list of usage statistics for a given organization

Description

Get a list of usage statistics for a given organization

Usage

usage_list_llm(org_id = NULL, start_date = NULL, end_date = NULL)

Value

An array containing the following fields:

id

integer, The ID of the usage statistic to get.

runId

integer, The ID of the run which contributed this usage.

jobId

integer, The ID of the job which contributed this usage.

userId

integer, The ID of the user who contributed this usage.

organizationId

integer, The organization of the user who contributed this usage.

runCreatedAt

string, When the run was created at.

runTime

integer, The duration of the run in seconds.

credits

number, The number of credits used.

inputTokens

integer, The number of tokens input to the run.

outputTokens

integer, The number of tokens output from the run.

modelId

string, The ID of the LLM model used.

Arguments

org_id

integer optional. The ID of the organization to get usage statistics for.

start_date

string optional. The start date of the range to get usage statistics for."\ "Defaults to the start of the current month if neither start_date nor end_date is specified.

end_date

string optional. The end date of the range to get usage statistics for."\ "Defaults to the end of the current day if neither start_date nor end_date is specified.