model Provider
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
application Context
the Spring application context used to discover model beans
properties
configuration properties for the model provider
docker Local Models Config
optional marker bean for docker-local models auto-configuration
ollama Models Config
optional marker bean for Ollama models auto-configuration