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 15:07:17 +01:00 committed by GitHub
parent 9e113bccd0
commit c3301077af
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 18 additions and 12 deletions

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,