Class AsyncContextStage
java.lang.Object
bg.codexio.ai.openai.api.sdk.chat.ChatConfigurationStage
bg.codexio.ai.openai.api.sdk.chat.AsyncContextStage
- All Implemented Interfaces:
RuntimeExecutor
Async context to choose between raw response or just
a simple string answer.
-
Field Summary
Fields inherited from class bg.codexio.ai.openai.api.sdk.chat.ChatConfigurationStage
executor, requestBuilder -
Method Summary
Modifier and TypeMethodDescriptionSends async request to OpenAI API.Sends async request to OpenAI API.
-
Method Details
-
askRaw
Sends async request to OpenAI API.- Parameters:
questions- user supplied prompt- Returns:
AsyncRawPromiseproviding a way to subscribe to the raw response
-
ask
Sends async request to OpenAI API.- Parameters:
questions- user supplied prompt- Returns:
AsyncPromiseproviding a way to subscribe to the string answer promise
-