From 3e25d89c577a4d28989824d50ec2bef24d6a825e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20Ho=CC=88nicke?= Date: Fri, 26 May 2023 00:32:07 +0200 Subject: [PATCH] =?UTF-8?q?=E2=8F=AA=20fix:=20fix=20bring=20back=20the=20t?= =?UTF-8?q?est=20description=20for=20func=20generation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dev_gpt/apis/gpt.py | 4 ++-- dev_gpt/options/generate/templates_system.py | 11 +---------- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/dev_gpt/apis/gpt.py b/dev_gpt/apis/gpt.py index c6ad1be..e208528 100644 --- a/dev_gpt/apis/gpt.py +++ b/dev_gpt/apis/gpt.py @@ -165,8 +165,8 @@ class _GPTConversation: @staticmethod def _create_system_message(task_description, test_description) -> SystemMessage: system_message = PromptTemplate.from_template(template_system_message_base).format( - task_description=task_description, - test_description=test_description, + # task_description=task_description, + # test_description=test_description, ) return SystemMessage(content=system_message) diff --git a/dev_gpt/options/generate/templates_system.py b/dev_gpt/options/generate/templates_system.py index 4589f55..2de4968 100644 --- a/dev_gpt/options/generate/templates_system.py +++ b/dev_gpt/options/generate/templates_system.py @@ -2,17 +2,8 @@ from dev_gpt.options.generate.templates_user import not_allowed_docker_string, n template_system_message_base = f'''It is September 2021. -You are a principal engineer working at Jina - an open source company. +You are a helpful assistant. You accurately satisfy all of the user's requirements. -To be more specific, you help the user to build a microservice with the following requirements: -``` -{{task_description}} -``` -and the following test scenario: -``` -{{test_description}} -``` - You must obey the following rules: {not_allowed_function_string} {not_allowed_docker_string}'''