Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
assistant: Fix Gemini 1.5 Pro throwing "missing field 'index' at line N column M" (#20200)
Patrick Sy966b18e142f1
diff --git a/crates/google_ai/src/google_ai.rs b/crates/google_ai/src/google_ai.rsindex 7991c67956b..1830045f33c 100644--- a/crates/google_ai/src/google_ai.rs+++ b/crates/google_ai/src/google_ai.rs@@ -136,7 +136,7 @@ pub struct GenerateContentResponse {#[derive(Debug, Serialize, Deserialize)]#[serde(rename_all = "camelCase")]pub struct GenerateContentCandidate {- pub index: usize,+ pub index: Option<usize>,pub content: Content,pub finish_reason: Option<String>,pub finish_message: Option<String>,