Skip to content

Conversation

nicolaskrier
Copy link
Contributor

Description

After migrating an application from Spring AI 1.1.0-M2 to 1.1.0-M3, I encountered the following issue:

***************************
APPLICATION FAILED TO START
***************************

Description:

Parameter 0 of method ollamaChatModel in org.springframework.ai.model.ollama.autoconfigure.OllamaChatAutoConfiguration required a bean of type 'org.springframework.ai.ollama.api.OllamaApi' that could not be found.


Action:

Consider defining a bean of type 'org.springframework.ai.ollama.api.OllamaApi' in your configuration.

Key Changes

Add OllamaApiAutoConfiguration in AutoConfiguration.imports file from spring-ai-autoconfigure-model-ollama.

Testing

I built Spring AI locally with this fix and verified it with the aforementioned application. Tests include:

  • Verifying that the application starts correctly after the modification.
  • Testing the behavior of this application using Ollama.

Signed-off-by: Nicolas Krier <7557886+nicolaskrier@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant