Skip to content

Commit 824cf0d

Browse files
authored
Merge pull request #190 from MoonKraken/pr
Make object field in openai-compatible response optional
2 parents 526f833 + 931f234 commit 824cf0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/v1/chat_completion/chat_completion.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ impl_builder_methods!(
101101
#[derive(Debug, Deserialize, Serialize)]
102102
pub struct ChatCompletionResponse {
103103
pub id: Option<String>,
104-
pub object: String,
104+
pub object: Option<String>,
105105
pub created: i64,
106106
pub model: String,
107107
pub choices: Vec<ChatCompletionChoice>,

0 commit comments

Comments
 (0)