Views
No views yet
1# Create model
2ollama create peer-ai -f Modelfile
3
4# Review code
5curl -s http://localhost:11434/api/generate -d '{
6 "model": "peer-ai",
7 "prompt": "Review the following python code...",
8 "stream": false
9}'1pip install peer-ai
2git diff | peer-ai review -
3peer-ai review src/main.py1{
2 "line": 2,
3 "severity": "high",
4 "category": "security",
5 "rule": "CWE-78",
6 "title": "Command injection vulnerability",
7 "message": "User input passed to shell command.",
8 "suggestion": "Use subprocess with shell=False."
9}