st1vms/unofficial-claude-api

Streaming Messages Support

wind2sing opened this issue · 2 comments

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)

Not yet...no

Closing this as not planned.