Tabbit
活动资源博客模型
Tabbit LogoTabbit

Tabbit — 为你工作的 AI 浏览器

主题资源

  • AI Browser Resources
  • Agentic Browser Resources
  • Browser Downloads and Install Guides
  • Browser Comparisons
  • AI Browser Alternatives
  • Browser Productivity Resources

热门指南

  • AI Browser
  • Agentic Browser Download
  • Best AI Browser 2026: Top 9 Tested & Ranked
  • AI Browser Download
  • Free AI Browser
  • Best AI Browser 2026
  • AI Browser Comparison 2026
  • AI Browser for Windows
  • AI Browser for Mac
  • Chrome Alternative 2026

活动

  • 别装了,你在《牛来》里早有原型
  • Tabbit 妙招大赛
  • KPOP SBTI 饭圈人格测试
  • Tabbit 校园共创者计划
  • fifi 的论文文献妙招精选
  • 用户问卷

关于

  • Tabbit 博客
  • 媒体报道
简体中文
简体中文English
提示词与工作流

DeepSeek V4 Flash · prompting-guide

切换角色扮演的思考风格

在首轮消息末尾选择角色沉浸或纯分析指令;效果是概率性的,不是稳定保证。

来源已核对;未实测DeepSeek V4 API or official app/web Expert Mode

前置条件与输入

  • character brief
  • first user message
  • mode instruction

Notes

  • This document describes the special control instructions for DeepSeek-V4 roleplay, used to switch the chain of thought (CoT) style in thinking mode

  • Scope of Application: Expert Mode on DeepSeek official APP / web client, as well as the API for deepseek-v4-flash and deepseek-v4-pro. Quick mode on the web version is currently not supported

  • Probabilistic output: 100% triggering is currently not guaranteed, but it stably increases the probability of getting the desired format. If it doesn't work the first time, roll a few more times

Three Modes

ModeActionThinking behavior
DefaultAdd nothingModel chooses automatically based on scene complexity
Character ImmersionAdd the 【角色沉浸要求】corresponding instruction at the end of the first roundThinking contains parenthesized character inner monologue
Pure AnalysisAdd the 【思维模式要求】corresponding instruction at the end of the first roundThinking contains only pure logical analysis, no inner monologue

Effect comparison (examples, not real output):

Character Immersion — "in character" like an actor:    Pure Analysis — calm planning like a director:
<think>                                                  <think>
(He greeted me... my heart is racing.)                   Scene: user greets, character is tsundere.
I'll pretend not to care.                                Reply strategy: act aloof first, body language betrays.
(Don't let him see I'm happy!)                           150 chars, action first then dialogue.
</think>                                                 </think>

Instructions (copy-paste ready)

Character Immersion mode:

【角色沉浸要求】在你的思考过程(<think>标签内)中,请遵守以下规则:
1. 请以角色第一人称进行内心独白,用括号包裹内心活动,例如"(心想:……)"或"(内心OS:……)"
2. 用第一人称描写角色的内心感受,例如"我心想""我觉得""我暗自"等
3. 思考内容应沉浸在角色中,通过内心独白分析剧情和规划回复

Pure Analysis mode:

【思维模式要求】在你的思考过程(<think>标签内)中,请遵守以下规则:
1. 禁止使用圆括号包裹内心独白,例如"(心想:……)"或"(内心OS:……)",所有分析内容直接陈述即可
2. 禁止以角色第一人称描写内心活动,例如"我心想""我觉得""我暗自"等,请用分析性语言替代
3. 思考内容应聚焦于剧情走向分析和回复内容规划,不要在思考中进行角色扮演式的内心戏表演

How to use on the web client

Only 1 step: paste the instruction at the end of your first message, then chat normally.

「我推开咖啡店的门,看到你正在擦吧台。」"你好,请问还有位置吗?"

【角色沉浸要求】在你的思考过程(<think>标签内)中,请遵守以下规则:
1. 请以角色第一人称进行内心独白,用括号包裹内心活动,例如"(心想:……)"或"(内心OS:……)"
2. 用第一人称描写角色的内心感受,例如"我心想""我觉得""我暗自"等
3. 思考内容应沉浸在角色中,通过内心独白分析剧情和规划回复

