From ade011120ffdb07a8638e715092fc240d213a37b Mon Sep 17 00:00:00 2001 From: b1ek Date: Sun, 5 May 2024 16:50:50 +1000 Subject: [PATCH] fix GPT3 messages not loading --- src/main.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 5348e5a..10d0c74 100644 --- a/src/main.rs +++ b/src/main.rs @@ -31,10 +31,12 @@ struct ChatPayload { #[derive(Debug, Clone, Serialize, Deserialize)] struct ChatChunk { - pub role: String, + pub role: Option, pub message: String, pub created: u64, pub action: String, + pub id: Option, + pub model: Option } #[derive(Debug, Clone, Serialize, Deserialize)]