Configuration
Configuration objects for AI providers, text-to-speech, speech-to-text, animations, and UI settings.DefaultAIConfig
Default AI provider configuration with support for Chrome AI, OpenAI, and Ollama.Structure
Chrome AI Settings
Sampling temperature (0.0-2.0). Higher = more random.
Top-K sampling. Lower = more focused, higher = more diverse.
Model output language: ‘en’ | ‘es’ | ‘ja’
Enable multi-modal image support (requires Chrome AI multimodal flag)
Enable multi-modal audio support (requires Chrome AI multimodal flag)
Personality type from PromptConfig.systemPrompts or ‘custom’
Custom system prompt (only used when systemPromptType is ‘custom’)
OpenAI Settings
OpenAI API key
Model name: ‘gpt-4’ | ‘gpt-4-turbo-preview’ | ‘gpt-4o’ | ‘gpt-3.5-turbo’
Sampling temperature (0.0-2.0)
Maximum tokens in response
Enable multi-modal image support (GPT-4 Vision)
Enable audio transcription via Whisper
Ollama Settings
Ollama server endpoint
Model name (e.g., ‘llama2’, ‘mistral’, ‘mixtral’, ‘llava’)
Sampling temperature
Maximum tokens in response
Enable multi-modal image support (requires vision model like LLaVA)
DefaultTTSConfig
Default Text-to-Speech configuration with support for Kokoro, OpenAI TTS, and generic APIs.Structure
Kokoro TTS Settings
HuggingFace model ID for Kokoro TTS
Voice ID. Available voices:
- Female American: af_heart, af_alloy, af_aoede, af_bella, af_jessica, af_kore, af_nicole, af_nova, af_river, af_sarah, af_sky
- Male American: am_adam, am_echo, am_eric, am_fenrir, am_liam, am_michael, am_onyx, am_puck, am_santa
- Female British: bf_alice, bf_emma, bf_isabella, bf_lily
- Male British: bm_daniel, bm_fable, bm_george, bm_lewis
Speech speed multiplier (0.25-4.0)
Inference backend:
'auto': WebGPU if available, else WASM'webgpu': GPU acceleration (2-10x faster, fp32/fp16 dtype)'wasm': CPU fallback (universal compatibility, q8 dtype)
Keep model in memory between generations (faster but uses ~163MB RAM)
OpenAI TTS Settings
OpenAI API key
TTS model: ‘tts-1’ (fast) | ‘tts-1-hd’ (high quality)
Voice: ‘alloy’ | ‘echo’ | ‘fable’ | ‘onyx’ | ‘nova’ | ‘shimmer’
Speech speed (0.25-4.0)
Chunking Settings
Target chunk size in characters for streaming TTS
Minimum chunk size (prevents too many tiny chunks)
DefaultSTTConfig
Default Speech-to-Text configuration with support for Chrome AI, OpenAI Whisper, and generic APIs.Structure
Chrome AI Multimodal Settings
Low temperature for accurate transcription
Top-K sampling for token selection
OpenAI Whisper Settings
OpenAI API key
Whisper model (currently only ‘whisper-1’ available)
Input audio language (ISO 639-1 code)
Temperature for transcription (0.0 = deterministic)
AnimationConfig
Animation configuration defines available animations, categories, and transition settings.Animation Categories
Assistant States
Transition Settings
Default transition duration (1 second at 30fps)
Bezier easing curve for smooth S-curve transitions:
Quick transition duration (0.5 seconds)
Slow transition duration (2 seconds)
Animation Registry
Animations are organized by category:Animation Entry Fields
Unique identifier for the animation
Human-readable name
Path to .bvmd animation file (resolved at runtime)
Transition duration when entering/exiting
Whether animation should loop
Smooth blend between loop cycles (creates overlap)
Default blending weight (0.0-1.0)
Additional information:
description: Detailed descriptiontags: Array of tags for categorization
UIConfig
User interface configuration for positioning, appearance, and behavior.Structure
Display Settings
Show 3D character model
Enable portrait mode (clips model at waist, shows upper body only)
Frame rate limit: 30 | 60 | 90 | ‘native’
Auto-load assistant on all pages (extension mode only)
AI Toolbar Settings
Enable floating AI toolbar for text/image operations
Show toolbar when focusing text inputs (for dictation)
Show toolbar when hovering over images
Position Presets
Available position presets:'bottom-right': Default chatbot position'bottom-left': Bottom-left corner'bottom-center': Bottom center'center': Large centered view'top-right': Top-right corner'top-left': Top-left corner'top-center': Top center'last-location': Restore last saved position
Position Preset Structure
Background Detection Settings
Theme mode:
'adaptive': Auto-detect background brightness'light': Force light theme'dark': Force dark theme
Grid size for brightness sampling (5 = 25 sample points)
Show debug markers for brightness detection
Chat Settings
Enable smooth character-by-character streaming animation
Keyboard Shortcuts
Enable keyboard shortcuts
Shortcut to open chat (e.g., ‘Ctrl+Shift+A’)
Shortcut to toggle portrait mode
Usage Examples
Configure Chrome AI
Configure Chrome AI
Configure Kokoro TTS
Configure Kokoro TTS
Set Model Position
Set Model Position
Custom UI Configuration
Custom UI Configuration