Skip to content

Commit 6a049e8

Browse files
committed
Update
1 parent baf2542 commit 6a049e8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Core/Sources/ChatPlugins/MathChatPlugin/MathChatPlugin.swift

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

2424
let id = "\(Self.command)-\(UUID().uuidString)"
25-
async let translatedAnswer = translate(text: "Answer:")
2625
var reply = ChatMessage(id: id, role: .assistant, content: "")
2726

2827
await chatGPTService.memory.mutateHistory { history in
@@ -31,7 +30,7 @@ public actor MathChatPlugin: ChatPlugin {
3130

3231
do {
3332
let result = try await solveMathProblem(content)
34-
let formattedResult = "\(await translatedAnswer) \(result)"
33+
let formattedResult = "Answer: \(result)"
3534
if !isCancelled {
3635
await chatGPTService.memory.mutateHistory { history in
3736
if history.last?.id == id {

0 commit comments

Comments
 (0)