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

Agus Zubiaga created

We were running the LLM-based context gathering for zeta1 and sweep
which don't use it.

Release Notes:

- N/A

Change summary

crates/zeta/src/zeta.rs | 4 ++++
1 file changed, 4 insertions(+)

Detailed changes

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;
         }