slimming before fastapi refactor

This commit is contained in:
2026-01-02 22:10:13 -07:00
parent 06b6340731
commit b96e0e0008
9 changed files with 231 additions and 557 deletions

View File

@@ -234,16 +234,6 @@ class JournalPromptGenerator:
self.historic_prompts = updated_prompts
self._save_historic_prompts()
def _prepare_prompt(self) -> str:
"""Prepare the full prompt with historic context."""
# Format historic prompts for the AI
if self.historic_prompts:
historic_context = json.dumps(self.historic_prompts, indent=2)
full_prompt = f"{self.prompt_template}\n\nPrevious prompts:\n{historic_context}"
else:
full_prompt = self.prompt_template
return full_prompt
def _parse_ai_response(self, response_content: str) -> List[str]:
"""