00:00 / 00:00

Chatterbox

AI Blend

LAPLACE Chatterbox's AI Blend lives in the Send tab and runs on a built-in lightweight engine: it continuously reads recent viewer danmaku as context, optionally adds the streamer's speech from Simultaneous Interpretation and live Stream Vision, and calls an OpenAI-compatible LLM endpoint to produce candidate danmaku that fit the rhythm of the stream

Two working modes are supported, Auto Send and Review Candidates, and you can switch between them at any time. Every LLM request routes through your userscript manager straight to the endpoint you configured; Chatterbox never touches your prompts, frames, or API key

Features

  • Multi-source triggers: generation is driven by streamer speech from Simultaneous Interpretation (sentence-ending punctuation / endpoint detection / oversized buffer), accumulated new viewer danmaku, and optional visual scene-change triggers; without interpretation running, viewer danmaku, visual triggers, and manual clicks keep working
  • Live stream vision: check Watch Stream (or configure Settings → Stream Vision) to let AI Blend see the live picture in either Direct Vision mode (with an experimental silent video clip option) or Scene Description mode (a separate vision model turns frames into text); see Stream Vision
  • Two working modes:
    • Auto Send: when the LLM decides send=true, the message goes straight into the send queue
    • Review Candidates: generated danmaku land in the Candidate Danmaku list, and you click Send / Edit / Skip to decide whether one goes out
  • Viewer danmaku context: keeps the last N viewer danmaku (configurable) as context, and in busy rooms trims to the newest viewer messages that fit the budget rather than dropping the entire viewer chat block
  • Grounded replies and self-consistency: treats speech transcripts only as a rough hint of the streamer's topic and mood (never quoting misheard homophones or phonetic foreign-word errors; concrete names and terms come from viewer chat and the live picture), and tracks what was actually said across rounds: edited review-mode candidates are recorded as the sent text, while skipped candidates are marked unused and no longer count as said
  • Structured output: prefers the json_schema response format, requiring send / message / reason (plus uses_scene and scene when stream vision is active); if the provider rejects it (such as the official DeepSeek API, which only accepts json_object), it falls back automatically to json_object or plain prompt constraints and remembers the working mode for the session
  • Self-echo dedupe: danmaku sent within the last 30 seconds are ignored when bilibili pushes them back to public chat, so they never pollute the context
  • Copy Ninja member filter: with Copy Ninja on, danmaku from accounts in the group never enter the context
  • Large-emote filtering: large-emote danmaku from viewers (image only, no textual meaning) never enter the context
  • Multiple persona presets: six built-in prompts (Contrarian (default) / Wisecracker / Sweetheart / Ranter / Conversation Starter / Read the Room), switchable or editable at any time. Read the Room matches recent viewer chat's length, slang, punctuation, and mood, joining waves naturally and skipping when there is nothing to follow or chat turns hostile
  • Live status: the panel shows the engine state (generating / about to generate / waiting), whether interpretation is running, the viewer message count, last generation time, picture and captioner status, prompt token count (when reported by the provider), and the last decision
  • Decision log: keeps the last 50 decisions (success ✅ / skipped ⏭ / failed ❌), including scene notes and attached frame thumbnails when stream vision is on, clearable in one click
  • Shared send queue: shares the send queue and bilibili's rate limit with Auto Send, Auto Blend, and Simultaneous Interpretation, runs at AUTO priority, and can be preempted by manual sends

Usage

Prerequisites

  • Add a provider under Settings → LLM Settings, filling in an OpenAI-compatible API URL and API key and choosing a model; you can save several provider configurations, with only the selected one active at a time. LLM requests travel through the userscript manager so providers that block browser CORS (such as Gemini, Kimi, MiniMax, StepFun, Mistral, Zhipu GLM, and Tencent Hunyuan) work directly; on the first request to a new host, allow cross-origin access permanently when prompted by your userscript manager
  • After refreshing the model list, models that expose input modalities display Image and Video tags, and you can search by those tags to filter vision-capable models quickly
  • Confirm that a prompt is active under Settings → LLM Prompts → AI Blend (Contrarian is activated by default the first time you enable the feature)
  • (Optional) Start interpreting in the Simultaneous Interpretation tab, and AI Blend also draws on the real-time text it produces

Enabling and Switching Modes

  • In the Send tab, expand the AI Blend collapsible section and check Enable AI Blend
  • Once enabled, a yellow 🟡 marker appears on the Send tab and in the AI Blend panel title
  • Check Watch Stream next to it to toggle Stream Vision quickly (synced with Settings → Stream Vision → Enable Stream Vision)
  • Click the Auto Send / Review Candidates button to switch between the two modes:
    • A filled button = Auto Send is active
    • An outlined button = Review Candidates is active
  • Click Generate Now to skip the buffer wait and force one LLM call

Review Candidates Mode

  • Generated candidates appear in the Candidate Danmaku list (30 at most; older candidates are dropped on overflow); with Stream Vision on, each candidate also displays its scene note and attached frame thumbnails
  • If a picture-dependent candidate's scene changed sharply during generation, a ⚠ Picture Changed warning appears on that row
  • For each candidate you can choose:
    • Send: add the text as-is to the send queue
    • Edit: open an input box, revise, then send (Enter confirms / Esc cancels); conversation history records the final text you actually sent
    • Skip: discard the candidate, record it in the decision log, and mark it unused so the AI won't treat it as said

Stream Vision