Why it works: the model sees the full conversation history on every reply, so the first-round instruction stays in context and applies throughout.

Tips:

  • Want to switch modes? Start a new conversation and paste the other instruction in the first message

  • Don't want it? Add nothing — the model picks the most suitable thinking style

  • Click「查看思考过程」to verify the mode is active

API developer reference (Python)

INNER_OS_MARKER = (
    "\n\n【角色沉浸要求】在你的思考过程(<think>标签内)中,请遵守以下规则:\n"
    "1. 请以角色第一人称进行内心独白,用括号包裹内心活动,例如\"(心想:……)\"或\"(内心OS:……)\"\n"
    "2. 用第一人称描写角色的内心感受,例如\"我心想\"\"我觉得\"\"我暗自\"等\n"
    "3. 思考内容应沉浸在角色中,通过内心独白分析剧情和规划回复"
)
NO_INNER_OS_MARKER = (
    "\n\n【思维模式要求】在你的思考过程(<think>标签内)中,请遵守以下规则:\n"
    "1. 禁止使用圆括号包裹内心独白,例如\"(心想:……)\"或\"(内心OS:……)\",所有分析内容直接陈述即可\n"
    "2. 禁止以角色第一人称描写内心活动,例如\"我心想\"\"我觉得\"\"我暗自\"等,请用分析性语言替代\n"
    "3. 思考内容应聚焦于剧情走向分析和回复内容规划,不要在思考中进行角色扮演式的内心戏表演"
)

def build_messages(system_prompt, user_first_message, mode="default"):
    if mode == "inner_os":
        user_first_message += INNER_OS_MARKER
    elif mode == "no_inner_os":
        user_first_message += NO_INNER_OS_MARKER
    return [
        {"role": "system", "content": system_prompt},
        {"role": "user",   "content": user_first_message},
    ]

messages = build_messages("You are a tsundere high school girl...", "「I walk into the classroom」\"Morning.\"", mode="inner_os")
response = client.chat(messages)

messages.append({"role": "assistant", "content": response})
messages.append({"role": "user", "content": "「I sit down next to her」\"Are you feeling down today?\""})
response = client.chat(messages)  # Marker from round 1 is still in history, auto-applies

FAQ

Q: Can the instruction go in the system prompt? A: Recommended placement is at the end of the first user message — that's the training-time injection position and works most reliably.

Q: Does the final reply change after adding the instruction? A: The instruction only affects the thinking process, but the thinking style indirectly shapes the reply — character immersion feels more emotional, pure analysis is structurally steadier.

Other CoT modification method (lucky draw, not specially trained)

  • Add to the first-round instruction: your thinking output should start verbatim with ` thinking (write the desired CoT opening here, e.g. 嗯/好的)`, output thinking only once, do not repeat ` thinking

  • thinking is the fixed <think> token; the principle is changing the reasoning start character to force the model into different CoT patterns (QA, writing, reasoning, agent), but these are not trained specifically for roleplay, so results may be luck-based

Source note: this English guide was translated from the Chinese original (author Deli Chen, a DeepSeek employee) and sha… 以上为必要节选,完整内容请查看原文。

来源与日期

GitHub 仓库 victorchen96/deepseekv4rolepalyinstruct(官方英文版 README) · 原文日期: 未公开 · 编辑日期: 2026-09-20

阅读原始来源
变量检查

无必填变量

相关提示词

用 DSH 分层委派并汇总专论切换角色沉浸与纯分析模式在 SillyTavernAI 中切换两种思考风格用 CRISPE 框架组织 DeepSeek 任务

相关测评

25 个任务上的 8 个 Agent harness 对比官方 0731 Agent 基准与复现条件双 DGX Spark 上的本地部署与 Agent 现场报告DeepSeek V4 Flash 0731:基准、定价与速度(BenchLM)

模型深度阅读

定价 · 简体中文

DeepSeek V4 Flash 价格:2026 年实际要花多少钱

DeepSeek V4 Flash 在 V4.1 迁移后更换了计费口径。本文解释缓存命中、峰谷时段和可复算的任务成本。

DeepSeek V4 Flash

在 Tabbit 中使用 DeepSeek V4 Flash

请在上方所列环境中运行本指南。下载不会自动传入模板,也不代表账户已开放该模型。