阶段4(下):LangChain 1.x、提示词与注入防护、模型侧(路由/vLLM/LoRA)、AI 编程工具与验证、Dify/Coze 专题

This commit is contained in:
Shikui Wang committed 2026-10-23 16:15:33 +08:00
1 parent caaec830b3
commit 7a32d2c9a6
38 files changed
+3059 -67

No files matched your search

@@ -0,0 +1,10 @@
---
description: 编写或修改 FastAPI 接口时使用
globs: app/**/*.py
alwaysApply: false
---
- 路由函数只做参数校验和调用 service,业务逻辑放在 `app/services/`。
- 错误统一抛出 `AppError(code, message)`,不要直接返回 500。
- 数据库写操作放在事务里;涉及金额用 Decimal。
- 新增接口时同步更新 `tests/api/` 下的测试。