Fix(PR): Address reviewer feedback

- Remove redundant requirements.txt
- Fix leading newline in prompt templates
This commit is contained in:
Abhaykhanna3 2025-07-28 11:48:02 -05:00
parent b5234d4214
commit 9d7bcc523f
2 changed files with 3 additions and 20 deletions

View file

@ -1,14 +0,0 @@
# Word Hunt Environment Dependencies
# Core Atropos dependencies are handled by the main project
# Configuration and validation
pydantic>=2.0.0
# Tokenization and model handling
transformers>=4.30.0
# Optional: For enhanced word validation (if using external dictionary)
# nltk>=3.8.0
# Optional: For performance monitoring
# psutil>=5.9.0

View file

@ -161,8 +161,7 @@ class WordHuntEnvConfig(BaseEnvConfig):
def get_prompt_template(self) -> str: def get_prompt_template(self) -> str:
"""Get the prompt template for presenting boards to the model""" """Get the prompt template for presenting boards to the model"""
if self.prompt_style == "grid_visual": if self.prompt_style == "grid_visual":
template = """ template = """You are playing Word Hunt! Find as many English words as possible on this 4x4 letter grid.
You are playing Word Hunt! Find as many English words as possible on this 4x4 letter grid.
Rules: Rules:
- Words must be at least 3 letters long - Words must be at least 3 letters long
@ -178,8 +177,7 @@ Here's your board:
Find all the words you can! Return them as a space-separated list. Find all the words you can! Return them as a space-separated list.
""" """
elif self.prompt_style == "text_description": elif self.prompt_style == "text_description":
template = """ template = """You are playing Word Hunt! Find English words from these letters arranged in a 4x4 grid.
You are playing Word Hunt! Find English words from these letters arranged in a 4x4 grid.
Rules: Rules:
- Words must be at least 3 letters long - Words must be at least 3 letters long
@ -194,8 +192,7 @@ Letters (reading left to right, top to bottom): {board_letters}
Find all the words you can! Return them as a space-separated list. Find all the words you can! Return them as a space-separated list.
""" """
else: # both else: # both
template = """ template = """You are playing Word Hunt! Find as many English words as possible on this 4x4 letter grid.
You are playing Word Hunt! Find as many English words as possible on this 4x4 letter grid.
Rules: Rules:
- Words must be at least 3 letters long - Words must be at least 3 letters long