You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
consttruncationMessage=`Note: Your response may have been truncated because it exceeded your output limit. You wrote ${actualLineCount} lines of content, but the line_count parameter was either missing or not included in your response.`
40
+
41
+
constnewFileGuidance=
42
+
`This appears to be a new file.\n`+
43
+
`${truncationMessage}\n\n`+
44
+
`RECOMMENDED APPROACH:\n`+
45
+
`1. Try again with the line_count parameter in your response if you forgot to include it\n`+
46
+
`2. Or break your content into smaller chunks - first use write_to_file with the initial chunk\n`+
47
+
`3. Then use insert_content to append additional chunks\n`
48
+
49
+
letexistingFileApproaches=[
50
+
`1. Try again with the line_count parameter in your response if you forgot to include it`,
51
+
]
52
+
53
+
if(diffStrategyEnabled){
54
+
existingFileApproaches.push(`2. Or try using apply_diff instead of write_to_file for targeted changes`)
55
+
}
56
+
57
+
existingFileApproaches.push(
58
+
`${diffStrategyEnabled ? "3" : "2"}. Or use search_and_replace for specific text replacements`,
59
+
`${diffStrategyEnabled ? "4" : "3"}. Or use insert_content to add specific content at particular lines`,
60
+
)
61
+
62
+
constexistingFileGuidance=
63
+
`This appears to be content for an existing file.\n`+
0 commit comments