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()Returns the raw JSON value of data. final JsonField<String>_model()Returns the raw JSON value of model. final JsonField<CreateEmbeddingResponse.Usage>_usage()Returns the raw JSON value of usage. final Map<String, JsonValue>_additionalProperties()final CreateEmbeddingResponse.BuildertoBuilder()final CreateEmbeddingResponsevalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static CreateEmbeddingResponse.Builderbuilder()Returns a mutable builder for constructing an instance of CreateEmbeddingResponse. -
-
Method Detail
-
_object_
final JsonValue _object_()
The object type, which is always "list".
Expected to always return the following:
JsonValue.from("list")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
usage
final CreateEmbeddingResponse.Usage usage()
The usage information for the request.
-
_data
final JsonField<List<Embedding>> _data()
Returns the raw JSON value of data.
Unlike data, this method doesn't throw if the JSON field has an unexpected type.
-
_model
final JsonField<String> _model()
Returns the raw JSON value of model.
Unlike model, this method doesn't throw if the JSON field has an unexpected type.
-
_usage
final JsonField<CreateEmbeddingResponse.Usage> _usage()
Returns the raw JSON value of usage.
Unlike usage, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final CreateEmbeddingResponse.Builder toBuilder()
-
validate
final CreateEmbeddingResponse validate()
-
builder
final static CreateEmbeddingResponse.Builder builder()
Returns a mutable builder for constructing an instance of CreateEmbeddingResponse.
The following fields are required:
.data() .model() .usage()
-
-
-
-