File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
Core/Sources/ChatPlugins/MathChatPlugin Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments