Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

mistral: Fix default for `object` field in StreamResponse (#62517)

ummon-v38c5dd7c98b2
diff --git a/crates/mistral/src/mistral.rs b/crates/mistral/src/mistral.rs
index 0b76b1d665f..718207ebb2c 100644
--- a/crates/mistral/src/mistral.rs
+++ b/crates/mistral/src/mistral.rs
@@ -366,6 +366,7 @@ pub struct Usage {
#[derive(Serialize, Deserialize, Debug)]
pub struct StreamResponse {
pub id: String,
+ #[serde(default)]
pub object: String,
pub created: u64,
pub model: String,