deepbot

package module
v0.0.0-...-044944d Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2025 License: AGPL-3.0 Imports: 30 Imported by: 0

README

Deepbot

A simple chat bot that use OneBot + DeepSeek.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChatMessage

type ChatMessage = deepseek.ChatCompletionMessage

type ChatRequest

type ChatRequest = deepseek.ChatCompletionRequest

type ChatResponse

type ChatResponse = deepseek.ChatCompletionResponse

type Config

type Config struct {
	GroupID []int64 `toml:"group_id"`
	BlockID []int64 `toml:"block_id"`

	DeepSeek struct {
		APIKey  string `toml:"api_key"`
		BaseURL string `toml:"base_url"`
		Timeout int    `toml:"timeout"`
	} `toml:"deepseek"`

	OneBot struct {
		WSClient struct {
			Enabled bool   `toml:"enabled"`
			URL     string `toml:"url"`
			Token   string `toml:"token"`
		} `toml:"ws_client"`

		WSServer struct {
			Enabled bool   `toml:"enabled"`
			URL     string `toml:"url"`
			Token   string `toml:"token"`
		} `toml:"ws_server"`
	} `toml:"onebot"`

	Chromedp struct {
		ExecPath string `toml:"exec_path"`
		ProxyURL string `toml:"proxy_url"`
	} `toml:"chromedp"`

	Renderer struct {
		Enabled bool  `toml:"enabled"`
		Width   int64 `toml:"width"`
		Height  int64 `toml:"height"`
		Timeout int   `toml:"timeout"`
	} `toml:"renderer"`

	Emoticon struct {
		Enabled bool `toml:"enabled"`
		Rate    int  `toml:"rate"`
	} `toml:"emoticon"`

	SDWebUI struct {
		Enabled bool   `toml:"enabled"`
		URL     string `toml:"url"`
		Timeout int    `toml:"timeout"`
		Config  string `toml:"config"`
	} `toml:"sd_webui"`

	Memory struct {
		Enabled bool `toml:"enabled"`
	} `toml:"memory"`

	SearchAPI struct {
		Enabled  bool   `toml:"enabled"`
		EngineID string `toml:"engine_id"`
		APIKey   string `toml:"api_key"`
		ProxyURL string `toml:"proxy_url"`
		Timeout  int    `toml:"timeout"`
	} `toml:"search_api"`

	Browser struct {
		Enabled bool `toml:"enabled"`
		Timeout int  `toml:"timeout"`
	} `toml:"browser"`

	EvalGo struct {
		Enabled bool `toml:"enabled"`
		Timeout int  `toml:"timeout"`
	} `toml:"eval_go"`
}

type DeepBot

type DeepBot struct {
	// contains filtered or unexported fields
}

func NewDeepBot

func NewDeepBot(config *Config) *DeepBot

func (*DeepBot) Run

func (bot *DeepBot) Run()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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