Git Product home page Git Product logo

ollama-bot's Introduction

Ollama telegram bot

This bot helps you to interact with ollama models

out.mp4

Commands

If you want to generate a completion just send a private message to the bot or if you want to use in a public group use the command /chat followed by the text of your choice. Other commands:

  • /setmodel Change your current model
  • /start

Installation

Requirements:

  • >= PHP 8.2
  • Mysql
  • Access to ollama api

Steps

  1. Clone this repository
git clone https://github.com/Mateodioev/ollama-bot.git
cd ollama-bot
  1. Install dependencies
composer install --optimize-autoloader --no-interaction --no-dev
  1. Setup your database mysql with file db/main.sql

  2. Create an edit .env file

cp .env.example .env
vim .env # Or use your favorite editor
  1. Run the bot
php index.php

Note

If your default model is diferent to codellama for example llama2, edit the file src/Events/Middlewares.php line 13

See ollama docs in https://github.com/jmorganca/ollama

ollama-bot's People

Contributors

mateodioev avatar

Stargazers

 avatar Michael avatar ThevenRex avatar  avatar  avatar  avatar  avatar wds avatar Deepen Dhulla avatar Konstantin L. Golovko avatar  avatar Eduardo Suzart avatar Chun-Sheng, Li avatar Sergio Casizzone avatar

Watchers

 avatar

ollama-bot's Issues

does it support files?

Does it support (or planning to) support files? As PrivateGPT for instance. Thank you.

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.