Open
Description
Please do a quick search on GitHub issues first, the feature you are about to request might have already been requested.
Expected Behavior
Ollama: Support custom Ollama API paths
Current Behavior
The Ollama API path is fixed in the hard-coded code, for example:
public ListModelResponse listModels() {
return this.restClient.get()
.uri("/api/tags")
.retrieve()
.body(ListModelResponse.class);
}
Context
When implementing Spring AI in my project, I made some adjustments to the Ollama API, and the API provided externally is a custom path. Therefore, I expect the Spring AI Ollama Model to support custom paths.