Skip to content

Fix Fable 5.1 Anthropic sampling compatibility - #2

Merged
brendan-kellam merged 1 commit into
mainfrom
fix/anthropic-sampling
Sep 7, 2026
Merged

Fix Fable 5.1 Anthropic sampling compatibility#2
brendan-kellam merged 1 commit into
mainfrom
fix/anthropic-sampling

Conversation

@brendan-kellam

@brendan-kellam brendan-kellam commented Sep 7, 2026

Copy link
Copy Markdown

Planner requests to Fable 5.1 failed with HTTP 400 because the pinned Copilot runtime adds a deprecated temperature parameter. Register an SDK request handler that removes temperature, top_p, and top_k from direct Anthropic Messages requests, preserving credentials, message/tool payloads, streaming, and cancellation. Other endpoints pass through unchanged.

The pinned-runtime mock now rejects deprecated sampling fields, reproducing the reported error before the fix and passing afterward for Planner streaming, allowed/denied tools, authentication failures, and worker results. Added request-boundary tests covering payload preservation and unrelated endpoints.

Validation: bun run test:anthropic (4 passed), focused tests (14 passed), bun run types, and bun run ci.

Live preflight: the deployed pinned runtime, with this request handler, completed an isolated arithmetic inference and terminal tool call using the configured Anthropic key. The usage event identified claude-fable-5-1. No user documents were accessed or changed.

@brendan-kellam
brendan-kellam merged commit 526d32e into main Sep 7, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant