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"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.