Skip to content

Commit 9e0232f

Browse files
authored
Fix typo in README: AdaEmbeddingV2 (#516)
Copy-pasting the old sample caused compilation errors
1 parent 6c52952 commit 9e0232f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ func main() {
502502
// Create an EmbeddingRequest for the user query
503503
queryReq := openai.EmbeddingRequest{
504504
Input: []string{"How many chucks would a woodchuck chuck"},
505-
Model: openai.AdaEmbeddingv2,
505+
Model: openai.AdaEmbeddingV2,
506506
}
507507

508508
// Create an embedding for the user query
@@ -514,7 +514,7 @@ func main() {
514514
// Create an EmbeddingRequest for the target text
515515
targetReq := openai.EmbeddingRequest{
516516
Input: []string{"How many chucks would a woodchuck chuck if the woodchuck could chuck wood"},
517-
Model: openai.AdaEmbeddingv2,
517+
Model: openai.AdaEmbeddingV2,
518518
}
519519

520520
// Create an embedding for the target text

0 commit comments

Comments
 (0)