chat-bot-go

command module
v0.0.0-...-b336c4c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 5, 2023 License: MIT Imports: 8 Imported by: 0

README

chat-bot-go

A lightweight ChatGPT telegram bot that can run fully locally with no need for any additional operations. You can run it on your own computer without configuring servers or domains

Install

Download

download the latest release from here

Build
  1. install go
  2. go install github.com/TBXark/chat-bot-go@latest

Run

  1. add the config file config.json to the same directory as the executable file or set --config parameter to the config file path
  2. run the executable file

Configuration


{
  "database": {
    "type": "sqlite3",
    "path": "file:db_test.sqlite?cache=shared&_fk=1"
  },
  "openai": {
    "key": "sk-",
    "model": "gpt-3.5-turbo"
  },
  "telegram": {
    "token": "123456:abc",
    "admin":[],
    "available_chat": [
      {
        "chat_id": [123, -123],
        "params":{
          "init_message": "You are a chat bot",
          "extra_params": {
            "temperature": 0.9
          }
        }
      }
    ]
  }
}

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL