From bc79dbde8484f7105b82571c0f2751f45c3e5307 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=B8=E5=8D=8E=E6=98=A5?= Date: Tue, 6 May 2025 15:05:37 +0800 Subject: [PATCH] add reasoning_content field for compatibility with reasoning model --- src/chat.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/chat.rs b/src/chat.rs index 5d423d2..adec804 100644 --- a/src/chat.rs +++ b/src/chat.rs @@ -83,6 +83,8 @@ pub struct ChatCompletionMessageDelta { pub role: Option, /// The contents of the message pub content: Option, + /// The reasoning contents of the message + pub reasoning_content: Option, /// The name of the user in a multi-user chat #[serde(skip_serializing_if = "Option::is_none")] pub name: Option,