Skip to content

Commit 479211f

Browse files
committed
fix(ai-triage): use GitHub Models REST inference endpoint
1 parent 095b8dd commit 479211f

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/ai-triage.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,15 +81,17 @@ jobs:
8181
let triage;
8282
try {
8383
const res = await fetch(
84-
'https://models.inference.ai.azure.com/chat/completions',
84+
`https://models.github.ai/orgs/${owner}/inference/chat/completions`,
8585
{
8686
method: 'POST',
8787
headers: {
88+
'Accept': 'application/vnd.github+json',
8889
'Authorization': `Bearer ${process.env.GITHUB_TOKEN}`,
90+
'X-GitHub-Api-Version': '2026-03-10',
8991
'Content-Type': 'application/json',
9092
},
9193
body: JSON.stringify({
92-
model: 'gpt-4o-mini',
94+
model: 'openai/gpt-4.1-mini',
9395
temperature: 0.1,
9496
max_tokens: 400,
9597
messages: [

0 commit comments

Comments
 (0)