Skip to content

Commit

Permalink
update embeddings example (RageAgainstThePixel#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
ADefWebserver committed Feb 28, 2023
1 parent ce9aa8d commit 86e051f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,8 @@ Creates an embedding vector representing the input text.

```csharp
var api = new OpenAIClient();
var result = await api.EmbeddingsEndpoint.CreateEmbeddingAsync("The food was delicious and the waiter...");
var model = await api.ModelsEndpoint.GetModelDetailsAsync("text-embedding-ada-002");
var result = await api.EmbeddingsEndpoint.CreateEmbeddingAsync("The food was delicious and the waiter...", model);
Console.WriteLine(result);
```

Expand Down

0 comments on commit 86e051f

Please sign in to comment.