Browse Source

fix(ai-triage): use GitHub Models REST inference endpoint

pull/4917/head
Daniel Gibbs 1 month ago
parent
commit
479211f22f
Failed to extract signature
  1. 6
      .github/workflows/ai-triage.yml

6
.github/workflows/ai-triage.yml

@ -81,15 +81,17 @@ jobs:
let triage; let triage;
try { try {
const res = await fetch( const res = await fetch(
'https://models.inference.ai.azure.com/chat/completions', `https://models.github.ai/orgs/${owner}/inference/chat/completions`,
{ {
method: 'POST', method: 'POST',
headers: { headers: {
'Accept': 'application/vnd.github+json',
'Authorization': `Bearer ${process.env.GITHUB_TOKEN}`, 'Authorization': `Bearer ${process.env.GITHUB_TOKEN}`,
'X-GitHub-Api-Version': '2026-03-10',
'Content-Type': 'application/json', 'Content-Type': 'application/json',
}, },
body: JSON.stringify({ body: JSON.stringify({
model: 'gpt-4o-mini', model: 'openai/gpt-4.1-mini',
temperature: 0.1, temperature: 0.1,
max_tokens: 400, max_tokens: 400,
messages: [ messages: [

Loading…
Cancel
Save