poc: fixes gpt instruction to return the correct index

This commit is contained in:
ievgenii vdovenko 2025-09-03 16:35:28 +02:00
parent 6dd78aeb22
commit d9e010c65a
2 changed files with 8 additions and 1 deletions

View file

@ -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"