Class SpeechRuntimeSelectionStage
- java.lang.Object
-
- bg.codexio.ai.openai.api.sdk.voice.speech.SpeechConfigurationStage
-
- bg.codexio.ai.openai.api.sdk.voice.speech.SpeechRuntimeSelectionStage
-
- All Implemented Interfaces:
RuntimeSelectionStage
public class SpeechRuntimeSelectionStage extends SpeechConfigurationStage implements RuntimeSelectionStage
Configures how the HTTP client to act. Whether the requests will be sent in an immediate blocking manner (synchronous) or they will be sent asynchronously via promises or reactive API.
-
-
Field Summary
-
Fields inherited from class bg.codexio.ai.openai.api.sdk.voice.speech.SpeechConfigurationStage
executor, requestBuilder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AsyncPromptStageasync()Requests will be asynchronous with promisesSynchronousPromptStageimmediate()Requests will be synchronously blockingReactivePromptStagereactive()Requests will be asynchronous reactive
-
-
-
Method Detail
-
immediate
public SynchronousPromptStage immediate()
Requests will be synchronously blocking- Specified by:
immediatein interfaceRuntimeSelectionStage- Returns:
SynchronousPromptStageto prompt in blocking fashion
-
async
public AsyncPromptStage async()
Requests will be asynchronous with promises- Specified by:
asyncin interfaceRuntimeSelectionStage- Returns:
SynchronousPromptStageto prompt with promises
-
reactive
public ReactivePromptStage reactive()
Requests will be asynchronous reactive- Specified by:
reactivein interfaceRuntimeSelectionStage- Returns:
SynchronousPromptStageto prompt in reactive fashion
-
-