Update pr-agent.yml

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Alexa Amundson
2026-02-27 01:45:25 -06:00
committed by GitHub
parent d826b372e5
commit 4c01769a17

View File

@@ -65,18 +65,20 @@ jobs:
const deletions = context.payload.pull_request.deletions ?? '?'; const deletions = context.payload.pull_request.deletions ?? '?';
// Call GitHub Models API for AI-powered analysis // Call GitHub Models API for AI-powered analysis
const response = await fetch('https://models.inference.ai.azure.com/chat/completions', { let response;
method: 'POST', try {
headers: { response = await fetch('https://models.inference.ai.azure.com/chat/completions', {
'Content-Type': 'application/json', method: 'POST',
'Authorization': `Bearer ${process.env.GITHUB_TOKEN}` headers: {
}, 'Content-Type': 'application/json',
body: JSON.stringify({ 'Authorization': `Bearer ${process.env.GITHUB_TOKEN}`
model: 'gpt-4o-mini', },
messages: [ body: JSON.stringify({
{ model: 'gpt-4o-mini',
role: 'system', messages: [
content: `You are a rigorous code and content review agent for the "simulation-theory" repository — a research project on simulation theory, mathematics, quantum mechanics, and philosophy. Your job is to carefully examine each pull request and provide a thorough, structured review. {
role: 'system',
content: `You are a rigorous code and content review agent for the "simulation-theory" repository — a research project on simulation theory, mathematics, quantum mechanics, and philosophy. Your job is to carefully examine each pull request and provide a thorough, structured review.
For each PR produce: For each PR produce:
1. **Summary** — a concise one-paragraph summary of the proposed changes. 1. **Summary** — a concise one-paragraph summary of the proposed changes.