mirror of
https://github.com/val1813/kwcode.git
synced 2026-09-03 14:42:13 +08:00
P1: KWCODE.md规则注入、/plan风险评估、Checkpoint快照、DocReader P2: 模型能力自适应、飞轮通知、价值量化仪表盘 搜索: 四级提取管道、并行搜索+BM25重排、意图感知、ChatExpert门控 UI: spinner动画、结果摘要、静默日志、重影大字Header 新增: kwcode setup-search 一键安装SearXNG 测试: 282/282 PASS (含17个E2E真实模型测试) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
13 lines
318 B
Python
13 lines
318 B
Python
def delete_user(username):
|
|
"""
|
|
从_users字典中删除用户。
|
|
|
|
Args:
|
|
username: 要删除的用户名的字符串。
|
|
|
|
Raises:
|
|
ValueError: 如果用户不存在。
|
|
"""
|
|
if username not in _users:
|
|
raise ValueError(f"User '{username}' not found.")
|
|
del _users[username] |