Change model from gpt-4.1 to auto in getting-started examples#1800
Open
sunbrye wants to merge 1 commit into
Open
Change model from gpt-4.1 to auto in getting-started examples#1800sunbrye wants to merge 1 commit into
sunbrye wants to merge 1 commit into
Conversation
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>
Contributor
There was a problem hiding this comment.
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.1withautoin session creation examples (Node.js/TypeScript, Python, Go, .NET, Java) indocs/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
|
|
||
| const client = new CopilotClient(); | ||
| const session = await client.createSession({ model: "gpt-4.1" }); | ||
| const session = await client.createSession({ model: "auto" }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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