Stream Vision is off by default; turn it on via Watch Stream in the AI Blend panel or under Settings → Stream Vision:

  • Local on-demand sampling: player frames are sampled locally in the browser and never continuously uploaded; sampling pauses automatically when the tab is in the background, in Audio-Only Mode, or when video is paused, stalled, or blank
  • Direct Vision (default): attaches frames only when AI Blend is about to generate (requires an image-capable model; if the selected model rejects images, AI Blend warns and falls back to text-only):
    • Picks up to Max Frames per Call (1–4, default 2) from the moment the streamer or chat is reacting to; a static picture or clicking Generate Now attaches only 1 frame
    • If the picture hasn't changed noticeably within 60 seconds of the last upload, no image is uploaded again and the previous scene note is reused
    • Optionally enable Video Clip (Experimental) to send a 3–8 second silent clip instead of still frames (supported by select models only; falls back to screenshots automatically if unsupported or too large)
  • Scene Description: picks a separate vision model from your LLM Settings providers (leave the model blank to use that provider's default model, or enter a custom model ID) to turn frames into short text notes on scene cuts, about every 45 seconds, and before AI Blend rounds. Works when AI Blend uses a text-only model, and also feeds Auto Blend's decision model and YOLO even while AI Blend is off
  • Visual triggers and staleness guard: with Trigger AI Blend on Scene Change checked, a sharp scene cut during silence triggers a generation (at least 1 minute after the previous generation). If a picture-dependent reply becomes outdated before sending (during generation or while waiting in the send queue), Auto Send skips it and Review Candidates marks it with ⚠ Picture Changed
  • Shared scene notes: in either mode, recent scene notes are also shared with Auto Blend's decision model and YOLO rewrites

Switching Personas

  • Switch the active prompt from the Prompt dropdown in the AI Blend section
  • Full prompt management (add, edit, delete, reorder) happens under Settings → LLM Prompts → AI Blend
  • The first line of every built-in prompt is the persona name, which doubles as a preview for quick identification

Options

Triggers and Context

The options below live in the AI Blend Advanced Settings collapsible section

OptionDescriptionDefault
Max Danmaku LengthMaximum character count for generated danmaku (1 ~ 200), mirrored into message.maxLength in the LLM response JSON Schema40
Trigger Every N DanmakuFires one viewer-driven generation once this many viewer danmaku have accumulated10
Viewer WindowHow many recent viewer danmaku ride along in the context50
Context LimitTotal character budget for the context sent to the LLM (history + viewer danmaku)2048
Sampling TemperatureThe LLM temperature parameter, range 0 ~ 20.7

Modes

OptionDescription
Enable AI BlendMaster switch; turning it off stops the engine from subscribing to viewer danmaku and the interpretation buffer entirely
Watch StreamQuick toggle for Stream Vision, synced with Settings → Stream Vision
Auto Send / Review CandidatesDecides whether LLM output is sent directly or lands in the candidate list
Generate NowSkips the debounce wait and calls the LLM immediately, whatever the buffer state

Stream Vision Options

The options below live in the Settings → Stream Vision collapsible section:

OptionDescriptionDefault
Enable Stream VisionMaster switch; samples live player frames locally for models to referenceOff
Input ModeDirect Vision (AI Blend's model reads frames directly) or Scene Description (a separate vision model writes notes)Direct Vision
Caption Provider / ModelScene Description mode only; pick a provider from LLM Settings (leave the model blank to use that provider's own model)Unset
Max Frames per CallDirect Vision mode only; maximum frames attached per generation (1–4)2
ResolutionLong-edge cap for uploaded frames: Low (512px) / Medium (768px) / High (1024px); higher resolution uses more input tokensMedium
Video Clip (Experimental)Direct Vision mode only, when supported by the browser; sends a short silent clip instead of frames and falls back on errorOff
Trigger AI Blend on Scene ChangeFires a generation on sharp scene changes during silence, at least 1 minute after the previous generationOff

Trigger Timing

The engine's internal scheduling logic:

  • When the streamer speech buffer sees sentence-ending punctuation (。.!!??), the speech recognition service reports an endpoint, or the buffer passes 200 characters, generation fires 500 ms later
  • When the buffer holds content but is not ready, a fallback trigger fires after waiting at most 8 seconds
  • When viewer danmaku reach the configured count, a viewer-driven generation fires 3 seconds later (only if no other task is queued)
  • With Trigger AI Blend on Scene Change enabled, a sharp scene cut during silence triggers generation 500 ms later (at least 1 minute apart)

Notes

  • Every LLM setting (API URL, key, model) is stored only in your browser's userscript storage, and screenshots or clips go only to the model provider you configured; neither Chatterbox nor LAPLACE's servers receive any LLM-related data
  • You settle LLM endpoint costs with your LLM provider by call count / token usage, so set Max Danmaku Length, Context Limit, and Stream Vision frame count / resolution sensibly to keep spend under control
  • If the LLM response cannot be parsed as valid JSON, the engine logs an error and discards that result without sending any danmaku; a single LLM call that hasn't returned after 45 seconds is aborted
  • AI Blend does not take over Simultaneous Interpretation's own sending: whether interpreted text goes out is still decided by the Simultaneous Interpretation panel, and AI Blend produces its content independently on a separate path
  • Disabling AI Blend immediately cancels queued sends waiting in the send queue and clears pending candidates; switching rooms or reloading the page also clears pending candidates, while the decision log survives until the current session ends
  • To stop the engine completely, uncheck Enable AI Blend; otherwise viewer danmaku keep the scheduler alive even when you never click Generate Now

Last updated on November 29, 2026

Tech otakus destroy the world