MuseWeb automatically detects and handles models with reasoning/thinking capabilities. For web page generation, thinking output is automatically disabled to ensure clean HTML responses.
When MuseWeb detects a reasoning model (based on configurable patterns), it automatically:
- Sends
thinking: falsein the API request to disable reasoning output - Ensures clean responses without thinking tags cluttering the web page
- Maintains full functionality while providing a better user experience
The following model patterns are automatically detected as reasoning models:
deepseek-r1-distill- DeepSeek R1 distilled models (most specific)deepseek- All DeepSeek models (general)
r1-1776- OpenAI R1-1776 models
qwen3- Qwen3 models (specific)qwen- All Qwen models (general)
sonar-reasoning-pro- Perplexity Sonar reasoning pro modelssonar-reasoning- Perplexity Sonar reasoning models
gemini-2.5-flash-lite-preview-06-17- Specific Gemini modelgemini-2.5-flash- Gemini 2.5 Flash models
You can customize which models are treated as reasoning models by editing the reasoning_models section in your config.yaml:
model:
reasoning_models:
- "deepseek-r1-distill" # Most specific patterns first
- "sonar-reasoning-pro"
- "sonar-reasoning"
- "r1-1776"
- "qwen3"
- "deepseek" # General patterns last
- "qwen"- Case-insensitive: Patterns match regardless of case
- Substring matching: Pattern must appear anywhere in the model name
- Priority-based: First match wins, so list specific patterns before general ones
- Automatic thinking disabled: All matched models get
thinking: falseautomatically
For web page generation, reasoning output creates several problems:
- Cluttered HTML: Thinking tags appear in the generated web page
- Poor UX: Users see the model's internal reasoning process
- Inconsistent output: Some responses have thinking, others don't
- Parsing issues: Thinking tags can interfere with HTML structure
By automatically disabling thinking for reasoning models, MuseWeb ensures:
- Clean web pages without reasoning clutter
- Consistent output across all requests
- Better user experience with focused content
- Proper HTML structure without interference
To add support for new reasoning models, simply add their name patterns to the reasoning_models list in your config:
model:
reasoning_models:
- "new-reasoning-model" # Add your pattern here
- "another-pattern"No code changes are required - the system will automatically detect and handle new patterns.