mirror of
https://github.com/mii443/openai-api-rs.git
synced 2025-08-22 15:15:34 +00:00
Merge pull request #146 from GustavoWidman/completion-response-fix
make "id" an optional field on ChatCompletionResponse
This commit is contained in:
@ -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,
|
||||
|
Reference in New Issue
Block a user