Open
Description
On https://docs.spring.io/spring-ai/reference/api/chat/ollama-chat.html#_function_calling the constructor call is not valid anymore:
var chatModel = new OllamaChatModel(this.ollamaApi, OllamaOptions.create() .withModel(OllamaOptions.DEFAULT_MODEL) .withTemperature(0.9));
Should be something along the lines:
var chatModel = OllamaChatModel.builder()
.withOllamaApi( this.ollamaApi )
.withXXX(...) )
.build();