Class AsyncPromise
java.lang.Object
bg.codexio.ai.openai.api.sdk.chat.ChatConfigurationStage
bg.codexio.ai.openai.api.sdk.chat.AsyncPromise
Promise abstraction.
Accepts a callback which will be called
when response is received.
-
Field Summary
Fields inherited from class bg.codexio.ai.openai.api.sdk.chat.ChatConfigurationStage
executor, requestBuilder -
Method Summary
-
Method Details
-
then
Subscribe to the answer- Parameters:
onResponse- a callback that receives the string answer
-