Documentation
¶
Index ¶
- func ApplyReplaceTextOutToKeyboardPrompts(keyboardPrompts []string, promptstr string) []string
- func GetPromptKeyboardAI(msg string, promptstr string) []string
- func ReplaceTextIn(text string, promptstr string) string
- func ReplaceTextOut(text string, promptstr string) string
- type ResponseDataPromptKeyboard
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPromptKeyboardAI ¶
你要扮演一个json生成器,根据我下一句提交的QA内容,推断我可能会继续问的问题,生成json数组格式的结果,如:输入Q我好累啊A要休息一下吗,返回["嗯,我想要休息","我想喝杯咖啡","你平时怎么休息呢"],返回需要是["","",""]需要2-3个结果
func ReplaceTextIn ¶
ReplaceTextIn 使用给定的替换对列表对文本进行替换
func ReplaceTextOut ¶
ReplaceTextOut 使用给定的替换对列表对文本进行替换
Types ¶
type ResponseDataPromptKeyboard ¶
type ResponseDataPromptKeyboard struct { ConversationID string `json:"conversationId"` MessageID string `json:"messageId"` Response string `json:"response"` // 这里是嵌套的JSON字符串 }
ResponseDataPromptKeyboard 用于解析外层响应
Click to show internal directories.
Click to hide internal directories.