Skip to content

Commit 1e82abe

Browse files
committed
fix: force use anonymous
1 parent 593d5d6 commit 1e82abe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/agent/bot/get_bot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ def get_bot(
2424
llm_token_dao = LLMTokenDAO()
2525

2626
bot = bot_dao.get_bot(input_data.bot_id)
27-
27+
print(f"user={user}")
2828
# 如果是匿名,强行走 free
29-
if not getattr(user, "anonymous", False):
29+
if not user or getattr(user, "anonymous"):
3030
llm_token = llm_token_dao.get_llm_token(free=True)
3131
elif bot.token_id:
3232
llm_token = llm_service.get_llm_token(id=bot.token_id)

0 commit comments

Comments
 (0)