All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.launchableinc.openai.Usage Maven / Gradle / Ivy

There is a newer version: 0.4.0
Show newest version
package com.launchableinc.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 - 2024 Weber Informatics LLC | Privacy Policy