createEmbedding method
Create Embeddings
Implementation
Future<EmbeddingsResponse> createEmbedding(
{required String apiKey,
required Map<String, dynamic> promptWithModel}) async {
final response = await dio.post(UrlBuilder.embeddingsPath,
data: promptWithModel,
options: Options(headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer $apiKey'
}));
return EmbeddingsResponse.fromMap(response.data);
}