Release Candidate: Production Release with Multi-Tenant & Onboarding Enhancements

This commit is contained in:
ajaysi
2026-02-28 20:06:26 +05:30
parent 08a1f4a1d8
commit 4828274cbf
162 changed files with 19489 additions and 4300 deletions

View File

@@ -159,14 +159,10 @@ class StyleDetectionLogic:
}}
"""
# Call the LLM for analysis
logger.debug("[StyleDetectionLogic.analyze_content_style] Sending enhanced prompt to LLM")
try:
analysis_text = llm_text_gen(prompt, user_id=user_id)
# Clean and parse the response
cleaned_json = self._clean_json_response(analysis_text)
analysis_results = json.loads(cleaned_json)
logger.info("[StyleDetectionLogic.analyze_content_style] Successfully parsed enhanced analysis results")
return {
@@ -179,7 +175,7 @@ class StyleDetectionLogic:
return {
'success': True,
'analysis': fallback_results,
'warning': 'AI analysis failed, used fallback detection'
'warning': f'AI analysis failed ({str(e)}), used fallback detection'
}
except Exception as e: