Class StabilityAiImageAutoConfiguration
java.lang.Object
org.springframework.ai.autoconfigure.stabilityai.StabilityAiImageAutoConfiguration
@AutoConfiguration(after=org.springframework.boot.autoconfigure.web.client.RestClientAutoConfiguration.class)
@ConditionalOnClass(StabilityAiApi.class)
@EnableConfigurationProperties({StabilityAiConnectionProperties.class,StabilityAiImageProperties.class})
public class StabilityAiImageAutoConfiguration
extends Object
Auto-configuration
for StabilityAI Image Model.- Since:
- 0.8.0
- Author:
- Mark Pollack, Christian Tzolov
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstabilityAiApi
(StabilityAiConnectionProperties commonProperties, StabilityAiImageProperties imageProperties, org.springframework.beans.factory.ObjectProvider<org.springframework.web.client.RestClient.Builder> restClientBuilderProvider) stabilityAiImageModel
(StabilityAiApi stabilityAiApi, StabilityAiImageProperties stabilityAiImageProperties)
-
Constructor Details
-
StabilityAiImageAutoConfiguration
public StabilityAiImageAutoConfiguration()
-
-
Method Details
-
stabilityAiApi
@Bean @ConditionalOnMissingBean public StabilityAiApi stabilityAiApi(StabilityAiConnectionProperties commonProperties, StabilityAiImageProperties imageProperties, org.springframework.beans.factory.ObjectProvider<org.springframework.web.client.RestClient.Builder> restClientBuilderProvider) -
stabilityAiImageModel
@Bean @ConditionalOnMissingBean @ConditionalOnProperty(prefix="spring.ai.stabilityai.image", name="enabled", havingValue="true", matchIfMissing=true) public StabilityAiImageModel stabilityAiImageModel(StabilityAiApi stabilityAiApi, StabilityAiImageProperties stabilityAiImageProperties)
-