-
Notifications
You must be signed in to change notification settings - Fork 58.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] 显示的内容和接口返回不一致 #4660
Comments
Title: [Bug] The displayed content is inconsistent with the interface return |
感谢反馈,这个问题是由于 nextchat中使用的三方 markdown渲染工具对 Latex 语法支持的不完善导致的,在 latex 语法中, |
Thanks for the feedback. This problem is caused by the imperfect support for Latex syntax used by the three-party markdown rendering tools used in nextchat. In latex syntax, |
我也遇到了这样的问题, 可是这是markdown中的shell块, 为什么会用Latex 语法来渲染呢 |
I also encountered such a problem, but this is a shell block in markdown. Why is it rendered using Latex syntax? |
Bug Description
提示词:sh脚本读取从输入的参数
页面输出结果:在Shell脚本(sh或bash)中,你可以通过特殊的变量来读取从命令行传递给脚本的参数。这些变量包括:
$0 - 脚本的名称。
接口响应结果:在Shell脚本(sh或bash)中,你可以通过特殊的变量来读取从命令行传递给脚本的参数。这些变量包括:
$0 - 脚本的名称。
![1715396986618](https://private-user-images.githubusercontent.com/16079953/329749537-8bbd12bd-af06-426b-b09e-3c5ea8fc26a0.jpg?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQyNzk4OTAsIm5iZiI6MTcyNDI3OTU5MCwicGF0aCI6Ii8xNjA3OTk1My8zMjk3NDk1MzctOGJiZDEyYmQtYWYwNi00MjZiLWIwOWUtM2M1ZWE4ZmMyNmEwLmpwZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODIxVDIyMzMxMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTU2ODIwNzNiM2ZiNWYzMzJjN2JmMzc1ZjAzMjI1YzI5NTRmMzdlYmQ5ZjY5OTVkYjQ2YWU2ZWEwZjJmMDYwM2MmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.HqV6CdYGFWHhQnuBl1h-CKZ1O9Yr3L6XDRYiAVS4gYY)
BUG:接口输出中$0前没有反斜杠\,但是页面显示成了$0,出现一个反斜杠,导致回答的内容和实际不一致
Steps to Reproduce
1.输入提示词:sh脚本读取从输入的参数
2.等待结果输出完毕
3.输出结果中提到获取$0
Expected Behavior
输出结果应该和接口返回一致,是$0
Screenshots
Deployment Method
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}
The text was updated successfully, but these errors were encountered: