From 254ca76ec54843c683a41de23913f451d1b0f0a2 Mon Sep 17 00:00:00 2001
From: Jackson Chen <jacksontw92@gmail.com>
Date: Thu, 24 Oct 2024 12:05:42 +0900
Subject: [PATCH] [fix-readme-example-for-structure-rename] fix readme example
 for structure rename

---
 README.md | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/README.md b/README.md
index 1a3df33..f5cec29 100644
--- a/README.md
+++ b/README.md
@@ -424,7 +424,7 @@ use clust::messages::Message;
 use clust::messages::MessagesRequestBody;
 use clust::messages::SystemPrompt;
 use clust::messages::StreamOption;
-use clust::messages::StreamChunk;
+use clust::messages::MessageChunk;
 use clust::Client;
 
 use tokio_stream::StreamExt;
@@ -464,7 +464,7 @@ async fn main() -> anyhow::Result<()> {
             | Ok(chunk) => {
                 println!("Chunk:\n{}", chunk);
                 match chunk {
-                    | StreamChunk::ContentBlockDelta(content_block_delta) => {
+                    | MessageChunk::ContentBlockDelta(content_block_delta) => {
                         // Buffer message delta.
                         buffer.push_str(&content_block_delta.delta.text);
                     }