Class AsyncApi<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.AsyncApi<R>
- All Implemented Interfaces:
ImagesPromptStage<AsyncExecutor<R>>,RuntimeExecutor
public class AsyncApi<R extends bg.codexio.ai.openai.api.payload.images.request.ImageRequest>
extends ImageConfigurationStage<R>
implements RuntimeExecutor, ImagesPromptStage<AsyncExecutor<R>>
Reactive API to add a final instruction and proceed with the HTTP call.
-
Field Summary
Fields inherited from class bg.codexio.ai.openai.api.sdk.images.ImageConfigurationStage
builder, executor -
Method Summary
-
Method Details
-
generate
- Specified by:
generatein interfaceImagesPromptStage<R extends bg.codexio.ai.openai.api.payload.images.request.ImageRequest>- Parameters:
prompt- the instruction for the model, most important and mandatory part of the configuration- Returns:
AsyncExecutorto handle the HTTP response
-