zed/crates/cloud_llm_client
Tom Houlé 93ead966c2
cloud_llm_client: Add StreamEnded and Unknown variants to CompletionRequestStatus (#49121)
Add StreamEnded variant so the client can distinguish between a stream
that the cloud ran to completion versus one that was interrupted (see
CLO-258). **That logic is to be added in a follow up PR**.

Add an Unknown fallback with #[serde(other)] for forward-compatible
deserialization of future variants.

The client advertises support via a new
x-zed-client-supports-stream-ended-request-completion-status header. The
server will only send the new variant if that header is passed. Both
StreamEnded and Unknown are silently ignored at the event mapping layer
(from_completion_request_status returns Ok(None)).

Part of CLO-264 and CLO-266; cloud-side changes to follow.

Release Notes:

- N/A

---------

Co-authored-by: Marshall Bowers <git@maxdeviant.com>
2026-02-16 15:39:47 +01:00
..
src cloud_llm_client: Add StreamEnded and Unknown variants to CompletionRequestStatus (#49121) 2026-02-16 15:39:47 +01:00
Cargo.toml Introduce new predict_edits/v3 endpoint (#46960) 2026-01-16 02:16:34 +00:00
LICENSE-APACHE Add cloud_llm_client crate (#35307) 2025-07-29 23:30:45 +00:00