spring-projects / spring-projects/spring-ai
Add createModel support in OllamaApi
Nobody has claimed this yet.
- 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
Looking forward to seeing this feature added — it would make Spring AI’s Ollama integration much more flexible and complete.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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