From 97cd9cd98d1a53481307c6a7014b675e1c0321af Mon Sep 17 00:00:00 2001 From: 0aaryan Date: Tue, 12 Dec 2023 15:20:29 +0530 Subject: [PATCH] Fix: Spelling errors in words (quoto -> quote) #521 --- metagpt/actions/debug_error.py | 2 +- metagpt/actions/design_api.py | 4 ++-- metagpt/actions/write_code.py | 2 +- metagpt/actions/write_prd.py | 4 ++-- metagpt/actions/write_test.py | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/metagpt/actions/debug_error.py b/metagpt/actions/debug_error.py index d69a22dba..101cc2025 100644 --- a/metagpt/actions/debug_error.py +++ b/metagpt/actions/debug_error.py @@ -22,7 +22,7 @@ The message is as follows: {context} --- Now you should start rewriting the code: -## file name of the code to rewrite: Write code with triple quoto. Do your best to implement THIS IN ONLY ONE FILE. +## file name of the code to rewrite: Write code with triple quote. Do your best to implement THIS IN ONLY ONE FILE. """ class DebugError(Action): def __init__(self, name="DebugError", context=None, llm=None): diff --git a/metagpt/actions/design_api.py b/metagpt/actions/design_api.py index 75df8b909..fc3be602b 100644 --- a/metagpt/actions/design_api.py +++ b/metagpt/actions/design_api.py @@ -33,7 +33,7 @@ Max Output: 8192 chars or 2048 tokens. Try to use them up. ## Implementation approach: Provide as Plain text. Analyze the difficult points of the requirements, select the appropriate open-source framework. -## Python package name: Provide as Python str with python triple quoto, concise and clear, characters only use a combination of all lowercase and underscores +## Python package name: Provide as Python str with python triple quote, concise and clear, characters only use a combination of all lowercase and underscores ## File list: Provided as Python list[str], the list of ONLY REQUIRED files needed to write the program(LESS IS MORE!). Only need relative paths, comply with PEP8 standards. ALWAYS write a main.py or app.py here @@ -86,7 +86,7 @@ Attention: Use '##' to split sections, not '#', and '## ' SHOULD W ## Implementation approach: Provide as Plain text. Analyze the difficult points of the requirements, select the appropriate open-source framework. -## Python package name: Provide as Python str with python triple quoto, concise and clear, characters only use a combination of all lowercase and underscores +## Python package name: Provide as Python str with python triple quote, concise and clear, characters only use a combination of all lowercase and underscores ## File list: Provided as Python list[str], the list of ONLY REQUIRED files needed to write the program(LESS IS MORE!). Only need relative paths, comply with PEP8 standards. ALWAYS write a main.py or app.py here diff --git a/metagpt/actions/write_code.py b/metagpt/actions/write_code.py index a5dc8e059..a89bce60f 100644 --- a/metagpt/actions/write_code.py +++ b/metagpt/actions/write_code.py @@ -18,7 +18,7 @@ NOTICE Role: You are a professional engineer; the main goal is to write PEP8 compliant, elegant, modular, easy to read and maintain Python 3.9 code (but you can also use other programming language) ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example". -## Code: {filename} Write code with triple quoto, based on the following list and context. +## Code: {filename} Write code with triple quote, based on the following list and context. 1. Do your best to implement THIS ONLY ONE FILE. ONLY USE EXISTING API. IF NO API, IMPLEMENT IT. 2. Requirement: Based on the context, implement one following code file, note to return only in code form, your code will be part of the entire project, so please implement complete, reliable, reusable code snippets 3. Attention1: If there is any setting, ALWAYS SET A DEFAULT VALUE, ALWAYS USE STRONG TYPE AND EXPLICIT VARIABLE. diff --git a/metagpt/actions/write_prd.py b/metagpt/actions/write_prd.py index bd04ca79e..52a99dafc 100644 --- a/metagpt/actions/write_prd.py +++ b/metagpt/actions/write_prd.py @@ -23,7 +23,7 @@ templates = { ## Search Information {search_information} -## mermaid quadrantChart code syntax example. DONT USE QUOTO IN CODE DUE TO INVALID SYNTAX. Replace the with REAL COMPETITOR NAME +## mermaid quadrantChart code syntax example. DONT USE QUOTE IN CODE DUE TO INVALID SYNTAX. Replace the with REAL COMPETITOR NAME ```mermaid quadrantChart title Reach and engagement of campaigns @@ -108,7 +108,7 @@ and only output the json inside this tag, nothing else ## Search Information {search_information} -## mermaid quadrantChart code syntax example. DONT USE QUOTO IN CODE DUE TO INVALID SYNTAX. Replace the with REAL COMPETITOR NAME +## mermaid quadrantChart code syntax example. DONT USE QUOTE IN CODE DUE TO INVALID SYNTAX. Replace the with REAL COMPETITOR NAME ```mermaid quadrantChart title Reach and engagement of campaigns diff --git a/metagpt/actions/write_test.py b/metagpt/actions/write_test.py index 35ff36dc2..e2352b641 100644 --- a/metagpt/actions/write_test.py +++ b/metagpt/actions/write_test.py @@ -26,7 +26,7 @@ Attention: Use '##' to split sections, not '#', and '## ' SHOULD W ``` Note that the code to test is at {source_file_path}, we will put your test code at {workspace}/tests/{test_file_name}, and run your test code from {workspace}, you should correctly import the necessary classes based on these file locations! -## {test_file_name}: Write test code with triple quoto. Do your best to implement THIS ONLY ONE FILE. +## {test_file_name}: Write test code with triple quote. Do your best to implement THIS ONLY ONE FILE. """