Skip to content

Add createModel support in OllamaApi #4663

@sharan245

Description

@sharan245

There’s an existing API in the Ollama application to create models dynamically via the endpoint:

POST /api/create

Currently, the Spring AI OllamaApi does not expose this operation.
Adding a createModel() method would be very useful, especially for initializing or customizing models and "template" at application startup.

Right now, there’s no way to change a model’s template through Java — this feature would make it possible to.

Here are a couple of reference screenshots from the Ollama Doc:
Create Model Doc

Image Image

Looking forward to seeing this feature added — it would make Spring AI’s Ollama integration much more flexible and complete.

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