Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
franciscoescher committed Sep 10, 2023
1 parent a04b673 commit fe332d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func main() {
client := goopenai.NewClient(apiKey, organization)
r := goopenai.CreateCompletionsRequest{
r := goopenai.CreateChatCompletionsRequest{
Model: "gpt-3.5-turbo",
Messages: []goopenai.Message{
{
Expand All @@ -49,7 +49,7 @@ func main() {
Temperature: 0.7,
}
completions, err := client.CreateCompletions(context.Background(), r)
completions, err := client.CreateChatCompletions(context.Background(), r)
if err != nil {
panic(err)
}
Expand Down

0 comments on commit fe332d9

Please sign in to comment.