fix(ai): remove Copilot Sonnet 5 fallback in generate-models

This commit is contained in:
Vegard Stikbakke
2026-07-01 23:00:32 +02:00
parent f8bec25f34
commit e285e90fdb
-11
View File
@@ -1675,17 +1675,6 @@ async function generateModels() {
});
}
// Add missing GitHub Copilot Claude Sonnet 5 until models.dev includes it.
const anthropicSonnet5 = allModels.find((m) => m.provider === "anthropic" && m.id === "claude-sonnet-5");
if (anthropicSonnet5 && !allModels.some((m) => m.provider === "github-copilot" && m.id === "claude-sonnet-5")) {
allModels.push({
...anthropicSonnet5,
provider: "github-copilot",
baseUrl: "https://api.individual.githubcopilot.com",
headers: { ...COPILOT_STATIC_HEADERS },
});
}
const deepseekCompat: OpenAICompletionsCompat = {
requiresReasoningContentOnAssistantMessages: true,
thinkingFormat: "deepseek",