edit prediction: Request trigger (#43588)

Adds a `trigger` field to the zeta1/zeta2 prediction requests so that we
can distinguish between editor, diagnostic, and zeta-cli requests.

Release Notes:

- N/A
This commit is contained in:
Agus Zubiaga
2025-11-26 20:34:29 +00:00
committed by GitHub
parent f89e5308e3
commit 36a3b41f53
7 changed files with 59 additions and 9 deletions
+1
View File
@@ -454,6 +454,7 @@ async fn zeta1_context(
&snapshot,
clipped_cursor,
prompt_for_events,
cloud_llm_client::PredictEditsRequestTrigger::Cli,
cx,
)
})?
+7 -1
View File
@@ -226,7 +226,13 @@ pub async fn perform_predict(
let prediction = zeta
.update(cx, |zeta, cx| {
zeta.request_prediction(&project, &cursor_buffer, cursor_anchor, cx)
zeta.request_prediction(
&project,
&cursor_buffer,
cursor_anchor,
cloud_llm_client::PredictEditsRequestTrigger::Cli,
cx,
)
})?
.await?;