Skip to content

Commit ec1a1ab

Browse files
committed
Allow for empty position argument.
1 parent a34a86f commit ec1a1ab

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

aider/tools/insert_block.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class Tool(BaseTool):
3333
"occurrence": {"type": "integer", "default": 1},
3434
"change_id": {"type": "string"},
3535
"dry_run": {"type": "boolean", "default": False},
36-
"position": {"type": "string", "enum": ["top", "bottom"]},
36+
"position": {"type": "string", "enum": ["top", "bottom", ""]},
3737
"auto_indent": {"type": "boolean", "default": True},
3838
"use_regex": {"type": "boolean", "default": False},
3939
},
@@ -69,7 +69,7 @@ def execute(
6969
occurrence: Which occurrence of the pattern to use (1-based, or -1 for last)
7070
change_id: Optional ID for tracking changes
7171
dry_run: If True, only simulate the change
72-
position: Special position like "start_of_file" or "end_of_file"
72+
position: Special position like "top" or "bottom" (mutually exclusive with before_pattern and after_pattern)
7373
auto_indent: If True, automatically adjust indentation of inserted content
7474
use_regex: If True, treat patterns as regular expressions
7575
"""

0 commit comments

Comments
 (0)