changed to claude
This commit is contained in:
@@ -2364,7 +2364,7 @@ async def create_post(
|
||||
}
|
||||
|
||||
result = await orchestrator.create_post(
|
||||
user_id=UUID(user_id), topic=topic, max_iterations=3,
|
||||
user_id=UUID(user_id), topic=topic, max_iterations=2,
|
||||
progress_callback=progress_callback,
|
||||
post_type_id=UUID(post_type_id) if post_type_id else None,
|
||||
user_thoughts=user_thoughts,
|
||||
@@ -4412,7 +4412,7 @@ async def chat_generate_post(request: Request):
|
||||
company_strategy=company_strategy,
|
||||
strategy_weight=strategy_weight
|
||||
)
|
||||
post_content = sanitize_post_content(post_content)
|
||||
post_content = sanitize_post_content(post_content, profile_analysis.full_analysis)
|
||||
|
||||
# Run critic + one revision pass for chat flow quality parity
|
||||
critic_result = await orchestrator.critic.process(
|
||||
@@ -4437,7 +4437,7 @@ async def chat_generate_post(request: Request):
|
||||
company_strategy=company_strategy,
|
||||
strategy_weight=strategy_weight
|
||||
)
|
||||
post_content = sanitize_post_content(post_content)
|
||||
post_content = sanitize_post_content(post_content, profile_analysis.full_analysis)
|
||||
critic_result = await orchestrator.critic.process(
|
||||
post=post_content,
|
||||
profile_analysis=profile_analysis.full_analysis,
|
||||
@@ -4466,7 +4466,7 @@ async def chat_generate_post(request: Request):
|
||||
profile_analysis=profile_analysis.full_analysis,
|
||||
example_posts=example_post_texts
|
||||
)
|
||||
post_content = sanitize_post_content(post_content)
|
||||
post_content = sanitize_post_content(post_content, profile_analysis.full_analysis)
|
||||
|
||||
# Generate conversation ID
|
||||
import uuid
|
||||
@@ -4597,7 +4597,7 @@ async def chat_refine_post(request: Request):
|
||||
company_strategy=company_strategy,
|
||||
strategy_weight=strategy_weight
|
||||
)
|
||||
refined_post = sanitize_post_content(refined_post)
|
||||
refined_post = sanitize_post_content(refined_post, full_analysis)
|
||||
|
||||
# Critic + quality checks for chat refine parity
|
||||
critic_result = await orchestrator.critic.process(
|
||||
@@ -4622,7 +4622,7 @@ async def chat_refine_post(request: Request):
|
||||
company_strategy=company_strategy,
|
||||
strategy_weight=strategy_weight
|
||||
)
|
||||
refined_post = sanitize_post_content(refined_post)
|
||||
refined_post = sanitize_post_content(refined_post, full_analysis)
|
||||
|
||||
critic_result = await orchestrator.critic.process(
|
||||
post=refined_post,
|
||||
@@ -4651,7 +4651,7 @@ async def chat_refine_post(request: Request):
|
||||
profile_analysis=full_analysis,
|
||||
example_posts=example_post_texts
|
||||
)
|
||||
refined_post = sanitize_post_content(refined_post)
|
||||
refined_post = sanitize_post_content(refined_post, full_analysis)
|
||||
|
||||
return JSONResponse({
|
||||
"success": True,
|
||||
@@ -4974,7 +4974,7 @@ async def company_chat_generate_post(request: Request):
|
||||
company_strategy=company_strategy,
|
||||
strategy_weight=strategy_weight
|
||||
)
|
||||
post_content = sanitize_post_content(post_content)
|
||||
post_content = sanitize_post_content(post_content, profile_analysis.full_analysis)
|
||||
|
||||
# Run critic + one revision pass for chat flow quality parity
|
||||
critic_result = await orchestrator.critic.process(
|
||||
@@ -4998,7 +4998,7 @@ async def company_chat_generate_post(request: Request):
|
||||
company_strategy=company_strategy,
|
||||
strategy_weight=strategy_weight
|
||||
)
|
||||
post_content = sanitize_post_content(post_content)
|
||||
post_content = sanitize_post_content(post_content, profile_analysis.full_analysis)
|
||||
|
||||
if settings.quality_refiner_enabled:
|
||||
quality_checks = await orchestrator._run_quality_checks(post_content, example_post_texts)
|
||||
@@ -5017,7 +5017,7 @@ async def company_chat_generate_post(request: Request):
|
||||
profile_analysis=profile_analysis.full_analysis,
|
||||
example_posts=example_post_texts
|
||||
)
|
||||
post_content = sanitize_post_content(post_content)
|
||||
post_content = sanitize_post_content(post_content, profile_analysis.full_analysis)
|
||||
|
||||
return JSONResponse({
|
||||
"success": True,
|
||||
|
||||
Reference in New Issue
Block a user