mirror of
https://github.com/blackboxprogramming/simulation-theory.git
synced 2026-03-18 03:33:59 -05:00
Update pr-agent.yml
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
4
.github/workflows/pr-agent.yml
vendored
4
.github/workflows/pr-agent.yml
vendored
@@ -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',
|
||||||
|
|||||||
Reference in New Issue
Block a user