xonecas.io
64875
Mc

mini-coder / commit 6cf57b2

fix: add claude-code beta header for OAuth subscription model access

The Claude Code subscription requires the claude-code-20250219 beta
header alongside oauth-2025-04-20 to resolve model IDs for inference.

xonecas2026-03-16 6cf57b2080f4a3d4a86f859194299e1aa2509707 parent 9111058

1 file changed

src/llm-api/providers.ts+1−1
@@ -190,7 +190,7 @@ async function resolveAnthropicModel(modelId: string): Promise<LanguageModel> {
190190 fetch: fetchWithLogging,
191191 authToken: token,
192192 headers: {
193- "anthropic-beta": "oauth-2025-04-20",
193+ "anthropic-beta": "claude-code-20250219,oauth-2025-04-20",
194194 },
195195 }),
196196 };