{"id":17942489,"url":"https://github.com/github/gh-models","last_synced_at":"2025-03-24T14:32:42.264Z","repository":{"id":258365051,"uuid":"849051482","full_name":"github/gh-models","owner":"github","description":"CLI extension for the GitHub Models service","archived":false,"fork":false,"pushed_at":"2025-03-13T14:49:37.000Z","size":260,"stargazers_count":50,"open_issues_count":0,"forks_count":4,"subscribers_count":100,"default_branch":"main","last_synced_at":"2025-03-13T15:36:44.398Z","etag":null,"topics":["gh-extension"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/github.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":"SECURITY.md","support":"SUPPORT.md","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-28T22:18:25.000Z","updated_at":"2025-03-13T14:49:41.000Z","dependencies_parsed_at":"2025-01-14T02:42:39.575Z","dependency_job_id":"c3bf82c7-357d-4818-a799-56214b05683b","html_url":"https://github.com/github/gh-models","commit_stats":null,"previous_names":["github/gh-models"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github%2Fgh-models","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github%2Fgh-models/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github%2Fgh-models/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github%2Fgh-models/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/github","download_url":"https://codeload.github.com/github/gh-models/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245289775,"owners_count":20591130,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gh-extension"],"created_at":"2024-10-29T03:05:43.950Z","updated_at":"2025-03-24T14:32:42.257Z","avatar_url":"https://github.com/github.png","language":"Go","funding_links":[],"categories":["🧩 Categories","Go","AI/Agents"],"sub_categories":["Miscellaneous"],"readme":"## GitHub Models extension\n\nUse the GitHub Models service from the CLI!\n\n## Using\n\n### Prerequisites\n\nThe extension requires the [`gh` CLI](https://cli.github.com/) to be installed and in the `PATH`. The extension also requires the user have authenticated via `gh auth`.\n\n### Installing\n\nAfter installing the `gh` CLI, from a command-line run:\n```shell\ngh extension install https://github.com/github/gh-models\n```\n\n#### Upgrading\n\nIf you've previously installed the `gh models` extension and want to update to the latest version, you can run this command:\n\n```sh\ngh extension upgrade github/gh-models\n```\n\n### Examples\n\n#### Listing models\n\n```shell\ngh models list\n```\n\nExample output:\n```shell\nName                          Friendly Name                 Publisher\nAI21-Jamba-Instruct           AI21-Jamba-Instruct           AI21 Labs\ngpt-4o                        OpenAI GPT-4o                 Azure OpenAI Service\ngpt-4o-mini                   OpenAI GPT-4o mini            Azure OpenAI Service\nCohere-command-r              Cohere Command R              cohere\nCohere-command-r-plus         Cohere Command R+             cohere\n```\n\nUse the value in the \"Name\" column when specifying the model on the command-line.\n\n#### Running inference\n\n##### REPL mode\n\nRun the extension in REPL mode. This will prompt you for which model to use.\n```shell\ngh models run\n```\n\nIn REPL mode, use `/help` to list available commands. Otherwise just type your prompt and hit ENTER to send to the model.\n\n##### Single-shot mode\n\nRun the extension in single-shot mode. This will print the model output and exit.\n```shell\ngh models run gpt-4o-mini \"why is the sky blue?\"\n```\n\nRun the extension with output from a command. This uses single-shot mode.\n```shell\ncat README.md | gh models run gpt-4o-mini \"summarize this text\"\n```\n\n## Notice\n\nRemember when interacting with a model you are experimenting with AI, so content mistakes are possible. The feature is\nsubject to various limits (including requests per minute, requests per day, tokens per request, and concurrent requests)\nand is not designed for production use cases. GitHub Models uses\n[Azure AI Content Safety](https://azure.microsoft.com/products/ai-services/ai-content-safety). These filters\ncannot be turned off as part of the GitHub Models experience. If you decide to employ models through a paid service,\nplease configure your content filters to meet your requirements. This service is under\n[GitHub's Pre-release Terms](https://docs.github.com/site-policy/github-terms/github-pre-release-license-terms). Your\nuse of the GitHub Models is subject to the following\n[Product Terms](https://www.microsoft.com/licensing/terms/productoffering/MicrosoftAzure/allprograms) and\n[Privacy Statement](https://www.microsoft.com/licensing/terms/product/PrivacyandSecurityTerms/MCA). Content within this\nRepository may be subject to additional license terms.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgithub%2Fgh-models","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgithub%2Fgh-models","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgithub%2Fgh-models/lists"}