Skip to content

Commit 6b2a3fb

Browse files
authored
Merge pull request #146 from GustavoWidman/completion-response-fix
make "id" an optional field on ChatCompletionResponse
2 parents edc6fe6 + 03ff834 commit 6b2a3fb

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)