Mikayla Maki and Michael Benfield
898c133906
Simplify error management in stream_completion ( #43035 )
...
This PR simplifies error and event handling by removing the
`Ok(LanguageModelCompletionEvent::Status(CompletionRequestStatus::Failed)))`
state from the stream returned by `LanguageModel::stream_completion()`,
by changing it into an `Err(LanguageModelCompletionError)`. This was
done by collapsing the valid `CompletionRequestStatus` values into
`LanguageModelCompletionEvent`.
Release Notes:
- N/A
---------
Co-authored-by: Michael Benfield <mbenfield@zed.dev >
2025-11-20 22:16:07 +00:00
..
2025-11-20 22:16:07 +00:00
2025-11-20 17:12:00 +00:00
2025-11-20 21:57:43 +00:00
2025-11-20 15:16:09 -05:00
2025-11-19 09:26:49 +00:00
2025-11-20 22:16:07 +00:00
2025-11-18 14:31:39 +00:00
2025-11-20 12:18:50 +01:00
2025-11-12 20:27:04 +00:00
2025-11-17 23:44:59 +00:00
2025-11-17 20:36:05 +02:00
2025-11-18 23:46:29 +00:00
2025-11-19 22:00:58 +00:00
2025-11-20 18:57:22 -03:00
2025-11-18 16:39:08 +00:00
2025-11-19 22:00:58 +00:00
2025-11-18 23:49:22 +00:00
2025-11-19 12:34:41 +01:00
2025-11-17 11:01:34 -07:00
2025-11-20 19:47:39 +00:00
2025-11-20 12:18:50 +01:00
2025-11-12 16:41:04 -08:00
2025-11-19 15:40:06 -08:00
2025-11-20 19:47:39 +00:00
2025-11-20 22:16:07 +00:00
2025-11-17 10:48:14 -05:00
2025-11-19 16:41:39 +00:00
2025-11-20 18:28:11 -03:00
2025-11-19 03:56:45 +00:00
2025-11-18 11:00:02 +00:00
2025-11-19 03:56:45 +00:00
2025-11-20 11:30:34 +00:00
2025-11-19 22:00:58 +00:00
2025-11-19 05:41:24 +00:00
2025-11-20 20:34:17 +00:00
2025-11-17 12:31:00 +00:00
2025-11-17 15:28:22 +01:00
2025-11-18 01:00:26 +00:00
2025-11-19 22:00:58 +00:00
2025-11-18 19:20:34 +01:00
2025-11-20 19:47:39 +00:00
2025-11-20 22:16:07 +00:00
2025-11-20 22:16:07 +00:00
2025-11-20 12:18:50 +01:00
2025-11-20 19:47:39 +00:00
2025-11-19 12:19:58 +01:00
2025-11-19 23:40:54 +00:00
2025-11-19 22:00:58 +00:00
2025-11-20 17:12:00 +00:00
2025-11-20 19:47:39 +00:00
2025-11-12 22:03:59 -06:00
2025-11-18 23:25:12 +00:00
2025-11-13 14:15:46 +00:00
2025-11-19 22:00:58 +00:00
2025-11-20 18:57:22 -03:00
2025-11-18 21:57:30 -05:00
2025-11-20 19:47:39 +00:00
2025-11-13 14:56:40 +01:00
2025-11-19 22:00:58 +00:00
2025-11-19 03:56:45 +00:00
2025-11-18 15:14:52 +00:00
2025-11-20 19:47:39 +00:00
2025-11-19 22:00:58 +00:00
2025-11-18 01:00:26 +00:00
2025-11-19 22:00:58 +00:00
2025-11-20 19:47:39 +00:00
2025-11-20 19:47:39 +00:00
2025-11-20 19:47:39 +00:00
2025-11-20 01:52:13 -03:00
2025-11-20 12:18:50 +01:00
2025-11-20 10:12:59 -05:00
2025-11-19 22:00:58 +00:00
2025-11-17 23:44:59 +00:00
2025-11-18 13:37:48 +01:00
2025-11-20 19:54:47 +00:00
2025-11-14 22:46:35 +00:00
2025-11-20 18:18:08 -03:00
2025-11-17 19:13:15 -03:00
2025-11-19 14:50:32 -07:00
2025-11-20 11:12:57 -07:00
2025-11-20 12:18:50 +01:00
2025-11-18 10:23:16 -07:00
2025-11-20 12:45:26 -03:00
2025-11-18 19:20:34 +01:00
2025-11-17 21:48:09 +00:00
2025-11-19 15:40:06 -08:00
2025-11-20 12:18:50 +01:00
2025-11-19 15:40:06 -08:00