Skip to content

Incorrect model name in gh models run documentation example #38606

Closed
@mgiovani

Description

@mgiovani

Code of Conduct

What article on docs.github.com is affected?

https://docs.github.com/en/github-models/use-github-models/integrating-ai-models-into-your-development-workflow

What changes are you suggesting?

Describe the bug

The documentation for the gh models run command uses an invalid model name (gpt-4.1) in its example. When following the example, users receive the error:
Error: The specified model name is not found. Run 'gh models list' to see available models or 'gh models run' to select interactively.

Steps to reproduce

  1. Run the following command as shown in the docs:
    gh models run gpt-4.1 "Why is the sky blue?"
    
  2. Observe the error message about the model name not being found.

Expected behavior

The documentation should use a valid model name, such as openai/gpt-4.1, so that the example works as intended.

Screenshots

Image

Additional context

  • The CLI help and gh models list show that openai/gpt-4.1 is a valid model name.
  • Updating the docs will help users avoid confusion and errors.

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    contentThis issue or pull request belongs to the Docs Content teamgithub modelsContent relating to GitHub modelsneeds SMEThis proposal needs review from a subject matter expert

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions