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

xyz.felh.openai.chat.ChatCompletionChoice Maven / Gradle / Ivy

There is a newer version: 4.0.2024102501
Show newest version
package xyz.felh.openai.chat;

import com.alibaba.fastjson2.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import xyz.felh.openai.IOpenAiApiObject;

@Data
public class ChatCompletionChoice implements IOpenAiApiObject {

    /**
     * The reason the model stopped generating tokens. This will be stop if the model hit a natural stop point or a provided stop sequence, length if the maximum number of tokens specified in the request was reached, content_filter if content was omitted due to a flag from our content filters, tool_calls if the model called a tool, or function_call (deprecated) if the model called a function.
     */
    @JSONField(name = "finish_reason")
    @JsonProperty("finish_reason")
    private String finishReason;

    /**
     * The index of the choice in the list of choices.
     */
    @JSONField(name = "index")
    @JsonProperty("index")
    private Integer index;

    /**
     * A chat completion message generated by the model.
     * 

* See {@link ChatMessage} */ @JSONField(name = "message") @JsonProperty("message") private ChatMessage message; /** * A chat completion delta generated by streamed model responses. *

* See {@link ChatMessage} */ @JSONField(name = "delta") @JsonProperty("delta") private ChatMessage delta; /** * Log probability information for the choice. *

* See {@link Logprobs} */ @JSONField(name = "logprobs") @JsonProperty("logprobs") private Logprobs logprobs; }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy