Class ChatCompletionUsage


  • public class ChatCompletionUsage
    extends Object
    Represents the token usage details in a chat completion response, including the number of tokens used for the prompt, the completion, and the total.
    • Constructor Detail

      • ChatCompletionUsage

        public ChatCompletionUsage()
    • Method Detail

      • getPromptTokens

        public int getPromptTokens()
      • setPromptTokens

        public void setPromptTokens​(int promptTokens)
      • getCompletionTokens

        public int getCompletionTokens()
      • setCompletionTokens

        public void setCompletionTokens​(int completionTokens)
      • getTotalTokens

        public int getTotalTokens()
      • setTotalTokens

        public void setTotalTokens​(int totalTokens)