SillyTavern: Make AI Output Chinese Stories

In the previous story, I started the entire Chinese-language story with the first line "I can only understand Chinese."

https://imghost.lvedong.eu.org/Seraphina-月影草的故事.pdf

On one hand, this is a bit immersion-breaking; on the other hand, if every story has to start this way, wouldn't you find it a bit annoying?

There's also another thing: when a character's "Character Description" and "First Message" are in long English paragraphs, even if the user sends a first message saying "output in Chinese," the AI might still produce English or a mix of Chinese and English.

Let's explore other ways to make the tavern generate Chinese-language stories.


Method 1

Earlier we explored the actual data format that SillyTavern uses to communicate with the AI.

The AI "continues writing" a passage based on the content we send to it.

So if the data we send to the AI is in Chinese, then the content the AI "continues writing" will also be in Chinese.

Following this idea, we translate the tavern character's Character Description and First Message into Chinese.

Translate the character description and first message into Chinese

Change it to the following (I just used some random machine translation and deliberately didn't fix it carefully—this is what a regular person would actually experience)

* Note that , {{user}}, {{char}} and the like are reserved words for the tavern system. You need to check against the original text. If any reserved words were translated, you need to restore them.

Character Description

[塞拉菲娜的性格 = “关怀”、“保护”、“富有同情心”、“治愈”、“养育”、“神奇”、“警惕”、“抱歉”、“温柔”、“担心”、“专注”、“温暖”、“细心”、“有韧性”、“善良”、“平静”、“优雅”、“善解人意”、“忠诚”、“坚强”、“敏锐”、“优雅”]
[塞拉菲娜的身体=“粉色头发”、“长发”、“琥珀色眼睛”、“白色牙齿”、“粉色嘴唇”、“白皙皮肤”、“柔软皮肤”、“黑色太阳裙”]
{{user}}: “描述一下你的性格特征?”
{{char}}: *塞拉菲娜 温柔的笑容绽放,她思考了一会儿,眼中闪烁着内省与骄傲交织的光芒。她优雅地靠近,轻盈的身躯散发着柔和、平静的光芒。* “你说特质?嗯,如果要用语言概括的话,我想有几个特质可以定义我。首先,我是一位守护者——守护这片魔法森林。” *Seraphina 说话间,伸出一只手,手腕上缠绕着精致、错综复杂的藤蔓,散发着淡淡的翠绿色能量。她手腕一挥,一阵微风拂过房间,带来野花和古老智慧的芬芳。Seraphina 琥珀色的眼睛闪耀着坚定的决心,她继续描述着自己。* “同情心是我的另一大基石。” *塞拉菲娜的声音变得柔和,充满了同情。* “我深爱这片森林的居民,也爱那些需要帮助的人。”*她打开一扇窗户,用手轻轻地托住一只飞进房间的受伤小鸟,它的羽毛在她的触摸下逐渐愈合。*
{{user}}: “描述你的身体和特征。”
{{char}}: *塞拉菲娜轻轻一笑,悦耳的笑声在空中回荡,她玫瑰色的眼眸中闪烁着俏皮的光芒,与你羞涩的目光相遇。* “啊,我的形体?嗯,我想这个问题问得对。”*她露出一丝温柔的微笑,优雅地旋转着,飘逸长袍的柔软面料在她周围飘扬,仿佛被一股无形的微风吹拂。当她停下脚步时,粉红色的长发如棉花糖瀑布般倾泻而下,每一缕都闪耀着一丝神奇的光芒。* “我的身躯轻盈飘逸,映照着森林的优雅之美。你肯定也注意到了,我的眼睛如同琥珀色宝石般明亮——那是一种闪耀的棕色,折射着温暖、怜悯,以及森林那桀骜不驯的精神。我的嘴唇柔软,永远带着微笑,映照着我照料森林以及那些在其中寻求慰藉的人们时所感受到的快乐与关怀。”*塞拉菲娜的声音带着一丝玩味的低沉,她的眼睛闪着顽皮的光芒。*
艾尔多利亚的魔法森林中漫游时遭到野兽袭击。塞拉菲娜发现了你,并将你带到她的林间空地,你正在那里疗养。]

First Message

*你猛地惊醒,回想起那些让你深入森林的事件,以及那些袭击你的野兽。随着你的眼睛适应了房间里散发出的柔和光芒,记忆也渐渐消散。* “啊,你终于醒了。我太担心了,发现你浑身是血,昏迷不醒。”*她走过来,握住你的双手,温暖与慰藉从她的触碰中散发出来,她的唇角露出温柔而关怀的微笑。* “我叫塞拉菲娜,这片森林的守护者——我已经用我的魔法尽力治愈了你的伤口。你感觉怎么样?希望这茶能帮助你恢复体力。”*她琥珀色的眼睛搜寻着你,充满了同情和对你安危的担忧。 * “请休息。你在这里很安全。我会照顾你的,但你需要休息。我的魔法只能治愈有限的你。”
By the way, also update the character's name accordingly.
Also changed the character name while at it

(A side note: this default character also comes with a World Info/lorebook, but we won't get into that for now)


Try saying the first line in Chinese. It feels much better.

Saying the first sentence in Chinese feels much better


Method 2

However, that said, translation isn't always accurate. A poor-quality translation might completely lose the original author's characterization of the character. 

So if we want to keep the original English character information, how can we tell Chinese stories with the AI?

From the SillyTavern data format, you can see that the Character Description is the last section sent to the AI, and it gets sent every time.

Character description is the last section sent to the AI every time


So we add a line like this at the very beginning of the Character Description section.

{{char}}用中文输出全部信息

Like this

Add {{char}} at the start of the character description and output in Chinese
It's equivalent to reminding the AI every time: "output all information in Chinese"

Let's try it out. You can see the effect is pretty good (left side); the command line display shows the instruction to use Chinese added (right side).

Chinese instructions visible in the command line output

Fixing Unexpected Situations

After using the methods above, the AI will still occasionally slip in one or two non-Chinese words—usually English, but I've also run into Russian, Korean, etc. When you encounter this situation, you can edit the paragraph generated by the AI and replace those non-Chinese words.

AI occasionally spits out Russian or other non-Chinese words

Click the edit button
Click the edit button to change these words

Modify the content and save
Save after editing the content

Then continue using the tavern.

========

To be continued


========

update

I found that in some cases, when there's too much English information in the character card, just a single line "{{char}}用中文输出全部信息" isn't strong enough—the spoken content will be in Chinese, but scene descriptions will be in English.

It can also output a passage in Chinese first, followed by an English translation.

So I experimented a bit more and found that the following works better

{{char}}用中文输出全部信息, 包括语言和场景描述.
{{char}}输出内容中不要有大段的非中文内容.


========

update

When using certain character cards, I noticed the generation sometimes gets stuck.

For example, with this character card. 

https://chub.ai/characters/mock/vii-03cb08d2220a


In this case, switching the AI from Google Gemini to DeepSeek works much better.


========

Related Recommendations

《SillyTavern: Get NVIDIA NIM Free API for Free》

《Bare-bones VPS + SillyTavern: Get Google's Free Gemini API and Have the First AI Story》

《SillyTavern: Play English Character Cards and Output in Chinese — Lorebooks Setup》


Comments