Skip to content

Commit

Permalink
Refactor prompt template initialization and update black dependency
Browse files Browse the repository at this point in the history
Refactor the initialization of the sidekick prompt template for better readability. Remove version pinning for the black dependency in requirements-dev.txt.
  • Loading branch information
TechNickAI committed Jul 17, 2024
1 parent 56ef0f8 commit 9e26289
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion aicodebot/prompts.py
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,9 @@ def get_prompt(command, structured_output=False):
"commit": PromptTemplate(template=COMMIT_TEMPLATE, input_variables=["diff_context", "languages"]),
"debug": PromptTemplate(template=DEBUG_TEMPLATE, input_variables=["command_output", "languages"]),
"fun_fact": PromptTemplate(template=FUN_FACT_TEMPLATE, input_variables=["topic"]),
"sidekick": PromptTemplate(template=SIDEKICK_TEMPLATE, input_variables=["task", "context", "languages"]),
"sidekick": PromptTemplate(
template=SIDEKICK_TEMPLATE, input_variables=["task", "context", "languages"]
),
}

try:
Expand Down
2 changes: 1 addition & 1 deletion requirements/requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
aicodebot

# For committing, formatting, and dependency management
black==24.4.2
black
isort
pip-tools
pre-commit
Expand Down

0 comments on commit 9e26289

Please sign in to comment.