Select anything from the REWRITE OR CHANGE TONE` category
Send the query > Observe
Actual result
Leo provides an answer as a code block if a user uses REWRITE or CHANGE TONE when sending a query.
1
2
![3]()
![4]()
Expected result
Leo must not provide an answer as a code block when a user uses REWRITE/CHANGE TONE if the query/answer is not really related to a programming language.
Description
Follow-up to #26555.
Steps to reproduce
Leo
slash tools
REWRITE
OR CHANGE TONE` categoryActual result
Leo provides an answer as a
code block
if a user usesREWRITE
orCHANGE TONE
when sending a query.Expected result
Leo
must not provide an answer as acode block
when a user usesREWRITE
/CHANGE TONE
if the query/answer is not really related to a programming language.Reproduces how often
Easily reproduced
Brave version
Brave build: 1.75.36 Chromium: 131.0.6778.85 (Official Build) canary (64-bit)
Device
Channel information
Reproducibility
Miscellaneous information
No response