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

com.launchableinc.openai.completion.CompletionChunk Maven / Gradle / Ivy

There is a newer version: 0.4.0
Show newest version
package com.launchableinc.openai.completion;

import lombok.Data;
import java.util.List;

/**
 * Object containing a response chunk from the completions streaming api.
 * 

* https://beta.openai.com/docs/api-reference/completions/create */ @Data public class CompletionChunk { /** * A unique id assigned to this completion. */ String id; /** * https://beta.openai.com/docs/api-reference/create-completion The type of object returned, * should be "text_completion" */ String object; /** * The creation time in epoch seconds. */ long created; /** * The model used. */ String model; /** * A list of generated completions. */ List choices; }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy