Skip to content

Commit 5665b6e

Browse files
committed
Add Cancel Streaming response via Task Cancellation
1 parent 41a745f commit 5665b6e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Shared/ViewModel.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ class ViewModel: ObservableObject {
9090
sendImage: "profile",
9191
send: .rawText(text),
9292
responseImage: "openai",
93+
response: .rawText(streamText),
9394
responseError: nil)
9495

9596
do {

0 commit comments

Comments
 (0)