Skip to content

Ollama: Support custom Ollama API paths #3471

Open
@lambochen

Description

@lambochen

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions