poc: fixes gpt instruction to return the correct index
This commit is contained in:
parent
6dd78aeb22
commit
d9e010c65a
2 changed files with 8 additions and 1 deletions
|
|
@ -85,7 +85,7 @@ class AIServiceBase:
|
|||
+ ("\n\nADDITIONAL CUSTOM INSTRUCTIONS:\n" + custom_instructions if custom_instructions else "")
|
||||
+ "\n\nIMPORTANT OUTPUT RULES:\n"
|
||||
"- Use the function call to return `return_code_review`: a list of tuples "
|
||||
" [line_number:int (1-based, GLOBAL), line_text:str, suggestion:str].\n"
|
||||
" [line_number:int (1-based, exactly same index as it was in the request per file), line_text:str, suggestion:str].\n"
|
||||
"- Only include tuples for lines with a concrete, actionable suggestion.\n"
|
||||
"- Keep suggestions concise and specific.\n"
|
||||
"- If many lines share the same issue, include a representative subset and list other line numbers.\n"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue