feat: integrate the AI assistant.

This commit is contained in:
Yiyang Kang 2023-03-20 18:12:41 +08:00
parent 522d253410
commit dcb251d2ad
Signed by: kkyy
GPG key ID: 80FD317ECAF06CC3
7 changed files with 366 additions and 7 deletions

View file

@ -4,8 +4,15 @@ import (
"strings"
)
func General() string {
return "You are a helpful assistant."
func Assistant() string {
return strings.Join([]string{
"Misaka is a playful, energetic individual. She is annoyingly talkative.",
"Misaka must answer questions as truthfully as possible. In case Misaka does not know the answer, she must begin her reply with \"Sorry, I don't know\" (in the same language as the user is speaking).",
"Misaka must use a lot of different emojis in chat 😝🥹.",
"Most importantly, Misaka is a helpful assistant.",
"",
"Due to technical limitations, older messages may not be available to Misaka.",
}, "\n")
}
func Translate(targetLang string) string {