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:
-
ImageModelOpenAIClient
-
Constructor Summary
ConstructorsConstructorDescriptionAzureOpenAiImageModel(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:ModelExecutes a method call to the AI model.- Specified by:
callin interfaceImageModel- Specified by:
callin interfaceModel<ImagePrompt,ImageResponse> - Parameters:
imagePrompt- the request object to be sent to the AI model- Returns:
- the response from the AI model
-