Documentation ¶
Index ¶
- func CheckRequestTimes(rmsg *dingbot.ReceiveMsg) bool
- func Do(mode string, rmsg *dingbot.ReceiveMsg) error
- func DomainCertMsg(rmsg *dingbot.ReceiveMsg) error
- func DomainMsg(rmsg *dingbot.ReceiveMsg) error
- func FormatMarkdown(md string) string
- func FormatTimeDuation(duration time.Duration) string
- func GeneratePrompt(msg string) (rst string, err error)
- func ImageGenerate(rmsg *dingbot.ReceiveMsg) error
- func ProcessRequest(rmsg *dingbot.ReceiveMsg) error
- func SelectHistory(rmsg *dingbot.ReceiveMsg) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckRequestTimes ¶ added in v1.0.10
func CheckRequestTimes(rmsg *dingbot.ReceiveMsg) bool
CheckRequestTimes 分析处理请求逻辑 主要提供单日请求限额的功能
func FormatMarkdown ¶ added in v1.0.18
FormatMarkdown 格式化Markdown 主要修复ChatGPT返回多行代码块,钉钉会将代码块中的#当作Markdown语法里的标题来处理,这里进行下转义
func FormatTimeDuation ¶ added in v1.0.18
FormatTimeDuation 格式化时间 主要提示单聊/群聊切换时多久后恢复默认聊天模式
func GeneratePrompt ¶ added in v0.1.11
GeneratePrompt 生成当次请求的 Prompt
func ImageGenerate ¶ added in v1.0.4
func ImageGenerate(rmsg *dingbot.ReceiveMsg) error
ImageGenerate openai生成图片
func SelectHistory ¶ added in v1.0.7
func SelectHistory(rmsg *dingbot.ReceiveMsg) error
SelectHistory 查询会话历史
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.