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,7 +65,9 @@ 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;
try {
response = await fetch('https://models.inference.ai.azure.com/chat/completions', {
method: 'POST', method: 'POST',
headers: { headers: {
'Content-Type': 'application/json', 'Content-Type': 'application/json',