embeddingsGenerationV1EmbeddingsPostWithHttpInfo method
Embeddings Generation
Get a vector representation of a given input. That vector representation can be easily consumed by machine learning models and algorithms.
Note: This method returns the HTTP Response.
Parameters:
- EmbeddingsBody embeddingsBody (required):
Implementation
Future<Response> embeddingsGenerationV1EmbeddingsPostWithHttpInfo(EmbeddingsBody embeddingsBody,) async {
// ignore: prefer_const_declarations
final path = r'/v1/embeddings';
// ignore: prefer_final_locals
Object? postBody = embeddingsBody;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>['application/json'];
return apiClient.invokeAPI(
path,
'POST',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}