From 03ff8341ac64b1a5dd168602767a2071937d33e5 Mon Sep 17 00:00:00 2001 From: "GustavoWidman (laptop-mac)" Date: Sun, 2 Feb 2025 04:28:27 -0300 Subject: [PATCH] make "id" an optional field on ChatCompletionResponse --- src/v1/chat_completion.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/v1/chat_completion.rs b/src/v1/chat_completion.rs index e20b827..82f693b 100644 --- a/src/v1/chat_completion.rs +++ b/src/v1/chat_completion.rs @@ -243,7 +243,7 @@ pub struct ChatCompletionChoice { #[derive(Debug, Deserialize, Serialize)] pub struct ChatCompletionResponse { - pub id: String, + pub id: Option, pub object: String, pub created: i64, pub model: String,