Skip to content

Commit 693e55d

Browse files
committed
Remove unused function
1 parent d158a49 commit 693e55d

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

ai_feedback/__main__.py

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -52,28 +52,6 @@ def load_markdown_template(template: str) -> str:
5252
sys.exit(1)
5353

5454

55-
def load_markdown_prompt(prompt_name: str) -> dict:
56-
"""Loads a markdown prompt file.
57-
58-
Args:
59-
prompt_name (str): Name of the prompt file (without extension)
60-
61-
Returns:
62-
dict: Dictionary containing prompt_content
63-
64-
Raises:
65-
SystemExit: If the prompt file is not found
66-
"""
67-
try:
68-
prompt_file = os.path.join(os.path.dirname(__file__), f"data/prompts/user/{prompt_name}.md")
69-
with open(prompt_file, "r") as file:
70-
prompt_content = file.read()
71-
return {"prompt_content": prompt_content}
72-
except FileNotFoundError:
73-
print(f"Error: Prompt file '{prompt_name}.md' not found in user subfolder.")
74-
sys.exit(1)
75-
76-
7755
def _load_content_with_fallback(
7856
content_arg: str, predefined_values: list[str], predefined_subdir: str, content_type: str
7957
) -> str:

0 commit comments

Comments
 (0)