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.

Avoid empty schema in copilot dummy tool (#30178)

Max Brunsfeld3c128ef83fe2
diff --git a/crates/language_models/src/provider/copilot_chat.rs b/crates/language_models/src/provider/copilot_chat.rs
index f1cf43c061e..94b45e45411 100644
--- a/crates/language_models/src/provider/copilot_chat.rs
+++ b/crates/language_models/src/provider/copilot_chat.rs
@@ -526,7 +526,9 @@ impl CopilotChatLanguageModel {
function: copilot::copilot_chat::Function {
name: "noop".to_string(),
description: "No operation".to_string(),
- parameters: serde_json::json!({}),
+ parameters: serde_json::json!({
+ "type": "object"
+ }),
},
});
}