From fb3c7a05f0eee5398adfed4f8c939801e6b06b14 Mon Sep 17 00:00:00 2001 From: binary64 <1680627+binary64@users.noreply.github.com> Date: Tue, 24 Feb 2026 18:24:14 +0000 Subject: [PATCH] =?UTF-8?q?fix(litellm):=20remove=20pre-call=20hook=20?= =?UTF-8?q?=E2=80=94=20LiteLLM=20v1.81.15=20natively=20handles=20OAuth?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR #19912 (merged Feb 17) fixed optionally_handle_anthropic_oauth() to: - Detect sk-ant-oat* tokens in api_key - Remove x-api-key header - Set Authorization: Bearer correctly The custom pre-call hook (from PR #51) is now redundant and causes 'Extra inputs are not permitted' errors. Removing it and relying on ANTHROPIC_API_KEY env var containing the OAuth token. --- infra/manifests/litellm/configmap.yaml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/infra/manifests/litellm/configmap.yaml b/infra/manifests/litellm/configmap.yaml index 32637ec1..f8add104 100644 --- a/infra/manifests/litellm/configmap.yaml +++ b/infra/manifests/litellm/configmap.yaml @@ -42,20 +42,14 @@ data: - model_name: claude-opus-4-6 litellm_params: model: anthropic/claude-opus-4-6 - custom_llm_provider: anthropic - async_pre_call_hook: hooks.async_pre_call_hook - model_name: claude-sonnet-4-6 litellm_params: model: anthropic/claude-sonnet-4-6 - custom_llm_provider: anthropic - async_pre_call_hook: hooks.async_pre_call_hook - model_name: claude-haiku-4-5 litellm_params: model: anthropic/claude-haiku-4-5 - custom_llm_provider: anthropic - async_pre_call_hook: hooks.async_pre_call_hook # ══════════════════════════════════════════ # OpenAI (direct — latest nano only)