Skip to content

CHORE: Test/fix models api endpoint#529

Open
sumitmsft wants to merge 8 commits intomainfrom
test/fix-models-api-endpoint
Open

CHORE: Test/fix models api endpoint#529
sumitmsft wants to merge 8 commits intomainfrom
test/fix-models-api-endpoint

Conversation

@sumitmsft
Copy link
Copy Markdown
Contributor

@sumitmsft sumitmsft commented Apr 20, 2026

Work Item / Issue Reference

AB#44172

GitHub Issue: #<ISSUE_NUMBER>


Summary

This pull request updates the way the GitHub Models API is called in both the GitHub Actions workflow and the local test script. The main focus is on switching to the new API endpoint and updating the model identifier to the correct format.

API Endpoint and Model Updates:

  • Changed the API endpoint from models.inference.ai.azure.com to models.github.ai/inference in both .github/workflows/issue-triage.yml and test-triage-local.js to use the new GitHub Models service. [1] [2]
  • Updated the model identifier from "gpt-4.1" to "openai/gpt-4.1" in both files to match the expected model naming convention. [1] [2]

Environment Variable Handling:

  • Added the GITHUB_TOKEN environment variable to the Triage Analysis step in the workflow to ensure the token is available for API calls.

Copilot AI review requested due to automatic review settings April 20, 2026 11:13
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the repository’s GitHub Models integration used by the issue triage automation to align with the newer GitHub Models endpoint and model naming format, ensuring both the GitHub Actions workflow and the local test harness call the same service correctly.

Changes:

  • Switched GitHub Models API endpoint to https://models.github.ai/inference/chat/completions in workflow and local script.
  • Updated model identifier to openai/gpt-4.1 in both call sites.
  • Ensured GITHUB_TOKEN is available as an env var within the triage workflow step (and fixed a minor YAML indentation detail in secrets mapping).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
test-triage-local.js Updates GitHub Models endpoint + model id used by the local triage test script.
.github/workflows/issue-triage.yml Updates GitHub Models endpoint + model id for the triage workflow and ensures token env is present.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions
Copy link
Copy Markdown

📊 Code Coverage Report

🔥 Diff Coverage

100%


🎯 Overall Coverage

79%


📈 Total Lines Covered: 6677 out of 8449
📁 Project: mssql-python


Diff Coverage

Diff: main...HEAD, staged and unstaged changes

No lines with coverage information in this diff.


📋 Files Needing Attention

📉 Files with overall lowest coverage (click to expand)
mssql_python.pybind.logger_bridge.cpp: 59.2%
mssql_python.pybind.ddbc_bindings.h: 67.8%
mssql_python.row.py: 70.5%
mssql_python.pybind.logger_bridge.hpp: 70.8%
mssql_python.pybind.ddbc_bindings.cpp: 74.2%
mssql_python.pybind.connection.connection.cpp: 75.8%
mssql_python.__init__.py: 77.3%
mssql_python.ddbc_bindings.py: 79.6%
mssql_python.pybind.connection.connection_pool.cpp: 79.6%
mssql_python.connection.py: 85.2%

🔗 Quick Links

⚙️ Build Summary 📋 Coverage Details

View Azure DevOps Build

Browse Full Coverage Report

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-size: small Minimal code update

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants