Class OpenAiEmbeddingResponse
java.lang.Object
com.sap.ai.sdk.foundationmodels.openai.OpenAiEmbeddingResponse
Represents a response from the OpenAI Embedding API.
A high-level wrapper over the generated model class EmbeddingsCreate200Response,
improving API usability for common use cases, such as extracting embeddings.
- Since:
- 1.4.0
-
Method Details
-
getEmbeddingVectors
Read the embeddings from the response as a list of float arrays.- Returns:
- a list of float arrays
-
getOriginalResponse
The original response from the OpenAI Embedding API. -
equals
-
hashCode
public int hashCode() -
toString
-