Merge pull request #146 from GustavoWidman/completion-response-fix

make "id" an optional field on ChatCompletionResponse
This commit is contained in:
Dongri Jin
2025-02-02 17:32:41 +09:00
committed by GitHub

View File

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