Skip to content
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

Open
1 of 3 tasks
591776998 opened this issue May 11, 2024 · 5 comments
Open
1 of 3 tasks

[Bug] 显示的内容和接口返回不一致 #4660

591776998 opened this issue May 11, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@591776998
Copy link

591776998 commented May 11, 2024

Bug Description

提示词:sh脚本读取从输入的参数
页面输出结果:在Shell脚本(sh或bash)中,你可以通过特殊的变量来读取从命令行传递给脚本的参数。这些变量包括:

$0 - 脚本的名称。
接口响应结果:在Shell脚本(sh或bash)中,你可以通过特殊的变量来读取从命令行传递给脚本的参数。这些变量包括:

$0 - 脚本的名称。
BUG:接口输出中$0前没有反斜杠\,但是页面显示成了$0,出现一个反斜杠,导致回答的内容和实际不一致
1715396986618

Steps to Reproduce

1.输入提示词:sh脚本读取从输入的参数
2.等待结果输出完毕
3.输出结果中提到获取$0

Expected Behavior

输出结果应该和接口返回一致,是$0

Screenshots

1715396986618

Deployment Method

  • 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}

@591776998 591776998 added the bug Something isn't working label May 11, 2024
@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Title: [Bug] The displayed content is inconsistent with the interface return

@Dean-YZG
Copy link
Contributor

感谢反馈,这个问题是由于 nextchat中使用的三方 markdown渲染工具对 Latex 语法支持的不完善导致的,在 latex 语法中,$是一个特殊的符号,在解析的过程中,发生了混淆,进而导致了这个问题,我们正在密切关注三方 markdown渲染工具对 Latex 语法支持的进展情况。

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


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, $ is a special symbol. During the parsing process, confusion occurred, and then As a result of this problem, we are paying close attention to the progress of third-party markdown rendering tools' support for Latex syntax.

@xiaoxx970
Copy link

我也遇到了这样的问题, 可是这是markdown中的shell块, 为什么会用Latex 语法来渲染呢

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


I also encountered such a problem, but this is a shell block in markdown. Why is it rendered using Latex syntax?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants