fix(ai): route GitHub Copilot Fable 5 through Anthropic Messages

closes #8961
This commit is contained in:
David Brailovsky 2026-09-02 14:22:38 +02:00
parent 256f63024d
commit 69afa10503
2 changed files with 5 additions and 1 deletions

View file

@ -2,6 +2,10 @@
## [Unreleased]
### Fixed
- Fixed GitHub Copilot Claude Fable 5 requests to use the Anthropic Messages adapter so selected reasoning levels are sent ([#8961](https://github.com/earendil-works/pi/issues/8961)).
## [0.84.4] - 2026-08-28
### Added

View file

@ -2059,7 +2059,7 @@ async function loadModelsDevData(): Promise<Model<any>[]> {
if (m.status === "deprecated") continue;
// Claude 4.x and 5.x models route to Anthropic Messages API
const isCopilotClaude = /^claude-(haiku|sonnet|opus)-[45]([.\-]|$)/.test(modelId);
const isCopilotClaude = /^claude-(haiku|sonnet|opus|fable)-[45]([.\-]|$)/.test(modelId);
// Grok, gpt-5, oswe, and MAI-Code models are only served through
// the Copilot /responses endpoint.
const needsResponsesApi =