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
@@ -438,7 +438,7 @@ pub fn into_open_ai(
messages,
stream,
stop: request.stop,
temperature: request.temperature.unwrap_or(1.0),
temperature: request.temperature.or(Some(1.0)),
max_completion_tokens: max_output_tokens,
parallel_tool_calls: if supports_parallel_tool_calls && !request.tools.is_empty() {
// Disable parallel tool calls, as the Agent currently expects a maximum of one per turn.