Files
kwcode/test_project_multi/new_code.py
Val-sss c6197d0316 v0.7.0: P1+P2+搜索重构+UI全面优化
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>
2026-04-28 17:52:59 +08:00

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]