--- language: vi tags: - code-generation - code-assistant - huggingface - python license: mit --- # 🚀 SuperPro Code Generator **Model code siêu siêu giỏi pro** – Wrapper dùng Hugging Face Inference API. ### Mô tả Đây là class Python giúp bạn sinh code **production-ready** cực mạnh bằng cách gọi model code mạnh nhất hiện tại (DeepSeek-V3.2 hoặc Qwen2.5-Coder). ### Tính năng - Viết code sạch, tối ưu, best practices - Comment tiếng Việt - Tự động thêm unit test, error handling, typing - Hỗ trợ gần như tất cả ngôn ngữ lập trình - Production-ready ### Cách sử dụng (rất đơn giản) ```python # 1. Cài thư viện pip install huggingface_hub # 2. Code sử dụng from SuperProCodeModel import SuperProCodeModel import os # Set token (KHÔNG paste trực tiếp vào code public) os.environ["HF_TOKEN"] = "hf_xxxxxxxxxxxx" # ← thay bằng token thật của bạn model = SuperProCodeModel() result = model.generate( task="Xây dựng FastAPI CRUD User với JWT authentication, PostgreSQL, SQLAlchemy và full pytest", language="Python" ) print(result)