- Introduced a new scheduled task for executing automation rules every 5 minutes in the Celery beat schedule. - Updated URL routing to include a new endpoint for automation-related functionalities. - Refactored imports in various modules to align with the new business layer structure, ensuring backward compatibility for billing models, exceptions, and services.
22 lines
996 B
Python
22 lines
996 B
Python
"""
|
|
Credit Cost Constants
|
|
Phase 0: Credit-only system costs per operation
|
|
"""
|
|
CREDIT_COSTS = {
|
|
'clustering': 10, # Per clustering request
|
|
'idea_generation': 15, # Per cluster → ideas request
|
|
'content_generation': 1, # Per 100 words
|
|
'image_prompt_extraction': 2, # Per content piece
|
|
'image_generation': 5, # Per image
|
|
'linking': 8, # Per content piece (NEW)
|
|
'optimization': 1, # Per 200 words (NEW)
|
|
'site_structure_generation': 50, # Per site blueprint (NEW)
|
|
'site_page_generation': 20, # Per page (NEW)
|
|
# Legacy operation types (for backward compatibility)
|
|
'ideas': 15, # Alias for idea_generation
|
|
'content': 3, # Legacy: 3 credits per content piece
|
|
'images': 5, # Alias for image_generation
|
|
'reparse': 1, # Per reparse
|
|
}
|
|
|