ChatGPTNextWeb / ChatGPT-Next-Web

A cross-platform ChatGPT/Gemini UI (Web / PWA / Linux / Win / MacOS). 一键拥有你自己的跨平台 ChatGPT/Gemini 应用。
https://app.nextchat.dev/
MIT License
72.56k stars 57.62k forks source link

[Bug] The $ character returned by GPT has an escape character added when displayed. #4822

Open lmovse opened 3 weeks ago

lmovse commented 3 weeks ago

Bug Description

I asked GPT to help me write a shell script. I noticed that in the shell script, all the dollar signs $ were replaced with \$, but when I checked the original return, I found that GPT's response did not carry any escape characters.

image

image

BTW, i am use MacOS app, how can i resolve it?

Steps to Reproduce

  1. Ask GPT to create a shell script with params

Expected Behavior

$ will show $, not \$

Screenshots

No response

Deployment Method

Desktop OS

MacOS 14.5

Desktop Browser

Choreme

Desktop Browser Version

No response

Smartphone Device

No response

Smartphone OS

No response

Smartphone Browser

No response

Smartphone Browser Version

No response

Additional Logs

No response