Skip to content

Commit 03ff834

Browse files
committed
make "id" an optional field on ChatCompletionResponse
1 parent edc6fe6 commit 03ff834

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/v1/chat_completion.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ pub struct ChatCompletionChoice {
243243

244244
#[derive(Debug, Deserialize, Serialize)]
245245
pub struct ChatCompletionResponse {
246-
pub id: String,
246+
pub id: Option<String>,
247247
pub object: String,
248248
pub created: i64,
249249
pub model: String,

0 commit comments

Comments
 (0)