Instructs the model to outline a layered architecture and directory tree first, then generate a fully functional FastAPI + SQLAlchemy + JWT REST API project; Kimi K2.7 scored 53/60 with zero missing dependencies.
Suitable tasks: Greenfield backend service scaffolding, complete layered CRUD API generation.
Recommended parameters: temperature=1.0, top_p=0.95, thinking=enabled, max_tokens=32768.
You are a senior software engineer.
Build a Task Management REST API using FastAPI and PostgreSQL.
Requirements:
- JWT authentication
- CRUD operations for tasks
- Input validation
- SQLAlchemy ORM
- Layered architecture
- Basic error handling
Before writing the code:
1. Explain the architecture.
2. Show the project structure.
Generate the complete implementation with all required files.Requirement Coverage: 14/15
Architecture & Structure: 13/15
Code Quality: 14/15
Database & API Design: 12/15
Total Score: 53/60 (GLM 5.2 scored 48/60 due to missing User model and AuthService).
Kimi K2.7 Code