Skip to content

Commit a964b78

Browse files
committed
Update readme
1 parent 52facd9 commit a964b78

1 file changed

Lines changed: 2 additions & 24 deletions

File tree

README.md

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -69,18 +69,13 @@ From there, callers typically filter event types and JSON-decode the `data` fiel
6969
Req.post!("https://api.anthropic.com/v1/messages",
7070
json: request,
7171
into: :self,
72-
headers: %{
73-
"x-api-key" => api_key(),
74-
"anthropic-version" => "2023-06-01",
75-
"anthropic-beta" => "adaptive-thinking-2026-01-28,effort-2025-11-24,max-effort-2026-01-24"
76-
}
72+
headers: %{"x-api-key" => api_key(), "anthropic-version" => "2023-06-01"}
7773
)
7874

7975
response_body
8076
|> ServerSentEvents.decode_stream()
8177
|> Stream.map(fn %{data: data} -> JSON.decode!(data) end)
8278
|> Enum.each(&IO.inspect/1)
83-
8479
# %{
8580
# "content_block" => %{"type" => "thinking", "signature" => "", "thinking" => ""},
8681
# "index" => 0,
@@ -91,25 +86,8 @@ response_body
9186
# "index" => 0,
9287
# "type" => "content_block_delta"
9388
# }
94-
# %{
95-
# "delta" => %{"type" => "thinking_delta", "thinking" => " I have a good understanding of the project. Let "},
96-
# "index" => 0,
97-
# "type" => "content_block_delta"
98-
# }
99-
#
100-
# # etc...
10189
#
102-
# %{"index" => 11, "type" => "content_block_stop"}
103-
# %{
104-
# "delta" => %{"stop_details" => nil, "stop_reason" => "tool_use", "stop_sequence" => nil},
105-
# "type" => "message_delta",
106-
# "usage" => %{
107-
# "cache_creation_input_tokens" => 2810,
108-
# "cache_read_input_tokens" => 14451,
109-
# "input_tokens" => 6,
110-
# "output_tokens" => 10528
111-
# }
112-
# }
90+
# etc...
11391
```
11492

11593
## Behavior Boundary

0 commit comments

Comments
 (0)