64bit / async-openai

Rust library for OpenAI
https://docs.rs/async-openai
MIT License
1.11k stars 166 forks source link

add feature gate for tokio #120

Closed ifsheldon closed 11 months ago

ifsheldon commented 11 months ago

This adds a feature gate for all functionalities that requires tokio, and it should pave the way to close #102. Adding the feature gate enable_tokio should not be a breaking change.

Please note that since I don't have an API key from OpenAI but from Azure OpenAI, I couldn't test if these changes break OpenAI functionalities, so please help me test them. Thanks!

ifsheldon commented 11 months ago

closing this as it's merged into #122