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

com.launchableinc.openai.completion.chat.ChatCompletionChunk Maven / Gradle / Ivy

The newest version!
package com.launchableinc.openai.completion.chat;

import lombok.Data;

import java.util.List;

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

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

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

	/**
	 * The creation time in epoch seconds.
	 */
	long created;

	/**
	 * The model used.
	 */
	String model;

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy