Skip to content

Commit b1eee8c

Browse files
committed
test: fixup prompt
1 parent db3ccfa commit b1eee8c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

models/tests/test_examples.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
from models.prompt_templates import NetecPromptTemplates
1616

1717

18-
HUMAN_MESSAGE = 'return the word "SUCCESS" in upper case.'
18+
HUMAN_MESSAGE = "this is a test"
1919

2020

2121
class TestExamples:
@@ -25,7 +25,10 @@ class TestExamples:
2525
def test_prompt(self, mock_parse_args):
2626
"""Test prompt example."""
2727
mock_args = MagicMock()
28-
mock_args.system_prompt = "you are a helpful assistant"
28+
mock_args.system_prompt = """you are a helpful assistant. If you are prompted,
29+
'this is a test', then return the word 'SUCCESS' in upper case. Return only
30+
this single word, in upper case. Do not embellish. do not further prompt
31+
the user for any reason."""
2932
mock_args.human_prompt = HUMAN_MESSAGE
3033
mock_parse_args.return_value = mock_args
3134

0 commit comments

Comments
 (0)