Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CLI struct { Verbose bool `help:"Verbose mode."` Config string `help:"Config file." name:"config" type:"file" default:"config.json"` }
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
type Configuration struct {
// gpt apikey
ApiKey string `json:"api_key"`
// openai提供的接口 空字符串使用默认接口
ApiURL string `json:"api_url"`
// 服务端口
Port int `json:"port"`
// 监听接口
Listen string `json:"listen"`
// AI特征
BotDesc string `json:"bot_desc"`
// 代理
Proxy string `json:"proxy"`
// GPT请求最大字符数
MaxTokens int `json:"max_tokens"`
// GPT模型
Model string `json:"model"`
// 热度
Temperature float64 `json:"temperature"`
TopP float32 `json:"top_p"`
PresencePenalty float32 `json:"presence_penalty"`
FrequencyPenalty float32 `json:"frequency_penalty"`
AuthUser string `json:"auth_user"` // 账号,默认空不验证
AuthPassword string `json:"auth_password"` // 密码
}
Configuration 项目配置
Click to show internal directories.
Click to hide internal directories.