Embeddings

1
2
3
4
5
6
7
8
using var client = new GroqClient(apiKey);
CreateEmbeddingRequest request = new() { 
    Input = "Hello, world",
    Model = CreateEmbeddingRequestModel.NomicEmbedTextV15
};
var response = await client.Embeddings.CreateEmbeddingAsync(request);
Assert.IsNotNull(response);
Console.WriteLine(response.Data[0].Embedding1);