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] 使用历史消息数与设置不符 #3044

Open
sxjeru opened this issue Jun 26, 2024 · 8 comments
Open

[Bug] 使用历史消息数与设置不符 #3044

sxjeru opened this issue Jun 26, 2024 · 8 comments
Labels
🐛 Bug Something isn't working | 缺陷

Comments

@sxjeru
Copy link
Contributor

sxjeru commented Jun 26, 2024

📦 部署环境

Vercel

📌 软件版本

latest

💻 系统环境

Windows

🌐 浏览器

Chrome

🐛 问题描述

已启用服务端数据库。

配置页打开“限制历史消息数”,将“附带消息数”设为 10。
返回聊天页刷新,依旧是“不限制”。

在输入框上方的“使用历史消息数”处关闭“不限制”,并将消息数设为 6。
刷新后,依旧变为“不限制”。

📷 复现步骤

No response

🚦 期望结果

No response

📝 补充信息

No response

@sxjeru sxjeru added the 🐛 Bug Something isn't working | 缺陷 label Jun 26, 2024
@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


📦 Deployment environment

Vercel

📌 Software version

latest

💻 System environment

Windows

🌐 Browser

Chrome

🐛 Problem description

On the configuration page, turn on "Limit the number of historical messages" and set the "Number of attached messages" to 10.
Return to the chat page and refresh, it is still "unrestricted".

Turn off "No limit" at "Use historical messages" above the input box and set the number of messages to 6.
After refreshing, it still changes to "unrestricted".

📷 Steps to reproduce

No response

🚦 Expected results

No response

📝 Supplementary information

No response

@lobehubbot
Copy link
Member

👀 @sxjeru

Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible.
Please make sure you have given us as much context as possible.
非常感谢您提交 issue。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

@athlan20
Copy link

athlan20 commented Jun 28, 2024

关注一下这个bug的进展,等大佬修改~

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Pay attention to the progress of this bug

@Ssttar
Copy link
Contributor

Ssttar commented Jun 28, 2024

关注一波,一样的问题

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Follow this wave, same problem

@czh020110
Copy link

确实有这个问题,而且我设置历史消息数1的时候它还是会显示上一条ai发的消息的tiken,按理说token应该为0的,不过我在消费日志里传入的确实没包含上个消息的token数

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


There is indeed this problem, and when I set the historical message number to 1, it will still display the token of the last message sent by ai. Logically speaking, the token should be 0, but the last message I passed in the consumption log does not include it. number of tokens

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
Status: Roadmap - Chat 1.x
Development

No branches or pull requests

5 participants