Skip to content

Change model from gpt-4.1 to auto in getting-started examples#1800

Open
sunbrye wants to merge 1 commit into
mainfrom
sunbrye/change-model-to-auto
Open

Change model from gpt-4.1 to auto in getting-started examples#1800
sunbrye wants to merge 1 commit into
mainfrom
sunbrye/change-model-to-auto

Conversation

@sunbrye

@sunbrye sunbrye commented Jun 25, 2026

Copy link
Copy Markdown
Collaborator

Why:

Docs workflow fails since GPT-4.1 model is not longer supported. Recommend using auto instead as it is future-proof.

Related PR: https://github.com/github/docs-internal/pull/61807

gpt-4.1 is deprecated. Update all code examples to use 'auto'
for automatic model selection.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings June 25, 2026 18:41
@sunbrye sunbrye requested a review from a team as a code owner June 25, 2026 18:41

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 getting-started documentation examples to avoid referencing the now-unsupported gpt-4.1 model by switching to model: "auto" / Model = "auto" across language snippets.

Changes:

  • Replaced gpt-4.1 with auto in session creation examples (Node.js/TypeScript, Python, Go, .NET, Java) in docs/getting-started.md.
Show a summary per file
File Description
docs/getting-started.md Updates “getting started” code samples to use model="auto" instead of gpt-4.1 to avoid relying on a deprecated model ID.

Copilot's findings

  • Files reviewed: 1/1 changed files
  • Comments generated: 1

Comment thread docs/getting-started.md

const client = new CopilotClient();
const session = await client.createSession({ model: "gpt-4.1" });
const session = await client.createSession({ model: "auto" });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants