Class OpenaiChatResponse.Usage

java.lang.Object
com.intellijava.core.model.OpenaiChatResponse.Usage
Enclosing class:
OpenaiChatResponse

public static class OpenaiChatResponse.Usage extends Object
Usage is a nested class that represents a Usage object returned in the API response.
  • Constructor Details

    • Usage

      public Usage()
      Usage default constructor.
  • Method Details

    • getPrompt_tokens

      public int getPrompt_tokens()
      Gets the prompt_tokens property
      Returns:
      the value of prompt_tokens property
    • setPrompt_tokens

      public void setPrompt_tokens(int prompt_tokens)
      Sets the prompt_tokens property
      Parameters:
      prompt_tokens - the new value of the prompt_tokens property
    • getCompletion_tokens

      public int getCompletion_tokens()
      Gets the completion_tokens property
      Returns:
      the value of completion_tokens property
    • setCompletion_tokens

      public void setCompletion_tokens(int completion_tokens)
      Sets the completion_tokens property
      Parameters:
      completion_tokens - the new value of the completion_tokens property
    • getTotal_tokens

      public int getTotal_tokens()
      Gets the total_tokens property
      Returns:
      the value of total_tokens property
    • setTotal_tokens

      public void setTotal_tokens(int total_tokens)
      Sets the total_tokens property
      Parameters:
      total_tokens - the new value of the total_tokens property