Skip to content

GPT-4.1 is not available anymore#1952

Open
agoncal wants to merge 2 commits into
github:mainfrom
agoncal:agoncal/update_model_getting_started
Open

GPT-4.1 is not available anymore#1952
agoncal wants to merge 2 commits into
github:mainfrom
agoncal:agoncal/update_model_getting_started

Conversation

@agoncal

@agoncal agoncal commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

gpt-4.1 is not available in the CLI anymore. So when running the getting started sample I get:

com.github.copilot.JsonRpcException: Request session.create failed with message: Model "gpt-4.1" is not available

I changed it to gpt-5.4

Copilot AI review requested due to automatic review settings July 9, 2026 08:14
@agoncal agoncal requested a review from a team as a code owner July 9, 2026 08:14

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 to use a model identifier that is available in the Copilot CLI, preventing the sample code from failing during session.create.

Changes:

  • Replaced model: "gpt-4.1" with model: "gpt-5.4" across all language snippets in the getting-started guide.
Show a summary per file
File Description
docs/getting-started.md Updates all quickstart code samples to use gpt-5.4 instead of gpt-4.1 to avoid a runtime “model not available” error.

Review details

  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Low

Comment thread docs/getting-started.md
Comment on lines 152 to 154
const client = new CopilotClient();
const session = await client.createSession({ model: "gpt-4.1" });
const session = await client.createSession({ model: "gpt-5.4" });

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