com.theokanning.openai.Usage Maven / Gradle / Ivy
package com.theokanning.openai;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
/**
* The OpenAI resources used by a request
*/
@Data
public class Usage {
/**
* The number of prompt tokens used.
*/
@JsonProperty("prompt_tokens")
long promptTokens;
/**
* The number of completion tokens used.
*/
@JsonProperty("completion_tokens")
long completionTokens;
/**
* The number of total tokens used
*/
@JsonProperty("total_tokens")
long totalTokens;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy