File tree Expand file tree Collapse file tree
libs/tryAGI.OpenAI/Extensions
tests/OpenAI.IntegrationTests Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ async Task<Meai.GeneratedEmbeddings<Meai.Embedding<float>>>
5151 request . Dimensions = dimensions ;
5252 }
5353
54- var response = await Embeddings . CreateEmbeddingAsync (
54+ var response = await Embeddings . CreateEmbeddingsAsync (
5555 request : request ,
5656 cancellationToken : cancellationToken ) . ConfigureAwait ( false ) ;
5757
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ public async Task Example_Embeddings()
1515 {
1616 using var client = GetAuthenticatedClient ( ) ;
1717
18- var response = await client . Embeddings . CreateEmbeddingAsync (
18+ var response = await client . Embeddings . CreateEmbeddingsAsync (
1919 input : "Hello, world" ,
2020 model : CreateEmbeddingRequestModel . TextEmbedding3Small ) ;
2121
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ public partial class Tests
66 public async Task CreateEmbedding ( )
77 {
88 var api = GetAuthorizedApi ( ) ;
9- var response = await api . Embeddings . CreateEmbeddingAsync (
9+ var response = await api . Embeddings . CreateEmbeddingsAsync (
1010 input : "Hello, world" ,
1111 model : CreateEmbeddingRequestModel . TextEmbedding3Small ,
1212 user : "tryAGI.OpenAI.IntegrationTests.Tests.CreateEmbedding" ) ;
You can’t perform that action at this time.
0 commit comments