Class CreateEmbeddingResponse
-
- All Implemented Interfaces:
public final class CreateEmbeddingResponse
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
CreateEmbeddingResponse.Builder
A builder for CreateEmbeddingResponse.
public final class
CreateEmbeddingResponse.Usage
The 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 String
model()
The name of the model used to generate the embedding. final JsonValue
_object_()
The object type, which is always "list". final CreateEmbeddingResponse.Usage
usage()
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.Builder
toBuilder()
final CreateEmbeddingResponse
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static CreateEmbeddingResponse.Builder
builder()
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()
-
-
-
-