mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-04 21:32:38 +02:00
fix typo
This commit is contained in:
parent
d6adc24635
commit
3ee4bf94a8
2 changed files with 1 additions and 2 deletions
|
|
@ -992,7 +992,6 @@ the previous file look like:
|
|||
032| self.location = (0,0)
|
||||
I only need to add a few lines to the file, so I will use Editor.insert_content_at_line. The new code will not cover the original code.
|
||||
Note that the Editor command must be executed in a single response, so this step will only involve using the Editor command.
|
||||
|
||||
```json
|
||||
[
|
||||
{
|
||||
|
|
|
|||
|
|
@ -871,7 +871,7 @@ class Editor(BaseModel):
|
|||
return ret_str
|
||||
|
||||
def insert_content_at_line(self, file_name: str, line_number: int, insert_content: str) -> str:
|
||||
"""Insert a complete block of code before the given line number in a file That is, the new content will start at the beginning of the specified line, and the existing content of that line will be moved down.
|
||||
"""Insert a complete block of code before the given line number in a file. That is, the new content will start at the beginning of the specified line, and the existing content of that line will be moved down.
|
||||
This operation will NOT modify the content of the lines before or after the given line number.
|
||||
This function can not insert content the end of the file. Please use append_file instead,
|
||||
For example, if the file has the following content:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue