Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
zeta: Send staff edit predictions through `llm.zed.dev` again (#23996)
Marshall Bowers35fbe1ef3da7
diff --git a/crates/zeta/src/zeta.rs b/crates/zeta/src/zeta.rsindex ad53dcc7576..17bc519eabd 100644--- a/crates/zeta/src/zeta.rs+++ b/crates/zeta/src/zeta.rs@@ -602,7 +602,7 @@ and then anotherfn perform_predict_edits(client: Arc<Client>,llm_token: LlmApiToken,- is_staff: bool,+ _is_staff: bool,body: PredictEditsParams,) -> impl Future<Output = Result<PredictEditsResponse>> {async move {@@ -611,18 +611,11 @@ and then anotherlet mut did_retry = false;loop {- let request_builder = http_client::Request::builder().method(Method::POST);- let request_builder = if is_staff {- request_builder.uri(- "https://llm-worker-production.zed-industries.workers.dev/predict_edits",- )- } else {- request_builder.uri(- http_client- .build_zed_llm_url("/predict_edits", &[])?- .as_ref(),- )- };+ let request_builder = http_client::Request::builder().method(Method::POST).uri(+ http_client+ .build_zed_llm_url("/predict_edits", &[])?+ .as_ref(),+ );let request = request_builder.header("Content-Type", "application/json").header("Authorization", format!("Bearer {}", token))