From b02d8098d099f9adeb064dcb50adefb1d843a914 Mon Sep 17 00:00:00 2001 From: Kunal Singh <147726001+kunalatmosoft@users.noreply.github.com> Date: Tue, 21 Oct 2025 13:38:42 +0530 Subject: [PATCH] Remove deprecated extra_headers from API calls Removed deprecated 'extra_headers' from API call. --- misc/prompt_caching.ipynb | 5 ----- 1 file changed, 5 deletions(-) diff --git a/misc/prompt_caching.ipynb b/misc/prompt_caching.ipynb index f14867b6..75668e0a 100644 --- a/misc/prompt_caching.ipynb +++ b/misc/prompt_caching.ipynb @@ -180,7 +180,6 @@ " model=MODEL_NAME,\n", " max_tokens=300,\n", " messages=messages,\n", - " extra_headers={\"anthropic-beta\": \"prompt-caching-2024-07-31\"}\n", "\n", " )\n", " end_time = time.time()\n", @@ -250,7 +249,6 @@ " model=MODEL_NAME,\n", " max_tokens=300,\n", " messages=messages,\n", - " extra_headers={\"anthropic-beta\": \"prompt-caching-2024-07-31\"}\n", " )\n", " end_time = time.time()\n", "\n", @@ -458,9 +456,6 @@ " # Make an API call to the assistant\n", " response = client.messages.create(\n", " model=MODEL_NAME,\n", - " extra_headers={\n", - " \"anthropic-beta\": \"prompt-caching-2024-07-31\"\n", - " },\n", " max_tokens=300,\n", " system=[\n", " {\"type\": \"text\", \"text\": system_message, \"cache_control\": {\"type\": \"ephemeral\"}},\n",