Log errors when a prediction fails (#22961)

Release Notes:

- N/A

---------

Co-authored-by: Thorsten <thorsten@zed.dev>
This commit is contained in:
Antonio Scandurra
2025-01-10 14:07:17 +00:00
committed by GitHub
co-authored by Thorsten
parent 9e113bccd0
commit c3301077af
4 changed files with 18 additions and 12 deletions
+1 -1
View File
@@ -477,7 +477,7 @@ async fn predict_edits(
open_ai::CompletionRequest {
model: model.to_string(),
prompt: prompt.clone(),
max_tokens: 1024,
max_tokens: 2048,
temperature: 0.,
prediction: Some(open_ai::Prediction::Content {
content: params.input_excerpt,