feat: AI auto-fix + Gemini Flash provider #93
Reference in New Issue
Block a user
Delete Branch "feat/ai-autofix-gemini"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
AIProviderabstraction (ai_provider.py)New env vars for deployment
AI_PROVIDERgemini"gemini"or"anthropic"GOOGLE_AI_API_KEYBackend changes
ai_provider.py—GeminiProvider+AnthropicProvider+get_ai_provider()factory with fallbackai_fix_service.py— Builds targeted prompts per failing node (full tree outline + node detail + error), validates fix by substituting into tree copy, retries once with corrective promptPOST /ai/fix-treeendpoint — rate limited (10/min), requires engineer roleai_fix.pyschemas — Request/response Pydantic modelsai_tree_generator_service.pyto use provider abstractionAI_PROVIDER,GOOGLE_AI_API_KEY,AI_MODEL_GEMINI,AI_MODEL_ANTHROPICFrontend changes
ValidationSummary(appears when there are fixable structural errors)AIFixReviewModal— before/after JSON diff per fix, Apply/Skip per fix, Apply AllTreeEditorPageorchestrates the flow: validate → fix → review → apply → re-validateTest plan
GOOGLE_AI_API_KEYin Railway Shared Variables🤖 Generated with Claude Code
🚅 Deployed to the patherly-pr-93 environment in selfless-grace