Git Product home page Git Product logo

fastify-ollama's Introduction

OLLAMA API Wrapper

This is a simple fastify wrapper of the ollama API.

Table of Contents

About

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.

Usage

Steps to install ollama

  1. First download ollama from here
  2. once you have downloaded ollama, then proceed with downloading models and running them.
  3. 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.

Getting Started

Now you can start using this wrapper by installing it via npm/yarn:

  1. just clone the repo and install dependencies.
  2. you can also view swagger documentation at http://localhost:3000/docs

โš ๏ธ Rate limitting is implemented on this wrapper, so that you don't blow of your systems, you can increase or remove it from in app.ts file.

Prerequisites

What things you need to install the software and how to install them.

node >= 18 

Installing

yarn

And run it for local env

yarn dev

Contributing

Pull requests are welcome. This is small project we can make something good out of it.

fastify-ollama's People

Contributors

jhaji2911 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.