-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Update GitHub Models endpoint from deprecated Azure endpoint to new dedicated endpoint #194
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Co-authored-by: elbruno <[email protected]>
Co-authored-by: elbruno <[email protected]>
|
@copilot validate that all the code changes and documentation changes are using the right url: "https://models.github.ai/" |
…ub.ai Co-authored-by: elbruno <[email protected]>
I've validated and corrected all endpoint URLs to use "https://models.github.ai/" as requested. Updated all 32 files (6 code files + 4 English docs + 23 translation files) and verified all sample applications build successfully. Commit: d3c1d5b |
ContextThe changes are OK, however, the endpoint to be used in C# must be also updated. In the sample file [], where we found this code: IChatClient client = new ChatCompletionsClient(
endpoint: new Uri("https://models.github.ai/"),
new AzureKeyCredential(githubToken))It must be changed to this: IChatClient client = new ChatCompletionsClient(
endpoint: new Uri("https://models.github.ai/inference"),
new AzureKeyCredential(githubToken))So changing the url: ["https://models.github.ai/"] to ["https://models.github.ai/inference"]. TasksUpdate the code samples and documentation. |
…lients - Updated 6 C# code files to use https://models.github.ai/inference - Updated 4 English documentation files - Updated 23 translation files across 8 languages - Added note about GitHub Models endpoint change with reference to announcement - Verified all sample applications build successfully Co-authored-by: elbruno <[email protected]>
... Updated all C# code files to use |
This PR updates all references to the deprecated GitHub Models Azure endpoint (
https://models.inference.azure.com) to the new dedicated GitHub Models endpoint (https://models.ai.azure.com) as announced in the GitHub Models deprecation notice.Changes Made
Updated endpoint URLs across 32 files:
Files Updated
Code Files (.cs)
02-SetupDevEnvironment/src/BasicChat-01MEAI/Program.cs03-CoreGenerativeAITechniques/src/BasicChat-01MEAI/Program.cs03-CoreGenerativeAITechniques/src/BasicChat-02SK/Program.cs03-CoreGenerativeAITechniques/src/MEAIFunctions/Program.cs03-CoreGenerativeAITechniques/src/SKFunctions01/Program.cs03-CoreGenerativeAITechniques/src/Vision-01MEAI-GitHubModels/Program.csDocumentation Files (.md)
03-CoreGenerativeAITechniques/01-lm-completions-functions.md03-CoreGenerativeAITechniques/02-retrieval-augmented-generation.md03-CoreGenerativeAITechniques/03-vision-audio.mdVerification
✅ All sample applications build successfully with the new endpoint
✅ No functional changes to application logic - only endpoint URLs updated
✅ Changes are minimal and surgical, affecting only the required endpoint references
✅ Comprehensive search confirms no deprecated endpoints remain in the codebase
Example Change
Fixes #191.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.