Skip to content

Commit 8fbf130

Browse files
committed
Remove the "Calculating..." thing from MathChatPlugin
1 parent 33ecf12 commit 8fbf130

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Core/Sources/ChatPlugins/MathChatPlugin/MathChatPlugin.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,11 @@ public actor MathChatPlugin: ChatPlugin {
2222
delegate?.pluginDidStartResponding(self)
2323

2424
let id = "\(Self.command)-\(UUID().uuidString)"
25-
async let translatedCalculating = translate(text: "Calculating...")
2625
async let translatedAnswer = translate(text: "Answer:")
27-
var reply = ChatMessage(id: id, role: .assistant, content: await translatedCalculating)
26+
var reply = ChatMessage(id: id, role: .assistant, content: "")
2827

2928
await chatGPTService.mutateHistory { history in
3029
history.append(.init(role: .user, content: originalMessage, summary: content))
31-
history.append(reply)
3230
}
3331

3432
do {

0 commit comments

Comments
 (0)