Fix model name not found with gh models commands#38607
Fix model name not found with gh models commands#38607Sharra-writes merged 2 commits intogithub:mainfrom
Conversation
|
Thanks for opening this pull request! A GitHub docs team member should be by to give feedback soon. In the meantime, please check out the contributing guidelines. |
There was a problem hiding this comment.
Pull Request Overview
This PR corrects the example model name used in the gh models run documentation to reference a valid model, and updates both the single-question and piped-command examples.
- Updated the single-question example to use a valid model name
- Updated the piped-context example to use a valid model name
content/github-models/use-github-models/integrating-ai-models-into-your-development-workflow.md
Show resolved
Hide resolved
content/github-models/use-github-models/integrating-ai-models-into-your-development-workflow.md
Show resolved
Hide resolved
How to review these changes 👓Thank you for your contribution. To review these changes, choose one of the following options: A Hubber will need to deploy your changes internally to review. Table of review linksNote: Please update the URL for your staging server or codespace. The table shows the files in the
Key: fpt: Free, Pro, Team; ghec: GitHub Enterprise Cloud; ghes: GitHub Enterprise Server 🤖 This comment is automatically generated. |
|
Thanks for opening a PR! I'll get this triaged for review. |
There was a problem hiding this comment.
Pull Request Overview
This PR updates the documentation for the gh models run command by replacing the incorrect model name "gpt-4.1" with the valid "openai/gpt-4.1".
- Updated example commands to utilize the correct model name across both single question and command output context scenarios.
- Ensures consistency with CLI help and available models.
|
Thanks very much for contributing! Your pull request has been merged 🎉 You should see your changes appear on the site in approximately 24 hours. If you're looking for your next contribution, check out our help wanted issues ⚡ |
Why:
This PR updates the documentation for the
gh models runcommand to use a valid model name.Previously, the docs referenced
gpt-4.1, which is not a recognized model name and results in an error.The example has been updated to use
openai/gpt-4.1, which is a valid model name according to the CLI help and available models.Closes: #38606
Screenshots:
Before:

After:

Code snippet changed:
Check off the following: