Package com.openai.models.embeddings
Class CreateEmbeddingResponse
-
- All Implemented Interfaces:
public final class CreateEmbeddingResponse
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classCreateEmbeddingResponse.BuilderA builder for CreateEmbeddingResponse.
public final classCreateEmbeddingResponse.UsageThe usage information for the request.
-
Method Summary
Modifier and Type Method Description final List<Embedding>data()The list of embeddings generated by the model. final Stringmodel()The name of the model used to generate the embedding. final JsonValue_object_()The object type, which is always "list". final CreateEmbeddingResponse.Usageusage()The usage information for the request. final JsonField<List<Embedding>>_data()The list of embeddings generated by the model. final JsonField<String>_model()The name of the model used to generate the embedding. final JsonField<CreateEmbeddingResponse.Usage>_usage()The usage information for the request. final Map<String, JsonValue>_additionalProperties()final CreateEmbeddingResponsevalidate()final CreateEmbeddingResponse.BuildertoBuilder()Booleanequals(Object other)IntegerhashCode()StringtoString()final static CreateEmbeddingResponse.Builderbuilder()Returns a mutable builder for constructing an instance of CreateEmbeddingResponse. -
-
Method Detail
-
usage
final CreateEmbeddingResponse.Usage usage()
The usage information for the request.
-
_usage
final JsonField<CreateEmbeddingResponse.Usage> _usage()
The usage information for the request.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
validate
final CreateEmbeddingResponse validate()
-
toBuilder
final CreateEmbeddingResponse.Builder toBuilder()
-
builder
final static CreateEmbeddingResponse.Builder builder()
Returns a mutable builder for constructing an instance of CreateEmbeddingResponse.
The following fields are required:
.data() .model() .usage()
-
-
-
-