You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes, agreed we should have documentation on async in the README!
For now, you can construct the client the same way and then call async() to swap to async client. Then pretty much all the methods and parameters and response types are the same. The only difference is whether CompletableFuture is returned or AsyncStreamResponse (instead of just StreamResponse). Should be mostly self-explanatory for now, but let me know if you encounter any specific confusions and I can make sure those are included in the documentation when we tackle that
I am thinking about using this library in async. way.
I see
com.openai.client.okhttp.OpenAIOkHttpClientAsync
Would be great to have explanation and example of async calls.
First of all: async. calls to
/chat/completion
APIThe text was updated successfully, but these errors were encountered: