diff options
| author | sigoden <sigoden@gmail.com> | 2024-08-19 15:57:55 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-19 15:57:55 +0800 |
| commit | 7eefb96b0c78a8aa77b62d4b127343f6f38a7618 (patch) | |
| tree | 2142f37ab600ab6a9f8c3d5eca63c816e15ff2ec /src/client | |
| parent | 669f2c602c4631db1c91fd7a27098b7685027f9a (diff) | |
| download | aichat-7eefb96b0c78a8aa77b62d4b127343f6f38a7618.tar.gz | |
fix: incomplete stream response in proxy LLM api (#796)
Diffstat (limited to 'src/client')
| -rw-r--r-- | src/client/stream.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/stream.rs b/src/client/stream.rs index 7e2b5fa..9913f63 100644 --- a/src/client/stream.rs +++ b/src/client/stream.rs @@ -67,7 +67,7 @@ impl SseHandler { } fn safe_ret(&self, ret: Result<()>) -> Result<()> { - if ret.is_err() && self.abort.aborted() { + if self.abort.aborted() { return Ok(()); } ret |
