cloud_llm_client: Delete unused variants of CompletionRequestStatus (#49516)
Small clean up commit. Co-authored-by: Marshall <marshall@zed.dev> Release Notes: - N/A
This commit is contained in:
1 parent
f57df3638f
commit
f4e7e613a9
2 files changed
-9
No files matched your search
@@ -222,11 +222,6 @@ pub enum CompletionRequestStatus {
|
||||
/// Retry duration in seconds.
|
||||
retry_after: Option<f64>,
|
||||
},
|
||||
UsageUpdated {
|
||||
amount: usize,
|
||||
limit: UsageLimit,
|
||||
},
|
||||
ToolUseLimitReached,
|
||||
/// The cloud sends a StreamEnded message when the stream from the LLM provider finishes.
|
||||
StreamEnded,
|
||||
#[serde(other)]
|
||||
|
||||
@@ -111,10 +111,6 @@ impl LanguageModelCompletionEvent {
|
||||
}
|
||||
CompletionRequestStatus::Started => Ok(Some(LanguageModelCompletionEvent::Started)),
|
||||
CompletionRequestStatus::Unknown | CompletionRequestStatus::StreamEnded => Ok(None),
|
||||
CompletionRequestStatus::UsageUpdated { .. }
|
||||
| CompletionRequestStatus::ToolUseLimitReached => Err(
|
||||
LanguageModelCompletionError::Other(anyhow!("Unexpected status: {status:?}")),
|
||||
),
|
||||
CompletionRequestStatus::Failed {
|
||||
code,
|
||||
message,
|
||||
|
||||
Reference in new issue
Block a user