modelProvider

fun modelProvider(applicationContext: <Error class: unknown class>, properties: <Error class: unknown class>, anthropicModelsConfig: Any?, dockerLocalModelsConfig: Any?, ollamaModelsConfig: Any?): <Error class: unknown class>

Create a ModelProvider bean named "modelProvider".

Collects all available Llm and EmbeddingService beans from the provided ApplicationContext and constructs a ConfigurableModelProvider configured with the supplied ConfigurableModelProviderProperties.

The parameters dockerLocalModelsConfig and ollamaModelsConfig are optional markers used to trigger related auto-configuration when present; they are not accessed directly by this method.

Return

a configured ModelProvider instance that exposes discovered LLMs and embedding services

Parameters

applicationContext

the Spring application context used to discover model beans

properties

configuration properties for the model provider

dockerLocalModelsConfig

optional marker bean for docker-local models auto-configuration

ollamaModelsConfig

optional marker bean for Ollama models auto-configuration