Skip to content

Commit 155efd9

Browse files
Merge pull request #14 from DevCrew-io/najamsaqib-devcreew-patch-1
Update README.md
2 parents c4d4db3 + e47b5f3 commit 155efd9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
8080
You can send a chat request to generate text based on a prompt using the `sendChatRequest` method. It takes the prompt, ChatGPT model, endpoint URL, and a completion block as parameters.
8181

8282
```swift
83-
ChatGPTAPIManager.shared.sendChatRequest(prompt: "Your prompt", model: .gptThreePointFiveTurbo, endPoint: .chat) { result in
83+
ChatGPTAPIManager.shared.sendChatRequest(prompt: "Your prompt", model: .gptThreePointFiveTurbo, endPoint: .chat) { result in
8484
switch result {
8585
case .success(let generatedChat):
8686
// Handle the generated chat
@@ -94,7 +94,7 @@ You can send a chat request to generate text based on a prompt using the `sendCh
9494
You can send a request to generate text based on a prompt using the `sendTextRequest` method. It takes the prompt, ChatGPT model, endpoint URL, and a completion block as parameters.
9595

9696
```swift
97-
ChatGPTAPIManager.shared.sendTextRequest(prompt: "Your prompt", model: .textDavinci003, endPoint: .completion) { result in
97+
ChatGPTAPIManager.shared.sendTextRequest(prompt: "Your prompt", model: .textDavinci003, endPoint: .completion) { result in
9898
switch result {
9999
case .success(let generatedText):
100100
// Handle the generated text
@@ -108,7 +108,7 @@ You can send a request to generate text based on a prompt using the `sendTextReq
108108
You can generate an image based on a prompt using the `generateImage` method. It takes the prompt, ChatGPT model, desired image size, endpoint URL, and a completion block as parameters.
109109

110110
```swift
111-
ChatGPTAPIManager.shared.generateImage(prompt: "Your prompt", model: .engine, imageSize: .fiveTwelve, endPoint: .generateImage) { result in
111+
ChatGPTAPIManager.shared.generateImage(prompt: "Your prompt", model: .engine, imageSize: .fiveTwelve, endPoint: .generateImage) { result in
112112
switch result {
113113
case .success(let imageURL):
114114
// Handle the generated image URL

0 commit comments

Comments
 (0)