Class PromptfulImagesRuntimeSelectionStage<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.PromptfulImagesRuntimeSelectionStage<R>
-
- All Implemented Interfaces:
RuntimeSelectionStage
public class PromptfulImagesRuntimeSelectionStage<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 delegates directly to the next stage, where prompt is required.
-
-
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 AsyncApi<R>async()Requests will be asynchronous with promises.SynchronousApi<R>immediate()Requests will be synchronously blocking without streaming enabled.ReactiveApi<R>reactive()Requests will be asynchronous under reactive API.
-
-
-
Method Detail
-
immediate
public SynchronousApi<R> immediate()
Requests will be synchronously blocking without streaming enabled.- Specified by:
immediatein interfaceRuntimeSelectionStage- Returns:
SynchronousApito specify the prompts
-
async
public AsyncApi<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 ReactiveApi<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
-
-