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

QueryExtension 拼接历史记录的逻辑不正确 #1142

Closed
2 of 7 tasks
zhanghx0905 opened this issue Apr 8, 2024 · 3 comments
Closed
2 of 7 tasks

QueryExtension 拼接历史记录的逻辑不正确 #1142

zhanghx0905 opened this issue Apr 8, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@zhanghx0905
Copy link
Contributor

例行检查

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

你的版本

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

问题描述

在 QueryExtension 中,拼接历史记录的逻辑不正确:

return `${role}: ${item.value}`;

item.value 是一个对象,最后模型得到的提示词中历史记录变成了\nQ: [object Object]\nA: [object Object]\n
因为此问题,模型无法依据历史记录进行查询重写。

@zhanghx0905 zhanghx0905 added the bug Something isn't working label Apr 8, 2024
@c121914yu
Copy link
Collaborator

噢!麻烦可以提个PR?我发布个修复版本,这个应该4.7也有问题了

@c121914yu
Copy link
Collaborator

#1012 参考这个PR

@c121914yu
Copy link
Collaborator

我先直接在线修复了

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