spring-projects / spring-projects/spring-ai

Add createModel support in OllamaApi

Open
#4,663 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

status: waiting-for-triage
Dominant language
Java
Stars
9.5k
Forks
2.9k
Avg merge
1d 7h
Merged PRs (30d)
6

Description

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating Spring AI's OllamaApi and comparing its existing operations with Ollama's POST /api/create documentation. Define the createModel() request and response surface, including template customization, then verify the behavior with API-level tests for the documented endpoint.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, ollama
Domain
ai, api
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.