PRIX / README.md
Rachit-Tw's picture
Upload 169 files
9284ad7 verified
|
Raw
History Blame Contribute Delete
1.58 kB
---
title: PRIX - AI PR Auditor
emoji: 🦀
colorFrom: gray
colorTo: blue
sdk: docker
pinned: false
license: mit
library: docker
app_port: 7860
---
# PRIX - AI PR Auditor
PRIX (formerly PRIXY) is an automated PR auditing tool designed to enhance code review workflows with AI-driven insights.
## Features
- Tree-sitter powered syntax analysis
- Multi-language support (JS, TS, Python, Go, Rust, Java, C++, etc.)
- Probot-based GitHub App integration
- AI-powered code review with confidence scoring
- Custom remedy PR suggestions
## Configuration
Configure these environment variables in your Hugging Face Space settings:
| Variable | Description | Default |
|----------|-------------|---------|
| `APP_ID` | GitHub App ID | - |
| `WEBHOOK_SECRET` | GitHub webhook secret | - |
| `GH_TOKEN` | GitHub personal access token | - |
| `OPENAI_API_KEY` | API key for AI model | - |
| `API_BASE_URL` | API base URL | `https://api.groq.com/openai/v1` |
| `LIGHT_MODEL` | Light model for summaries | `llama-3.1-8b-instant` |
| `HEAVY_MODEL` | Heavy model for reviews | `llama-3.3-70b-versatile` |
| `PORT` | Server port | `7860` |
## Deployment
This Space uses Docker for deployment. The Dockerfile builds a two-stage image:
1. **Builder stage**: Compiles TypeScript to JavaScript
2. **Runtime stage**: Runs the compiled application with minimal dependencies
The application automatically:
- Binds to `0.0.0.0:7860` for Hugging Face Spaces compatibility
- Handles `SIGTERM` for graceful shutdown
- Provides health checks at `/ping`