64bit / async-openai

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

Use actively maintained `backon` to replace `backoff` #264

Open Xuanwo opened 1 week ago

Xuanwo commented 1 week ago

Hi, thanks for building async-openai. I'm starting this issue to discuss whether it's a good idea to replace backoff with the actively maintained backon. I noticed that this crate exposes backoff at the public API level. Therefore, I want to discuss it first before beginning any work.


BackON has now reached version 1.0 and has only one dependency. It can be used in both WebAssembly and no_std environments.

I'm willing to help perform the migration if you think it's cool.

64bit commented 1 week ago

Hey, thank you for the offer to add support for backon, looks really nice project.

At the moment backoff gets the job done. However, it would be worth revisiting this in the future for WebAssembly and no_std environments. We can have this issue parked for now.