Skip to content

Commit 0d14e5f

Browse files
marco-csuhaibmujahid
authored andcommitted
Make it clear that functions added as context within the prompt are "static"
The LLM was sometimes confused and thought the functions didn't exist or could be modified
1 parent c08891c commit 0d14e5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bugbug/tools/code_review.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1160,7 +1160,7 @@ def run(self, patch: Patch) -> list[InlineComment] | None:
11601160

11611161
memory.save_context(
11621162
{
1163-
"input": "Attached, you can find some function definitions that are used in the current patch and might be useful to you, by giving more context about the code under analysis. "
1163+
"input": "Attached, you can find some function definitions that are used in the current patch and might be useful to you to have more context about the code under analysis. These functions already exist in the codebase before the patch, and can't be modified. "
11641164
+ function_declaration_text
11651165
},
11661166
{

0 commit comments

Comments
 (0)