spring-petclinic/spring-petclinic-microservices

Genai Chatbot startup failure

colljos opened this issue · 1 comments

Followed instructions as per Integrating the Spring AI Chatbot but application fails to start-up with following error:

***************************
APPLICATION FAILED TO START
***************************
Description:
Parameter 2 of method openAiEmbeddingModel in org.springframework.ai.autoconfigure.openai.OpenAiAutoConfiguration required a bean of type 'org.springframework.web.client.RestClient$Builder' that could not be found.
Action:
Consider defining a bean of type 'org.springframework.web.client.RestClient$Builder' in your configuration.

I have attempted to follow the advice in spring-projects/spring-ai#563 and associated spring-projects/spring-ai#524 but issue continues.

Just realised this codebase is not yet merged into the main branch:
#281

@odedia can you comment on the error I am seeing?
NB: I am using the Open AI starter: spring-ai-openai-spring-boot-starter (not the Azure default).