Aug 13, 2026 19:02 UTC
pypi
anthropic
anthropic 0.122.0 shipped: 41 interesting new strings (41 sentence, 2 model_id, 2 feature_flag)
anthropic 0.121.0 -> 0.122.0: +98 strings, -420 strings, 41 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] (41) + 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; + bash pip install "anthropic[google_cloud]" + header (skipping values already present) and the middleware's helper-
caught by the 20-minute sweep · the live wire · all receipts