fix(ai): remove Copilot Sonnet 5 fallback in generate-models
This commit is contained in:
@@ -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 = {
|
const deepseekCompat: OpenAICompletionsCompat = {
|
||||||
requiresReasoningContentOnAssistantMessages: true,
|
requiresReasoningContentOnAssistantMessages: true,
|
||||||
thinkingFormat: "deepseek",
|
thinkingFormat: "deepseek",
|
||||||
|
|||||||
Reference in New Issue
Block a user