fix crash

This commit is contained in:
LeonOstrez
2024-07-31 16:06:46 +02:00
parent c30d99577c
commit 1b069ee512

View File

@@ -73,6 +73,7 @@ class SpecWriter(BaseAgent):
},
)
reviewed_spec = user_description
if len(user_description) < ANALYZE_THRESHOLD and complexity != Complexity.SIMPLE:
initial_spec = await self.analyze_spec(user_description)
reviewed_spec = await self.review_spec(desc=user_description, spec=initial_spec)