brave / brave-browser

Brave browser for Android, iOS, Linux, macOS, Windows.
https://brave.com
Mozilla Public License 2.0
17.94k stars 2.35k forks source link

[Follow up to #26555] Leo provides an answer as a `code block` if a user uses `REWRITE` or `CHANGE TONE` when sending a query #42439

Open hffvld opened 11 hours ago

hffvld commented 11 hours ago

Description

Follow-up to #26555.

Steps to reproduce

  1. Launch Brave
  2. Open Leo
  3. Type any query, but don't send it yet
  4. Tap [/] to open slash tools
  5. Select anything from the REWRITE OR CHANGE TONE` category
  6. 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
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.


1 2
1 2

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