This is a simple fastify wrapper of the ollama API.
This project is just wrapper, which calls the underlying ollama api
for getting data from existing models running in your local or hosted machines.
You need to install and run ollama api before using this wrapper.
Steps to install ollama
- First download ollama from here
- once you have downloaded ollama, then proceed with downloading models and running them.
- In our case we have two models running :
a.
ollama run mistral:7b-instruct
b.ollama run deepseek-coder:6.7b
Well, this is it for the ollama part.
Now you can start using this wrapper by installing it via npm/yarn:
- just clone the repo and install dependencies.
- you can also view swagger documentation at
http://localhost:3000/docs
app.ts
file.
What things you need to install the software and how to install them.
node >= 18
yarn
And run it for local env
yarn dev
Pull requests are welcome. This is small project we can make something good out of it.