fix: review

This commit is contained in:
Joschka Braun
2023-04-18 16:04:58 +02:00
parent a4d3a9f869
commit f6ed24e738
4 changed files with 12 additions and 8 deletions

View File

@@ -7,7 +7,7 @@ from src.apis.jina_cloud import process_error_message, push_executor
from src.constants import FILE_AND_TAG_PAIRS, NUM_IMPLEMENTATION_STRATEGIES, MAX_DEBUGGING_ITERATIONS, \
PROBLEMATIC_PACKAGES, EXECUTOR_FILE_NAME, EXECUTOR_FILE_TAG, TEST_EXECUTOR_FILE_NAME, TEST_EXECUTOR_FILE_TAG, \
REQUIREMENTS_FILE_NAME, REQUIREMENTS_FILE_TAG, DOCKER_FILE_NAME, DOCKER_FILE_TAG
from src.options.generate.templates import template_generate_microservice_name, template_generate_possible_packages, \
from src.options.generate.templates_user import template_generate_microservice_name, template_generate_possible_packages, \
template_solve_code_issue, \
template_solve_dependency_issue, template_is_dependency_issue, template_generate_playground, \
template_generate_executor, template_generate_test, template_generate_requirements, template_generate_dockerfile, \

View File

@@ -1,5 +1,5 @@
from src.constants import FLOW_URL_PLACEHOLDER
from src.options.generate.templates import not_allowed_docker_string, not_allowed_executor_string
from src.options.generate.templates_user import not_allowed_docker_string, not_allowed_executor_string
executor_example = '''Using the Jina framework, users can define executors.
Here is an example of how an executor can be defined. It always starts with a comment:
@@ -72,16 +72,18 @@ print(response[0].text)
```'''
system_message_base = '''It is the year 2021.
template_system_message_base = f'''It is the year 2021.
You are a principal engineer working at Jina - an open source company.
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}
{{task_description}}
```
and the following test scenario:
```
{test_description}
{{test_description}}
```
You must obey the following rules:''' + f'\n{not_allowed_executor_string}\n{not_allowed_docker_string}'
You must obey the following rules:
{not_allowed_executor_string}
{not_allowed_docker_string}'''