Skip to content

Commit

Permalink
Fix a typo
Browse files Browse the repository at this point in the history
  • Loading branch information
marcominerva committed Oct 16, 2023
1 parent 7437c20 commit d9eabc0
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/ChatGptNet/Extensions/EmbeddingUtility.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,4 @@ public static float CosineSimilarity(this EmbeddingResponse embeddingResponse, R
/// <seealso cref="EmbeddingResponse"/>
public static float CosineSimilarity(this EmbeddingResponse embeddingResponse, EmbeddingResponse otherResponse)
=> CosineSimilarity(embeddingResponse.GetEmbedding() ?? Array.Empty<float>(), otherResponse.GetEmbedding() ?? Array.Empty<float>());

}

0 comments on commit d9eabc0

Please sign in to comment.