Fix typo in README: AdaEmbeddingV2 (#516)

Copy-pasting the old sample caused compilation errors
This commit is contained in:
Eli Bendersky
2023-11-06 12:27:08 -08:00
committed by GitHub
parent 6c52952b69
commit 9e0232f941

View File

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