make "id" an optional field on ChatCompletionResponse

This commit is contained in:
GustavoWidman (laptop-mac)
2025-02-02 04:28:27 -03:00
parent edc6fe6526
commit 03ff8341ac

View File

@ -243,7 +243,7 @@ pub struct ChatCompletionChoice {
#[derive(Debug, Deserialize, Serialize)] #[derive(Debug, Deserialize, Serialize)]
pub struct ChatCompletionResponse { pub struct ChatCompletionResponse {
pub id: String, pub id: Option<String>,
pub object: String, pub object: String,
pub created: i64, pub created: i64,
pub model: String, pub model: String,