Class TranslationRuntimeSelectionStage
- java.lang.Object
-
- bg.codexio.ai.openai.api.sdk.voice.translation.TranslationConfigurationStage
-
- bg.codexio.ai.openai.api.sdk.voice.translation.TranslationRuntimeSelectionStage
-
- All Implemented Interfaces:
RuntimeSelectionStage
public class TranslationRuntimeSelectionStage extends TranslationConfigurationStage 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.translation.TranslationConfigurationStage
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:
AsyncPromptStageto prompt with promises
-
reactive
public ReactivePromptStage reactive()
Requests will be asynchronous reactive- Specified by:
reactivein interfaceRuntimeSelectionStage- Returns:
ReactivePromptStageto prompt in reactive fashion
-
-