Merge branch 'fixbug/js_comments_error' into 'mgx_ops'

fixbug: js comment error

See merge request pub/MetaGPT!93
This commit is contained in:
林义章 2024-05-08 13:50:18 +00:00
commit 287a6f4ad5
3 changed files with 17 additions and 2 deletions

View file

@ -66,6 +66,11 @@ ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenc
## {filename}
...
```
## Code: {filename}
```javascript
// {filename}
...
```
# Instruction: Based on the context, follow "Format example", write code.

View file

@ -184,6 +184,11 @@ Role: You are a professional engineer; The main goal is to complete incremental
## {filename}
...
```
## Code: {filename}
```javascript
// {filename}
...
```
# Instruction: Based on the context, follow "Format example", write or rewrite code.
## Write/Rewrite Code: Only write one file {filename}, write or rewrite complete code using triple quotes based on the following attentions and context.

View file

@ -110,11 +110,16 @@ LGTM
REWRITE_CODE_TEMPLATE = """
# Instruction: rewrite code based on the Code Review and Actions
## Rewrite Code: CodeBlock. If it still has some bugs, rewrite {filename} with triple quotes. Do your utmost to optimize THIS SINGLE FILE. Return all completed codes and prohibit the return of unfinished codes.
```Code
## Rewrite Code: CodeBlock. If it still has some bugs, rewrite {filename} using a Markdown code block, with the filename docstring preceding the code block. Do your utmost to optimize THIS SINGLE FILE. Return all completed codes and prohibit the return of unfinished codes.
```python
## {filename}
...
```
or
```javascript
// {filename}
...
```
"""