<<<<<<< HEAD
CodeSaarthi, an accessibility-first AI coding companion for developers with RSI, motor impairments, or those who prefer speaking instead of typing.
This workspace is a practice backend for CodeSaarthi, an accessibility-first AI coding companion.
Developer code + speech-to-text question -> Gemini backend -> text response -> frontend speech synthesis.
GET /health- health check and active model namePOST /v1/analyze- main AI endpoint
{
"code": "def divide(a, b): return a / b",
"question": "ye crash kyun ho raha hai",
"mode": "socratic"
}{
"answer": "...",
"mode": "socratic",
"model": "gemini-3.6-flash",
"fallback": false
}GEMINI_API_KEY- required for Gemini callsGEMINI_MODEL- optional, defaults togemini-3.6-flashCORS_ORIGINS- optional comma-separated list, defaults to*
./.venv/Scripts/python.exe app.py./.venv/Scripts/python.exe -m uvicorn api:app --reload- Socratic mode should ask one short guiding question.
- Direct mode should explain the bug and show the fix.
- If Gemini is unavailable, the backend returns a clean fallback message instead of crashing. =======
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
- @vitejs/plugin-react uses Oxc
- @vitejs/plugin-react-swc uses SWC
The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see this documentation.
If you are developing a production application, we recommend using TypeScript with type-aware lint rules enabled. Check out the TS template for information on how to integrate TypeScript and typescript-eslint in your project.
origin/integrate/merge-restored-frontend