Class AzureOpenAiImageModel
java.lang.Object
org.springframework.ai.azure.openai.AzureOpenAiImageModel
- All Implemented Interfaces:
ImageModel
,Model<ImagePrompt,
ImageResponse>
ImageModel
implementation for Microsoft Azure AI backed by
OpenAIClient
.- Since:
- 1.0.0
- Author:
- Benoit Moussaud, Sebastien Deleuze
- See Also:
-
ImageModel
OpenAIClient
-
Constructor Summary
ConstructorDescriptionAzureOpenAiImageModel
(com.azure.ai.openai.OpenAIClient openAIClient) AzureOpenAiImageModel
(com.azure.ai.openai.OpenAIClient microsoftOpenAiClient, AzureOpenAiImageOptions options) -
Method Summary
Modifier and TypeMethodDescriptioncall
(ImagePrompt imagePrompt) Executes a method call to the AI model.
-
Constructor Details
-
AzureOpenAiImageModel
public AzureOpenAiImageModel(com.azure.ai.openai.OpenAIClient openAIClient) -
AzureOpenAiImageModel
public AzureOpenAiImageModel(com.azure.ai.openai.OpenAIClient microsoftOpenAiClient, AzureOpenAiImageOptions options)
-
-
Method Details
-
getDefaultOptions
-
call
Description copied from interface:Model
Executes a method call to the AI model.- Specified by:
call
in interfaceImageModel
- Specified by:
call
in interfaceModel<ImagePrompt,
ImageResponse> - Parameters:
imagePrompt
- the request object to be sent to the AI model- Returns:
- the response from the AI model
-