spring-ai icon indicating copy to clipboard operation
spring-ai copied to clipboard

[Ollama] Missing metadata for nested configuration properties

Open ThomasVitale opened this issue 1 year ago • 0 comments
trafficstars

Bug description When using the Ollama Spring Boot Starter dependency, the nested properties within OllamaChatProperties and OllamaEmbeddingProperties mapped to the OllamaOptions class are missing the necessary metadata to be recognised by IDEs and the GraalVM compiler.

Environment Spring AI: 0.8.0-SNAPSHOT Java: 21 Dependency: org.springframework.ai:spring-ai-ollama-spring-boot-starter

Expected behavior Nested properties must be included when generating metadata for the custom configuration properties in the Ollama starter dependency.

The @NestedConfigurationProperty annotation can be used to solve both the problem with IDEs and with the GraalVM native compilation, as explained in the Spring Boot documentation here and here.

ThomasVitale avatar Jan 14 '24 15:01 ThomasVitale