You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# calc_result = f"`{calc_result}`" # Wrap the result in backticks for code formatting in Markdown.
397
-
calc_result=f"<code>{calc_result}</code>"# Wrap the result in <code> tags for HTML formatting.
397
+
calc_result=f"{calc_result}"# Wrap the result in <code> tags for HTML formatting.
398
398
system_message= (
399
399
f"[Calculator result, explain to the user in their language if needed. "
400
400
"IMPORTANT: Do not translate or simplify the mathematical expressions themselves. "
401
-
"NOTE: Telegram doesn't support LaTeX. Use simple HTML formatting, note that <pre> or <br> are NOT allowed HTML tags. If the user explicitly asks for LaTeX or mentions LaTeX, use LaTeX formatting; "
402
-
"otherwise, use plain text or Unicode with simple HTML.]:\n{calc_result}\n\n"
401
+
"NOTE: Telegram doesn't support LaTeX. Use simple HTML formatting, i.e. <code></code> if need be, note that <pre> or <br> are NOT allowed HTML tags. If the user explicitly asks for LaTeX or mentions LaTeX, use LaTeX formatting; "
402
+
f"otherwise, use plain text or Unicode with simple HTML.] Result:\n{calc_result}\n\n"
403
403
"[NOTE: format your response appropriately, possibly incorporating additional context or user intent, TRANSLATE it to the user's language if needed.]"
404
404
).format(calc_result=calc_result) # This ensures the result is inserted correctly
0 commit comments