mirror of
https://github.com/mii443/openai-api-rs.git
synced 2025-12-03 02:58:20 +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)]
|
#[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