remove unused imports and function
This commit is contained in:
@@ -9,9 +9,7 @@ import json
|
||||
import sys
|
||||
import argparse
|
||||
import configparser
|
||||
from datetime import datetime
|
||||
from typing import List, Dict, Any, Optional
|
||||
from pathlib import Path
|
||||
|
||||
from openai import OpenAI
|
||||
from dotenv import load_dotenv
|
||||
@@ -203,21 +201,6 @@ class JournalPromptGenerator:
|
||||
|
||||
self.console.print(table)
|
||||
|
||||
def _renumber_prompts(self):
|
||||
"""Renumber all prompts to maintain prompt00-prompt59 range."""
|
||||
renumbered_prompts = []
|
||||
for i, prompt_dict in enumerate(self.historic_prompts):
|
||||
# Get the prompt text from the first key in the dictionary
|
||||
prompt_key = list(prompt_dict.keys())[0]
|
||||
prompt_text = prompt_dict[prompt_key]
|
||||
|
||||
# Create new prompt with correct numbering
|
||||
new_prompt_key = f"prompt{i:02d}"
|
||||
renumbered_prompts.append({
|
||||
new_prompt_key: prompt_text
|
||||
})
|
||||
|
||||
self.historic_prompts = renumbered_prompts
|
||||
|
||||
def add_prompt_to_history(self, prompt_text: str):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user