Advanced Examples
Database Layer Migration
gptdiff "Replace raw SQL with SQLAlchemy ORM" \
models/ queries/ \
--apply
API Versioning
gptdiff "Add v2 API endpoints with backward compatibility" \
--model deepseek-reasoner \
--temperature 0.5 \
--apply
Created Files:
- api/v2/schemas.py
- api/v2/routers/
- tests/v2/
Internationalization
gptdiff "Extract all UI strings to translation files" \
--files templates/ static/js/ \
--call
Saved in patch.diff