Skip to content

Commit

Permalink
Fix bug related to alternative instruction block identifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
s-jse committed Jun 2, 2024
1 parent bb80d6f commit 5ec78c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion chainlite/load_prompt.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
prompt_block_identifiers = {
"input": ["# input\n", "# Input\n", "# INPUT\n"],
"output": ["# output\n", "# Output\n", "# OUTPUT\n"],
"instruction": ["# instruction\n", "# Instruction\n", "# Instruction\n"],
"instruction": ["# instruction\n", "# Instruction\n", "# INSTRUCTION\n"],
"distillation_instruction": [
"# distillation instruction\n",
"# distillation_instruction\n",
Expand Down
2 changes: 1 addition & 1 deletion tests/joke.prompt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# instruction
# Instruction
Tell a joke about the input topic. The format of the joke should be a question and response, separated by a line break.
{# This is a comment, and will be ignored anywhere in a .prompt file. Other than block definitions and comments, '#' is allowed and is treated as a normal character. #}

Expand Down

0 comments on commit 5ec78c1

Please sign in to comment.