---
title: "GitHub Models 正式退役，开发者需迁移 LLM 调用方案"
source: "Simon Willison 博客（Atom）"
source_tier: "t2"
url: "https://simonwillison.net/2026/Aug/9/github-models-is-now-retired/#atom-everything"
permalink: "https://feed.astralor.com/items/itm_2088203280efa3f1706bdc6d"
published: "2026-08-09T22:48:05.000Z"
score: 77
channel: "ai"
tags: ["GitHub","GitHub Actions","GitHub Models","GPT-5.6 Luna","LLM 定价","OpenAI"]
---

# GitHub Models 正式退役，开发者需迁移 LLM 调用方案

## AI 点评

> 这则消息值得所有在 CI/CD 里用免费或补贴 LLM API 的人注意：平台随时可能终止此类服务，绑定过深会打乱自动化流程。Simon 的迁移很务实，用带限额的 API key 避免了成本失控，也保留了原有功能，这个思路对其他人很有参考价值。

## 速览

GitHub Models 已正式退役，此前它为开发者提供了统一的多模型 API，并允许 GitHub Actions 中的代码直接使用环境自带的 GitHub API key 执行提示。Simon Willison 发现自己的自动化仓库因退役棕晕而失败，推测原因在于编码代理模式让免费或补贴 token 的成本过高。他已将工作流迁移至 OpenAI API，并设置月消费限额，改用 GPT-5.6 Luna 生成摘要。这提醒依赖平台免费模型资源的开发者需及时调整方案。

## 关键点

- GitHub Models 已正式退役，其统一 API 与模型 playground 服务关闭。
- GitHub Actions 中依赖 GitHub 自带密钥调用模型的工作流已受影响，Simon Willison 的仓库构建失败。
- Simon 推测退役主因是编码代理模式推高了免费/补贴 token 的成本。
- 他改用 OpenAI API（GPT-5.6 Luna）并设置月限额，完成了平滑迁移。

## 全文

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. Tags: github, ai, github-actions, generative-ai, llms, llm-pricing

---

引用前请核对原文;本文由星际流动整理:https://feed.astralor.com/items/itm_2088203280efa3f1706bdc6d
