Skip to content

Function to load model on Spring Ollama #526

@Adrianogba

Description

@Adrianogba

I would like to request a function to load and check if a model is loaded. Write now, when I boot the project and request anything I just get an error:
[404] Not Found - {"error":"model 'mistral' not found, try pulling it first"}
It only starts working after I run the below:

curl http://localhost:11434/api/pull -d '{    
"name": "mistral"  
}'

Expected Behavior

Just a function to load models and check if they were loaded or exist.

Current Behavior

Doesn't exist a way to check inside the spring project if the model were loaded or not, or an option to load it.

Context

Now I still need to go to the terminal to load the model outside the project.
Here is the repository I'm playing with: https://github.com/Adrianogba/Spring-Ollama

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions