Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
antonio-war authored Apr 12, 2023
1 parent 10b6826 commit a4a7b61
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 @@ -222,8 +222,8 @@ swiftyGPT.completion(prompt: "Say \"Hello\" in italian", model: .text_davinci_00
}
```

In case of success methods return a SwiftyGPTCompletionResponse object which is the entire transcript of ChatGPT HTTP response.
To get the concrete completion response text you have to check the content of the 'choices' attribute.
In case of success methods return a SwiftyGPTCompletionResponse object which is the entire transcript of HTTP response.
To get the concrete response text you have to check the content of the 'choices' attribute.

```swift
let text = response.choices.first?.text
Expand Down

0 comments on commit a4a7b61

Please sign in to comment.