From 930d755d38181de093aca204dcdfb65dfe714924 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20Ho=CC=88nicke?= Date: Sun, 30 Apr 2023 18:39:44 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=AA=20test:=20level=202?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/options/generate/generator.py | 5 +++-- src/options/generate/templates_user.py | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/options/generate/generator.py b/src/options/generate/generator.py index d7577e7..7c52e76 100644 --- a/src/options/generate/generator.py +++ b/src/options/generate/generator.py @@ -430,7 +430,7 @@ gptdeploy deploy --path {self.microservice_root_path} messages, 'test', '''Note that the test scenario must not contain information that was already mentioned in the microservice description. -Note that the test scenario must contain the full description of the concrete example in case it was mentioned in the microservice description.''' +Note that you must not ask for information that were already mentioned before.''' ) break except self.TaskRefinementException as e: @@ -453,7 +453,8 @@ Test scenario: agent_response_raw = conversation.chat( template_refinement.format( user_input=user_input, - _optional_test=' test' if refinement_type == 'test' else '', + final_placeholder='''input: "" +weak assertion of output: ""''' if refinement_type == 'test' else '', custom_suffix=custom_suffix, ), role='user' diff --git a/src/options/generate/templates_user.py b/src/options/generate/templates_user.py index 21f8e5f..c1c81a1 100644 --- a/src/options/generate/templates_user.py +++ b/src/options/generate/templates_user.py @@ -367,7 +367,7 @@ Either ask for clarification like this: Or write the summarized microservice{_optional_test} description like this: **final.txt** ```text - +{final_placeholder} ``` Note that your response must be either prompt.txt or final.txt. You must not write both. Note that you must obey the double asterisk and tripple backtick syntax from above.