mirror of
https://github.com/Piebald-AI/claude-code-system-prompts.git
synced 2026-11-20 08:01:53 +08:00
383 B
383 B
Streaming - Ruby
Streaming
stream = client.messages.stream(
model: :"{{OPUS_ID}}",
max_tokens: 64000,
messages: [{ role: "user", content: "Write a haiku" }]
)
stream.text.each { |text| print(text) }