Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Stop silently appending a system prompt for edit formatting (#12407)
Nathan Soboc03600c55ecd
diff --git a/crates/assistant/src/assistant_panel.rs b/crates/assistant/src/assistant_panel.rsindex c12986787cb..a6db195c8a0 100644--- a/crates/assistant/src/assistant_panel.rs+++ b/crates/assistant/src/assistant_panel.rs@@ -2103,16 +2103,10 @@ impl Conversation {}fn to_completion_request(&self, cx: &mut ModelContext<Conversation>) -> LanguageModelRequest {- let edits_system_prompt = LanguageModelRequestMessage {- role: Role::System,- content: include_str!("./system_prompts/edits.md").to_string(),- };-- let messages = Some(edits_system_prompt).into_iter().chain(- self.messages(cx)- .filter(|message| matches!(message.status, MessageStatus::Done))- .map(|message| message.to_request_message(self.buffer.read(cx))),- );+ let messages = self+ .messages(cx)+ .filter(|message| matches!(message.status, MessageStatus::Done))+ .map(|message| message.to_request_message(self.buffer.read(cx)));LanguageModelRequest {model: self.model.clone(),