mirror of
https://github.com/mii443/openai-api-rs.git
synced 2025-08-23 07:35:37 +00:00
make "id" an optional field on ChatCompletionResponse
This commit is contained in:
@ -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,
|
||||||
|
Reference in New Issue
Block a user