refactor: better template for instruction generation

deploy/dev
stream 7 months ago
parent 4f4473e3d0
commit ed27b67422

@ -410,10 +410,7 @@ Both your input and output should be in JSON format.
Your output must strictly follow the schema format, do not output any content outside of the JSON body.
""" # noqa: E501
INSTRUCTION_GENERATE_TEMPLATE_PROMPT = """
The output of this prompt is not as expected. You should edit the prompt according to the IDEAL OUTPUT.
"""
INSTRUCTION_GENERATE_TEMPLATE_PROMPT = """The output of this prompt is not as expected: {{#last_run#}}.
You should edit the prompt according to the IDEAL OUTPUT."""
INSTRUCTION_GENERATE_TEMPLATE_CODE = """
Please fix the errors in the error message.
"""
INSTRUCTION_GENERATE_TEMPLATE_CODE = """Please fix the errors in the {{#error_message#}}."""

Loading…
Cancel
Save