GitHub Models 现已退役
英文标题:GitHub Models is now retired
GitHub 已完成 GitHub Models 的退役,此前服务在计划性退役停机期间曾显示暂时不可用。GitHub Models 曾提供模型 Playground 和覆盖多家 LLM 提供商的统一 API,并允许 GitHub Actions 直接使用环境中已有的 GitHub API 密钥执行提示词。原作者认为,编程 Agent 使用模式带来的高昂 Token 成本,可能是该服务关闭的原因之一。作者已将其仓库中用于生成 README 文件夹摘要的工作流迁移至 OpenAI API,并使用设置了月度消费上限的 API 密钥调用 GPT-5.6 Luna。
中文
2026年8月9日 - Link Blog
GitHub Models 现已退役。直到今天,我的 simonw/research 仓库的 GitHub Actions 运行因以下错误信息失败时,我才注意到这条消息:
作为计划性退役停机的一部分,GitHub Models 暂时不可用。
这条信息其实已经过时,因为退役已经完成。
GitHub Models 是一种有些不伦不类的产品。GitHub 提供了模型 Playground 工具,以及一个覆盖多家不同 LLM 提供商的统一 API;其最大的优势在于,运行在 GitHub Actions 中的代码可以使用该环境中已有的 GitHub API 密钥来执行提示词。
这使得构建符合 GitHub Next 的 Continuous AI 概念的工具变得很容易。
GitHub 没有透露关闭背后的原因,但我猜测这符合一个常见模式:编程 Agent 的使用方式使得提供免费或补贴 Token 的成本变得难以承受。
我的工作流会调用 LLM,为 README 生成文件夹摘要,使用的是这里的代码。我已将 GitHub Models 替换为设置了月度消费上限的 OpenAI API 密钥,现在使用 GPT-5.6 Luna 生成这些摘要。
English / 原文
9th August 2026 - Link Blog
GitHub Models is now retired. I missed this news until today, when the GitHub Actions run for my simonw/research repository failed with this error message:
GitHub Models is temporarily unavailable as part of a scheduled retirement brownout.
That message is already stale, because the retirement has been completed.
GitHub Models was an odd-shaped duck. GitHub provided a model playground tool and a unified API across a bunch of different LLM providers, with the biggest benefit being that code running in GitHub Actions could use the GitHub API key already present in that environment to execute prompts.
This made it easy to build things that fit GitHub Next's Continuous AI concept.
GitHub didn't share the reason behind the shutdown, but my bet is that it fits the pattern where coding agent patterns made it prohibitively expensive to offer free or subsidized tokens.
My workflow uses an LLM call to create folder summaries for the README, using this code here. I swapped GitHub Models out for an OpenAI API key with a monthly spending limit, and I'm now generating my summaries using GPT-5.6 Luna.