test: allow anonymous access for test_agent_v2

This commit is contained in:
ymq 2026-08-10 11:16:15 +08:00
parent 48ec38c8ab
commit 0971a7a5f7

View File

@ -9,8 +9,9 @@ if not prompt:
return json.dumps({"error": "缺少 prompt"}, ensure_ascii=False)
uid = await get_user()
# 测试模式:无认证时使用 test-user
if not uid:
return json.dumps({"error": "请先登录"}, ensure_ascii=False)
uid = 'user-01' # fallback for testing
# 加载 v2 配置和执行引擎
from pipeline_core.agent_config import load_agent_config, SDLC_DEFAULT_CONFIG