openai-java icon indicating copy to clipboard operation
openai-java copied to clipboard

Supporting async queries

Open tonyjayfunk opened this issue 2 years ago • 2 comments

I'm aware that you utilize OKhttp internally for making requests and that retryUtils handles multiple retry attempts. It would be beneficial to introduce a feature that allows control over this process, and potentially offer an asynchronous mode that returns completionStages when applicable.

tonyjayfunk avatar Aug 27 '23 09:08 tonyjayfunk

Hello @tonyjayfunk I use https://github.com/ai-for-java/openai4j#asynchronously-1 in Android. Working fine

LucBerge avatar Sep 03 '23 17:09 LucBerge

@tonyjayfunk you can also use - https://github.com/namankhurpia/Easy-open-ai these support asynchronous for android

namankhurpia avatar Dec 09 '23 10:12 namankhurpia