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

进行问题扩展时会因为返回的结果不是JSON而报错 #1474

Closed
6 of 7 tasks
TomSouls opened this issue May 14, 2024 · 3 comments
Closed
6 of 7 tasks

进行问题扩展时会因为返回的结果不是JSON而报错 #1474

TomSouls opened this issue May 14, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@TomSouls
Copy link

例行检查

  • 我已确认目前没有类似 issue
  • 我已完整查看过项目 README,以及项目文档
  • 我使用了自己的 key,并确认我的 key 是可正常使用的
  • 我理解并愿意跟进此 issue,协助测试和提供反馈
  • 我理解并认可上述内容,并理解项目维护者精力有限,不遵循规则的 issue 可能会被无视或直接关闭

你的版本

  • 公有云版本
  • 私有部署版本, 具体版本号: 4.7.1-fix2

问题描述, 日志截图
进行问题扩展时会因为返回的结果不是JSON而报错, 具体代码如下
image

复现步骤

预期结果

相关截图

@TomSouls TomSouls added the bug Something isn't working label May 14, 2024
@TomSouls
Copy link
Author

有异常的代码在这里
packages/service/core/ai/functions/queryExtension.ts:160
我用try-catch包裹了下
image

@TomSouls
Copy link
Author

使用的是线上yi:34b-chat-q4_1这个模型, abab5.5还有本地ollama部署的 yi:34b-chat-v1.5-q4_1没有该问题,不会返回文本
image

@c121914yu
Copy link
Collaborator

这个 json 报错不影响吧,会用原问题继续检索

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

2 participants