Code Monkey home page Code Monkey logo

analogllp / openaibot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from llmkira/openaibot

1.0 0.0 0.0 9.66 MB

🤖Chatbot/Voice Assistant | 📱Cross-Platform | 🦾 Async | 🗣 Good Contextual Support | 🌻 sh & docker Deployment| 🔌API Server Provided| 🎤 Azure/Vits for Voice Chatting |🌎 Real-time Information Searching| 📷Multi-modal/Image Understanding | 💐Self-maintained LLM Framework

Home Page: https://t.me/s/Openaibot_channel

License: GNU Affero General Public License v3.0

Shell 2.80% Python 97.09% Dockerfile 0.11%

openaibot's Introduction

cover

License Python SPONSOR

OpenaiBot

全平台,多模态(语音/图片)理解,自维护套件,实时信息支持

If you don't have the instant messaging platform you need or you want to develop a new application, you are welcome to contribute to this repository. You can develop a new Controller by using Event.py.

We use the self-maintained llm framework llm-kira to implement the conversation client.

🥽 Feature

  • Async
  • Support for rate limiting
  • Support for private chats, group chats
  • Support for black and white list system
  • Support for usage management, persona, custom words style 🤖
  • Memory pool guarantees 1000 rounds of contextual memory 💾
  • Multi-platform, universal use, also supports local voice assistant 🗣️
  • Multiple Api key polling pools for easy management and overflow pop-ups 📊
  • Active search for content to reply to and support for Sticker replies 😊
  • Universal interface for multi-platform support, theoretically allows access to any chat platform 🌐
  • Content security removable components, also supports official Api content filtering 🔒
  • Real-time web indexing support, universal crawler (supports UrlQueryHtml url?q={}) 🕸️
  • Multimodal interaction support, image Blip comprehension support, voice recognition 👂 , sticker support 😎

🪜 Deploy It

🔨 Check

Make sure your server has 1GB of RAM and 10GB of free storage.

For Arm architecture servers: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

📦 Deploy/Renew

curl -LO https://raw.githubusercontent.com/LLMKira/Openaibot/main/setup.sh && sh setup.sh

🍽 Configure

  • init
cp Config/app_exp.toml Config/app.toml

nano Config/app.toml
  • Data
apt-get install redis
systemctl start redis.service
  • Config/app.toml
# Comment out which part you don't want to start

# QQ Bot
[Controller.QQ]
master = [114, 514] # master user id
account = 0
http_host = 'http://localhost:8080'   # Mirai http Server
ws_host = 'http://localhost:8080'   # Mirai Websocket Server
verify_key = ""
trigger = false # Proactive response when appropriate
INTRO = "POWER BY OPENAI"  # Suffixes for replies
ABOUT = "Created by github.com/LLMKira/Openaibot" # /about
WHITE = "Group NOT in WHITE list" # Whitelist/Blacklist tips

# Proxy set, but does not proxy openai api, only bot
proxy = { status = false, url = "http://127.0.0.1:7890" }

# Telegram Bot
[Controller.Telegram]
master = [114, 514] # master user id
botToken = '' # Bot Token @botfather
trigger = false
INTRO = "POWER BY OPENAI"
ABOUT = "Created by github.com/LLMKira/Openaibot"
WHITE = "Group NOT in WHITE list"

# 设置的代理,但是不代理 openai api, 只代理 bot
proxy = { status = false, url = "http://127.0.0.1:7890" }

# 基础对话事件服务器,Web支持或者音箱用
[Controller.BaseServer]
port = 9559

Run

apt install npm
npm install pm2@latest -g
# or
yarn global add pm2

pm2 start pm.json

🥕 Add Api Key

Use /add_api_key Command add OpenaiKey

🧀 More Docs

Details On Deploy Guide

详细接口/服务配置/自定义 请查看文档 Deploy Guide

🤗 Join Our Community

❤ Thanks

📃 License

This project open source and available under
the [AGPL License](https://github.com/LLMKira/Openaibot/blob/main/LICENSE).

CLAUSE 说明了如何授权,声明,附加条款等内容。

Fossa

FOSSA Status

openaibot's People

Contributors

sudoskys avatar frostleafchan avatar purofle avatar chitang233 avatar sider2vf avatar lianzizhou avatar chiyuki0325 avatar fossabot avatar sparanoid avatar

Stargazers

Hadj H. 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.