mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-21 14:05:17 +02:00
Merge branch 'fixbug/js_comments_error' into 'mgx_ops'
fixbug: js comment error See merge request pub/MetaGPT!93
This commit is contained in:
commit
287a6f4ad5
3 changed files with 17 additions and 2 deletions
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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}
|
||||
...
|
||||
```
|
||||
"""
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue