jeremychone / rust-genai

Rust multiprovider generative AI client (Ollama, OpenAi, Anthropic, Groq, Gemini, Cohere, ...)
Apache License 2.0
164 stars 35 forks source link

chore: make stream is send #10

Closed giangndm closed 1 month ago

giangndm commented 1 month ago

This PR makes the stream with Send.

Why we need this: It allows us to use the stream inside a Tokio-spawned task without local_set.

jeremychone commented 1 month ago

@giangndm Thank you. Just merged it, will be in the next release.

Btw, next release will change the way AuthResolver work. I will update the example and changelog. Ping me if any issue.

jeremychone commented 1 month ago

@giangndm By the way, if you don't mind, could you update the README in your genai-custom to let developers know the official one is genai?

It's unfortunate that we can't delete crates, but perhaps you could yank your version as well to make it clearer.

giangndm commented 1 month ago

@jeremychone Sure, I will update README for custom version and make it yanked after update my dependency

jeremychone commented 1 month ago

@giangndm awesome, thanks!