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.

edit prediction: Do not attempt to gather context for non-zeta2 models (#43943)

Agus Zubiaga26f77032a2f7
diff --git a/crates/zeta/src/zeta.rs b/crates/zeta/src/zeta.rs
index b54016eb835..909f21200cc 100644
--- a/crates/zeta/src/zeta.rs
+++ b/crates/zeta/src/zeta.rs
@@ -2063,6 +2063,10 @@ impl Zeta {
cursor_position: language::Anchor,
cx: &mut Context<Self>,
) {
+ if !matches!(self.edit_prediction_model, ZetaEditPredictionModel::Zeta2) {
+ return;
+ }
+
if !matches!(&self.options().context, ContextMode::Agentic { .. }) {
return;
}