Aug 7, 2026 17:37 UTC
pypi
anthropic
anthropic 0.121.0 shipped: 49 interesting new strings (49 sentence, 2 model_id, 2 feature_flag)
anthropic 0.120.2 -> 0.121.0: +121 strings, -420 strings, 49 interesting [model_id] (2) + py client = Anthropic(middleware=[BetaRefusalFallbackMiddleware([{"model": "claude-opus-4-8"}])]) state = BetaFallbackState() with state: message = client.beta.messages.create(**params) + python with client.messages.stream( model="claude-haiku-4-5", max_tokens=1024, messages=[{"role": "user", "content": "Hello!"}], ) as stream: for text in stream.text_stream: print(text, end="", flush=True) [feature_flag] (2) + py client = Anthropic(middleware=[BetaRefusalFallbackMiddleware([{"model": "claude-opus-4-8"}])]) state = BetaFallbackState() with state: message = client.beta.messages.create(**params) + py with client.beta.messages.stream(...) as stream: for chunk in stream: ... [sentence] (49) + py client = Anthropic(middleware=[BetaRefusalFallbackMiddleware([{"model": "claude-opus-4-8"}])]) state = BetaFallbackState() with state: message = client.beta.messages.create(**params) + python with client.messages.stream( model="claude-haiku-4-5", max_tokens=1024, messages=[{"role": "user", "content": "Hello!"}], ) as stream: for text in stream.text_stream: print(text, end="", flush=True) + py with client.beta.messages.stream(...) as stream: for chunk in stream: ... + .get_final_text() can only be called when the API returns a `text` content block. The API returned {','.join([b.type for b in message.content])} content block type(s) that you can access by calling get_final_message().content + : a field set to a value overrides it, a field explicitly + : a key set to a value overrides it, a key explicitly + ; the whole object is dropped when nothing is left. Always a fresh dict; + Cumulative count of server-executed tool invocations, broken down by tool. + Number of server-executed web fetch requ
caught by the 20-minute sweep · the live wire · all receipts