File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 15
15
from models .prompt_templates import NetecPromptTemplates
16
16
17
17
18
- HUMAN_MESSAGE = 'return the word "SUCCESS" in upper case.'
18
+ HUMAN_MESSAGE = "this is a test"
19
19
20
20
21
21
class TestExamples :
@@ -25,7 +25,10 @@ class TestExamples:
25
25
def test_prompt (self , mock_parse_args ):
26
26
"""Test prompt example."""
27
27
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."""
29
32
mock_args .human_prompt = HUMAN_MESSAGE
30
33
mock_parse_args .return_value = mock_args
31
34
You can’t perform that action at this time.
0 commit comments