Add experimental mercury edit prediction provider (#44256)

Release Notes:

- N/A

---------

Co-authored-by: Ben Kunkle <ben@zed.dev>
Co-authored-by: Max Brunsfeld <maxbrunsfeld@gmail.com>
This commit is contained in:
Agus Zubiaga
2025-12-06 10:08:44 +00:00
committed by GitHub
co-authored by Ben Kunkle Max Brunsfeld
parent 51b7d06a27
commit f08fd732a7
18 changed files with 808 additions and 322 deletions
+3 -2
View File
@@ -198,8 +198,9 @@ pub async fn perform_predict(
let response =
request.response_rx.await?.0.map_err(|err| anyhow!(err))?;
let response = edit_prediction::zeta2::text_from_response(response)
.unwrap_or_default();
let response =
edit_prediction::open_ai_response::text_from_response(response)
.unwrap_or_default();
let prediction_finished_at = Instant::now();
fs::write(example_run_dir.join("prediction_response.md"), &response)?;