ChatGPTNextWeb / ChatGPTNextWeb/NextChat
[Bug] 显示的内容和接口返回不一致
- Dominant language
- TypeScript
- Stars
- 88.8k
- Forks
- 59.1k
- PR merge metrics
- No merged PRs in 30d
Description
### Bug Description
提示词:sh脚本读取从输入的参数
页面输出结果:在Shell脚本(sh或bash)中,你可以通过特殊的变量来读取从命令行传递给脚本的参数。这些变量包括:
**\$0** - 脚本的名称。
接口响应结果:在Shell脚本(sh或bash)中,你可以通过特殊的变量来读取从命令行传递给脚本的参数。这些变量包括:
**$0** - 脚本的名称。
BUG:接口输出中$0前没有反斜杠\,但是页面显示成了\$0,出现一个反斜杠,导致回答的内容和实际不一致

### Steps to Reproduce
1.输入提示词:sh脚本读取从输入的参数
2.等待结果输出完毕
3.输出结果中提到获取\$0
### Expected Behavior
输出结果应该和接口返回一致,是$0
### Screenshots

### Deployment Method
- [x] Docker
- [ ] Vercel
- [ ] Server
### Desktop OS
windows11
### Desktop Browser
chrome
### Desktop Browser Version
124.0.6367.201
### Smartphone Device
_No response_
### Smartphone OS
_No response_
### Smartphone Browser
_No response_
### Smartphone Browser Version
_No response_
### Additional Logs
data: {"choices":[{"content_filter_result":{"error":{"code":"content_filter_error","message":"The contents are not filtered"}},"delta":{"content":"第"},"finish_reason":null,"index":0}],"created":1715396484,"id":"chatcmpl-9NXHAf8BEvn3ze71CWEjIMAOZjHeq","model":"gpt-35-turbo","object":"chat.completion.chunk","system_fingerprint":null}
data: {"choices":[{"content_filter_result":{"error":{"code":"content_filter_error","message":"The contents are not filtered"}},"delta":{"content":"一个"},"finish_reason":null,"index":0}],"created":1715396484,"id":"chatcmpl-9NXHAf8BEvn3ze71CWEjIMAOZjHeq","model":"gpt-35-turbo","object":"chat.completion.chunk","system_fingerprint":null}
data: {"choices":[{"content_filter_result":{"error":{"code":"content_filter_error","message":"The contents are not filtered"}},"delta":{"content":"参数"},"finish_reason":null,"index":0}],"created":1715396484,"id":"chatcmpl-9NXHAf8BEvn3ze71CWEjIMAOZjHeq","model":"gpt-35-turbo","object":"chat.completion.chunk","system_fingerprint":null}
data: {"choices":[{"content_filter_result":{"error":{"code":"content_filter_error","message":"The contents are not filtered"}},"delta":{"content":"是"},"finish_reason":null,"index":0}],"created":1715396484,"id":"chatcmpl-9NXHAf8BEvn3ze71CWEjIMAOZjHeq","model":"gpt-35-turbo","object":"chat.completion.chunk","system_fingerprint":null}
data: {"choices":[{"content_filter_result":{"error":{"code":"content_filter_error","message":"The contents are not filtered"}},"delta":{"content":":"},"finish_reason":null,"index":0}],"created":1715396484,"id":"chatcmpl-9NXHAf8BEvn3ze71CWEjIMAOZjHeq","model":"gpt-35-turbo","object":"chat.completion.chunk","system_fingerprint":null}
data: {"choices":[{"content_filter_result":{"error":{"code":"content_filter_error","message":"The contents are not filtered"}},"delta":{"content":"$"},"finish_reason":null,"index":0}],"created":1715396484,"id":"chatcmpl-9NXHAf8BEvn3ze71CWEjIMAOZjHeq","model":"gpt-35-turbo","object":"chat.completion.chunk","system_fingerprint":null}
data: {"choices":[{"content_filter_result":{"error":{"code":"content_filter_error","message":"The contents are not filtered"}},"delta":{"content":"1"},"finish_reason":null,"index":0}],"created":1715396484,"id":"chatcmpl-9NXHAf8BEvn3ze71CWEjIMAOZjHeq","model":"gpt-35-turbo","object":"chat.completion.chunk","system_fingerprint":null}
data: {"choices":[{"content_filter_result":{"error":{"code":"content_filter_error","message":"The contents are not filtered"}},"delta":{"content":"\"\n\n"},"finish_reason":null,"index":0}],"created":1715396484,"id":"chatcmpl-9NXHAf8BEvn3ze71CWEjIMAOZjHeq","model":"gpt-35-turbo","object":"chat.completion.chunk","system_fingerprint":null}
data: {"choices":[{"content_filter_result":{"error":{"code":"content_filter_error","message":"The contents are not filtered"}},"delta":{"content":"#"},"finish_reason":null,"index":0}],"created":1715396484,"id":"chatcmpl-9NXHAf8BEvn3ze71CWEjIMAOZjHeq","model":"gpt-35-turbo","object":"chat.completion.chunk","system_fingerprint":null}
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.