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] 1.40.2更新后数据库版的Token统计没了 #5209

Closed
YANANEER opened this issue Dec 27, 2024 · 7 comments
Closed

[Bug] 1.40.2更新后数据库版的Token统计没了 #5209

YANANEER opened this issue Dec 27, 2024 · 7 comments
Labels
🐛 Bug Something isn't working | 缺陷

Comments

@YANANEER
Copy link

YANANEER commented Dec 27, 2024

📦 Environment

Docker

📌 Version

v1.40.3

💻 Operating System

Windows, macOS

🌐 Browser

Firefox

🐛 Bug Description

1.40.2更新后数据库版的Token统计没了,1.40.1的没问题。
可能是 #5185 的问题。
图片

📷 Recurrence Steps

No response

🚦 Expected Behavior

No response

📝 Additional Information

No response

@YANANEER YANANEER added the 🐛 Bug Something isn't working | 缺陷 label Dec 27, 2024
@github-project-automation github-project-automation bot moved this to Roadmap - Chat 1.x in Lobe Chat Routine Dec 27, 2024
@lobehubbot
Copy link
Member

👀 @Yananeer

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。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

Copy link

dosubot bot commented Dec 27, 2024

Hello, @YANANEER! I'm here to help you with any bugs, questions, or contributions you have. Let's work together to solve this issue.

The issue with the missing Token statistic in the database version after the 1.40.2 update is due to the refactoring of tokens to contextWindowTokens. This change is related to issue #5185, as noted in the changelog for version 1.40.2 [1].

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other

@YANANEER
Copy link
Author

YANANEER commented Dec 29, 2024

是只有我遇到这情况了么?我已经试过把镜像回退到1.40.1,退到1.40.1后这个功能一点问题都没有。一旦升到1.40.2之后这个统计就没了,我看别人的部署没有遇到这个问题。

@lobehubbot
Copy link
Member

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


Is this the only thing happening to me? I've tried rolling the image back to 1.40.1 with no problems at all. After upgrading to 1.40.2, this statistic disappears. I don’t see this problem in the normal version deployed by others.

@YANANEER
Copy link
Author

YANANEER commented Dec 29, 2024

问题解决了,把数据库的user_settings表里出问题账户的language_model字段清空了就好了,不知道为什么这个字段里堆积了巨量的无效数据,懒得挨个找原因了。

@github-project-automation github-project-automation bot moved this from Roadmap - Chat 1.x to Done in Lobe Chat Routine Dec 29, 2024
@lobehubbot
Copy link
Member

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


I found the reason. I just deleted the settings of my account in the user_settings table in the database. I don't know why there is a lot of data accumulated in the language_model field, and I am too lazy to find the reasons one by one.

@lobehubbot
Copy link
Member

@YANANEER

This issue is closed, If you have any questions, you can comment and reply.
此问题已经关闭。如果您有任何问题,可以留言并回复。

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: Done
Development

No branches or pull requests

2 participants