Surface error on WS close, only retry retryable errors

This commit is contained in:
Rasmus Rygaard
2026-02-27 20:07:19 -08:00
parent c1851be1ed
commit 74d0570cd7
8 changed files with 201 additions and 5 deletions

View File

@@ -12,6 +12,8 @@ pub enum ApiError {
Api { status: StatusCode, message: String },
#[error("stream error: {0}")]
Stream(String),
#[error("stream error: {0}")]
NonRetryableStream(String),
#[error("context window exceeded")]
ContextWindowExceeded,
#[error("quota exceeded")]