From 1b84c04dcd3434586c51187d9bbe3fd130708173 Mon Sep 17 00:00:00 2001 From: Prakersh Maheshwari Date: Fri, 24 Apr 2026 17:34:24 +0530 Subject: [PATCH] fix: normalize Anthropic header keys to lowercase in provider registry (#1527) The provider registry used PascalCase header keys (e.g. "Anthropic-Version") while the Claude Code client path in base.ts sets lowercase keys ("anthropic-version"). Since JS object keys are case-sensitive, both keys coexist in the headers object. When fetch() sends them, HTTP treats them as duplicates and concatenates the values ("2023-06-01, 2023-06-01"), causing Anthropic's API to reject the request with a 400 error. Normalize all Anthropic-specific header keys to lowercase to match the convention used in executors and the upstream API.