slimming before fastapi refactor
This commit is contained in:
@@ -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]:
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user