Skip to content

Fix/force switch anonymouse #764

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

RaoHai
Copy link
Contributor

@RaoHai RaoHai commented Mar 4, 2025

  • 匿名用户强制走降级 token

Copy link

vercel bot commented Mar 4, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
petercat ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 4, 2025 10:06am

Copy link

Walkthrough

此更改强制匿名用户使用降级的免费 token,而不是根据 bot 的 token_id 获取特定的 token。这是通过在获取 bot 后检查用户是否匿名来实现的。

Changes

文件 摘要
server/agent/bot/get_bot.py 添加了对匿名用户的检查,并在匿名时强制使用免费 token。还添加了调试输出以打印用户和获取的 token 信息。

Copy link

codecov bot commented Mar 4, 2025

Codecov Report

Attention: Patch coverage is 0% with 5 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
server/agent/bot/get_bot.py 0.00% 5 Missing ⚠️
Files with missing lines Coverage Δ
server/agent/bot/get_bot.py 41.37% <0.00%> (-6.63%) ⬇️

Copy link
Contributor

@xingwanying xingwanying left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LG

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants