Skip to content

Commit ad6d4a9

Browse files
authored
Merge pull request anthropics#230 from kunalatmosoft/patch-1
Remove deprecated extra_headers from API calls
2 parents 7431b7e + b02d809 commit ad6d4a9

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

misc/prompt_caching.ipynb

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,6 @@
180180
" model=MODEL_NAME,\n",
181181
" max_tokens=300,\n",
182182
" messages=messages,\n",
183-
" extra_headers={\"anthropic-beta\": \"prompt-caching-2024-07-31\"}\n",
184183
"\n",
185184
" )\n",
186185
" end_time = time.time()\n",
@@ -250,7 +249,6 @@
250249
" model=MODEL_NAME,\n",
251250
" max_tokens=300,\n",
252251
" messages=messages,\n",
253-
" extra_headers={\"anthropic-beta\": \"prompt-caching-2024-07-31\"}\n",
254252
" )\n",
255253
" end_time = time.time()\n",
256254
"\n",
@@ -458,9 +456,6 @@
458456
" # Make an API call to the assistant\n",
459457
" response = client.messages.create(\n",
460458
" model=MODEL_NAME,\n",
461-
" extra_headers={\n",
462-
" \"anthropic-beta\": \"prompt-caching-2024-07-31\"\n",
463-
" },\n",
464459
" max_tokens=300,\n",
465460
" system=[\n",
466461
" {\"type\": \"text\", \"text\": system_message, \"cache_control\": {\"type\": \"ephemeral\"}},\n",

0 commit comments

Comments
 (0)