Skip to content

Commit 02d3446

Browse files
committed
update: types
1 parent cf08292 commit 02d3446

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Sources/CompilerSwiftAI/UI/Chat/ChatBubble.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ struct ChatBubble: View {
4949
case .streaming(let partial):
5050
return partial
5151
case .complete:
52-
return message.content
52+
return message.apiContent
5353
}
5454
}
5555

Sources/CompilerSwiftAI/UI/Chat/ChatView/ChatViewModel.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ class ChatViewModel: Transcribable {
198198
var chunkCount = 0
199199
for try await partialMessage in stream {
200200
chunkCount += 1
201-
accumulated = partialMessage.content
201+
accumulated = partialMessage.apiContent
202202

203203
// Log each chunk size
204204
self.logger.log("Chunk #\(chunkCount): partial content size=\(accumulated.count). Updating streaming message.")

0 commit comments

Comments
 (0)