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

zed-zippy[bot] and Agus Zubiaga created

Cherry-pick of #43943 to preview

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

Release Notes:

- N/A

Co-authored-by: Agus Zubiaga <agus@zed.dev>

Change summary

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

Detailed changes

crates/zeta/src/zeta.rs 🔗

@@ -1966,6 +1966,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;
         }