Skip to content

Commit 08e73ea

Browse files
committed
Update write_file description
Removes the hint to end the turn after write_file. Some models seem to be confused by this and stop the session. (?)
1 parent d338ca8 commit 08e73ea

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

crates/code_assistant/src/tools/impls/write_file.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,7 @@ impl Tool for WriteFileTool {
8282
"Creates or overwrites a file. Use for new files or when updating most content of a file.\n",
8383
"For smaller updates, prefer to use edit or replace_in_file.\n",
8484
"ALWAYS provide the contents of the COMPLETE file, especially when overwriting existing files!!\n",
85-
"If the file to write is large, write it in chunks making use of the 'append' parameter.\n",
86-
"Always end your turn after using this tool, especially when using 'append'.\n",
87-
"This avoids hitting an output token limit when replying."
85+
"If the file to write is large, write it in chunks making use of the 'append' parameter."
8886
);
8987
ToolSpec {
9088
name: "write_file",

0 commit comments

Comments
 (0)