public final class CompletionResponse extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
CompletionResponse.Builder |
| Modifier and Type | Method and Description |
|---|---|
static CompletionResponse.Builder |
builder() |
List<CompletionChoice> |
choices() |
Integer |
created() |
boolean |
equals(Object another) |
int |
hashCode() |
String |
id() |
String |
model() |
String |
text()
Convenience method to get the text from the first choice.
|
String |
toString() |
Usage |
usage() |
public String id()
public Integer created()
public String model()
public List<CompletionChoice> choices()
public Usage usage()
@Experimental public String text()
public static CompletionResponse.Builder builder()
Copyright © 2023. All rights reserved.