Remove deprecated code (#40)
This commit is contained in:
committed by
GitHub
parent
0f9f4aa343
commit
fa5319e59a
10
README.md
10
README.md
@@ -36,15 +36,5 @@ func main() {
|
||||
return
|
||||
}
|
||||
fmt.Println(resp.Choices[0].Text)
|
||||
|
||||
searchReq := gogpt.SearchRequest{
|
||||
Documents: []string{"White House", "hospital", "school"},
|
||||
Query: "the president",
|
||||
}
|
||||
searchResp, err := c.Search(ctx, "ada", searchReq)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
fmt.Println(searchResp.SearchResults)
|
||||
}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user