Documentation ¶
Overview ¶
Package aireply 人工智能回复
Index ¶
Constants ¶
View Source
const ( // QYKURL api地址 QYKURL = "http://api.qingyunke.com/api.php?key=free&appid=0&msg=%v" // QYKBotName ... QYKBotName = "菲菲" )
View Source
const ( // XiaoAiURL api地址 XiaoAiURL = "http://81.70.100.130/api/xiaoai.php?n=text&msg=%v" // XiaoAiBotName ... XiaoAiBotName = "小爱" )
View Source
const (
// ChatGPTURL api地址
ChatGPTURL = "https://api.openai.com/v1/"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AIReply ¶
type AIReply interface { // Talk 取得带 CQ 码的回复消息 Talk(uid int64, msg, nickname string) string // Talk 取得文本回复消息 TalkPlain(uid int64, msg, nickname string) string // String 获得实际使用的回复服务名 fmt.Stringer }
AIReply 公用智能回复类
type ChatGPT ¶ added in v1.7.0
type ChatGPT struct {
// contains filtered or unexported fields
}
ChatGPT GPT回复类
func NewChatGPT ¶ added in v1.7.0
NewChatGPT ...
type QYK ¶ added in v1.7.0
type QYK struct {
// contains filtered or unexported fields
}
QYK 青云客回复类
Click to show internal directories.
Click to hide internal directories.