Skip to content

[Ollama] Missing metadata for nested configuration properties #246

@ThomasVitale

Description

@ThomasVitale

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions