We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent baf2542 commit 6a049e8Copy full SHA for 6a049e8
1 file changed
Core/Sources/ChatPlugins/MathChatPlugin/MathChatPlugin.swift
@@ -22,7 +22,6 @@ public actor MathChatPlugin: ChatPlugin {
22
delegate?.pluginDidStartResponding(self)
23
24
let id = "\(Self.command)-\(UUID().uuidString)"
25
- async let translatedAnswer = translate(text: "Answer:")
26
var reply = ChatMessage(id: id, role: .assistant, content: "")
27
28
await chatGPTService.memory.mutateHistory { history in
@@ -31,7 +30,7 @@ public actor MathChatPlugin: ChatPlugin {
31
30
32
do {
33
let result = try await solveMathProblem(content)
34
- let formattedResult = "\(await translatedAnswer) \(result)"
+ let formattedResult = "Answer: \(result)"
35
if !isCancelled {
36
37
if history.last?.id == id {
0 commit comments