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

com.theokanning.openai.completion.chat.ChatCompletionResult Maven / Gradle / Ivy

package com.theokanning.openai.completion.chat;
import com.theokanning.openai.Usage;
import lombok.Data;

import java.util.List;

/**
 * Object containing a response from the chat completions api.
 */
@Data
public class ChatCompletionResult {

    /**
     * Unique id assigned to this chat completion.
     */
    String id;

    /**
     * The type of object returned, should be "chat.completion"
     */
    String object;

    /**
     * The creation time in epoch seconds.
     */
    long created;
    
    /**
     * The GPT model used.
     */
    String model;

    /**
     * A list of all generated completions.
     */
    List choices;

    /**
     * The API usage for this request.
     */
    Usage usage;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy