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

ee.carlrobert.llm.client.openai.completion.response.OpenAIChatCompletionResponseChoice Maven / Gradle / Ivy

There is a newer version: 0.8.28
Show newest version
package ee.carlrobert.llm.client.openai.completion.response;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;

@JsonIgnoreProperties(ignoreUnknown = true)
public class OpenAIChatCompletionResponseChoice {

  private final OpenAIChatCompletionResponseChoiceDelta delta;
  private final OpenAIChatCompletionResponseChoiceDelta message;
  private final String finishReason;

  @JsonCreator(mode = JsonCreator.Mode.PROPERTIES)
  public OpenAIChatCompletionResponseChoice(
      @JsonProperty("delta") OpenAIChatCompletionResponseChoiceDelta delta,
      @JsonProperty("message") OpenAIChatCompletionResponseChoiceDelta message,
      @JsonProperty("finish_reason") String finishReason) {
    this.delta = delta;
    this.message = message;
    this.finishReason = finishReason;
  }

  public OpenAIChatCompletionResponseChoiceDelta getDelta() {
    return delta;
  }

  public OpenAIChatCompletionResponseChoiceDelta getMessage() {
    return message;
  }

  public String getFinishReason() {
    return finishReason;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy