LiteLLMConsumptionType

Registers LiteLLM token consumption with LLMConsumptionRegistry via ServiceLoader.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
open override val unit: LLMConsumptionUnit

The unit this type decodes; its LLMConsumptionUnit.displayLabel is the registry key.

Functions

Link copied to clipboard
open override fun fromPrettyJson(obj: JsonObject): LLMConsumption

Decodes the flavor-specific JSON (the object with the "unit" field already stripped).