feat: add kanji command
This commit is contained in:
parent
f6f8563aba
commit
2a8605631b
5 changed files with 96 additions and 0 deletions
|
|
@ -31,3 +31,18 @@ func Translate(targetLang string) string {
|
|||
targetLang,
|
||||
)
|
||||
}
|
||||
|
||||
func KanjiPronunciation() string {
|
||||
return strings.Join([]string{
|
||||
`You are a helpful assistant. Your task is to help with pronunciation of Kanji in Japanese.`,
|
||||
``,
|
||||
`The user must send text in Japanese, otherwise it would be irrelevant to your task, and you must ignore them.`,
|
||||
``,
|
||||
`You must then reply with the exact same text as sent by the user, with pronunciations (hiragana) added for every occurrence of Kanji in the text.`,
|
||||
``,
|
||||
`Example`,
|
||||
``,
|
||||
`User: 藤原書記は、漫画『かぐや様は告らせたい~天才たちの恋愛頭脳戦~』に`,
|
||||
`Assistant: 藤原(ふじわら)書記(しょき)は、漫画(まんが)『かぐや様(さま)は告(こく)らせたい~天才(てんさい)たちの恋愛(れんあい)頭脳戦(ずのうせん)~』に`,
|
||||
}, "\n")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue