Closed varonroy closed 9 months ago
Thanks for your contribution!
This fix was undone in https://github.com/pepperoni21/ollama-rs/pull/13/files#diff-7cbb70dd16d7a45e6e2ff69fa40768ff25c2e6a55aa17810ac365c566dbbe645R11-R14
This would be closed again by https://github.com/pepperoni21/ollama-rs/pull/34
The goal of this PR is to allow streams to work from
tokio::spawn
.Consider the following example:
Since
spawn
requires its futures to beSend
, the above code will not compile and produce the following error message:The simplest solution is to add the
Send
trait bound to all stream types.