feat: podcast demo mode with ALWRITY_ENABLED_FEATURES support

- Add ALWRITY_ENABLED_FEATURES env var for feature gating
- Podcast-only mode: skip LLM bootstrap, scheduler, persona services
- Enhance video generation prompt with scene context, analysis, narration
- Add voice cloning support via custom_voice_id in WaveSpeed
- Add text-to-speech for research results (browser speechSynthesis)
- Fix render queue to sync images from script phase
- Add WaveSpeed LLM pricing (gpt-oss-120b)
- Fix podcast bible generation error handling
- Refactor RouterManager for feature-based router loading
This commit is contained in:
ajaysi
2026-04-03 06:59:59 +05:30
parent c52b1eabc9
commit 63bb937796
58 changed files with 3568 additions and 1597 deletions

View File

@@ -442,9 +442,34 @@ class PricingService:
"description": "AI Audio Generation default pricing"
}
]
# WaveSpeed LLM Text Generation Pricing (via Cerebras)
wavespeed_llm_pricing = [
{
"provider": APIProvider.WAVESPEED,
"model_name": "openai/gpt-oss-120b",
"cost_per_input_token": 0.0000006, # $0.60 per 1M input tokens
"cost_per_output_token": 0.0000006, # $0.60 per 1M output tokens
"description": "WaveSpeed GPT-OSS 120B (Cerebras) - Fast text generation"
},
{
"provider": APIProvider.WAVESPEED,
"model_name": "openai/gpt-oss-120b:cerebras",
"cost_per_input_token": 0.0000006,
"cost_per_output_token": 0.0000006,
"description": "WaveSpeed GPT-OSS 120B (Cerebras) - Fast text generation"
},
{
"provider": APIProvider.WAVESPEED,
"model_name": "openai/gpt-oss-20b",
"cost_per_input_token": 0.0000002, # $0.20 per 1M input tokens
"cost_per_output_token": 0.0000002, # $0.20 per 1M output tokens
"description": "WaveSpeed GPT-OSS 20B (Cerebras) - Cost-effective text generation"
},
]
# Combine all pricing data (include video pricing in search_pricing list)
all_pricing = gemini_pricing + openai_pricing + anthropic_pricing + mistral_pricing + search_pricing
all_pricing = gemini_pricing + openai_pricing + anthropic_pricing + mistral_pricing + search_pricing + wavespeed_llm_pricing
# Insert or update pricing data
for pricing_data in all_pricing: