Class PromptlessImagesRuntimeSelectionStage<R extends bg.codexio.ai.openai.api.payload.images.request.ImageRequest>
- java.lang.Object
-
- bg.codexio.ai.openai.api.sdk.images.ImageConfigurationStage<R>
-
- bg.codexio.ai.openai.api.sdk.images.PromptlessImagesRuntimeSelectionStage<R>
-
- All Implemented Interfaces:
RuntimeSelectionStage
public class PromptlessImagesRuntimeSelectionStage<R extends bg.codexio.ai.openai.api.payload.images.request.ImageRequest> extends ImageConfigurationStage<R> 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.
This class auto-inputs empty prompt and effectively skips the prompt stage.
-
-
Field Summary
-
Fields inherited from class bg.codexio.ai.openai.api.sdk.images.ImageConfigurationStage
builder, executor
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AsyncExecutor<R>async()Requests will be asynchronous with promises.SynchronousExecutor<R>immediate()Requests will be synchronously blocking without streaming enabled.ReactiveExecutor<R>reactive()Requests will be asynchronous under reactive API.
-
-
-
Method Detail
-
immediate
public SynchronousExecutor<R> immediate()
Requests will be synchronously blocking without streaming enabled.- Specified by:
immediatein interfaceRuntimeSelectionStage- Returns:
SynchronousApito specify the prompts
-
async
public AsyncExecutor<R> async()
Requests will be asynchronous with promises. No real-time streaming will be enabled.- Specified by:
asyncin interfaceRuntimeSelectionStage- Returns:
AsyncApito specify the prompts
-
reactive
public ReactiveExecutor<R> reactive()
Requests will be asynchronous under reactive API. Encouraged to be used only if a truly reactive environment is present, such as Reactor Netty. No real-time streaming will be enabled.- Specified by:
reactivein interfaceRuntimeSelectionStage- Returns:
ReactiveApito specify the prompts
-
-