Package com.intellijava.core.model
Class OpenaiLanguageResponse.Usage
java.lang.Object
com.intellijava.core.model.OpenaiLanguageResponse.Usage
- Enclosing class:
OpenaiLanguageResponse
Usage is a nested class that represents a Usage object returned in the API response.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Gets the completion_tokens propertyint
Gets the prompt_tokens propertyint
Gets the total_tokens propertyvoid
setCompletion_tokens
(int completion_tokens) Sets the completion_tokens propertyvoid
setPrompt_tokens
(int prompt_tokens) Sets the prompt_tokens propertyvoid
setTotal_tokens
(int total_tokens) Sets the total_tokens property
-
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
-