Streaming Messages Support
wind2sing opened this issue · 2 comments
wind2sing commented
Does this package support streaming messages like the official package?
import anthropic
client = anthropic.Anthropic()
with client.messages.stream(
max_tokens=1024,
messages=[{"role": "user", "content": "Hello"}],
model="claude-3-opus-20240229",
) as stream:
for text in stream.text_stream:
print(text, end="", flush=True)
st1vms commented
Not yet...no
st1vms commented
Closing this as not planned.