From 3110879dd6435fd273a2778cfcb024fead3cbddb Mon Sep 17 00:00:00 2001 From: William Berglund Date: Sun, 17 Mar 2024 01:22:40 +0000 Subject: [PATCH 1/2] Re-add Send for GenerationResponseStream --- src/generation/completion/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/generation/completion/mod.rs b/src/generation/completion/mod.rs index ede8865..d023fb5 100644 --- a/src/generation/completion/mod.rs +++ b/src/generation/completion/mod.rs @@ -9,7 +9,7 @@ pub mod request; #[cfg(feature = "stream")] /// A stream of `GenerationResponse` objects pub type GenerationResponseStream = std::pin::Pin< - Box>>, + Box> + Send>, >; pub type GenerationResponseStreamChunk = Vec; From f1a895df7482b3db489b4f95f758c4e170906fbd Mon Sep 17 00:00:00 2001 From: William Berglund Date: Sun, 17 Mar 2024 01:26:55 +0000 Subject: [PATCH 2/2] Format --- src/generation/completion/mod.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/generation/completion/mod.rs b/src/generation/completion/mod.rs index d023fb5..91075b4 100644 --- a/src/generation/completion/mod.rs +++ b/src/generation/completion/mod.rs @@ -9,7 +9,9 @@ pub mod request; #[cfg(feature = "stream")] /// A stream of `GenerationResponse` objects pub type GenerationResponseStream = std::pin::Pin< - Box> + Send>, + Box< + dyn tokio_stream::Stream> + Send, + >, >; pub type GenerationResponseStreamChunk = Vec;