Skip to content

Commit

Permalink
fix: enable section response generation
Browse files Browse the repository at this point in the history
Uncommented the code responsible for generating technical, impact, and remediation sections in the LLMVulnerabilityReportGenerator class.
  • Loading branch information
psyray committed Nov 12, 2024
1 parent e7e56c1 commit 5390b37
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions web/reNgine/llm/llm.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@ def get_vulnerability_report(self, description: str, model_name: str = None) ->
context = vulnerability_prompt['context']

# Generate each section separately
#technical = self._get_section_response(validated_input, context + vulnerability_prompt['technical'])
#impact = self._get_section_response(validated_input, context + vulnerability_prompt['impact'])
#remediation = self._get_section_response(validated_input, context + vulnerability_prompt['remediation'])
technical = self._get_section_response(validated_input, context + vulnerability_prompt['technical'])

Check warning

Code scanning / CodeQL

Variable defined multiple times Warning

This assignment to 'technical' is unnecessary as it is
redefined
before this value is used.
impact = self._get_section_response(validated_input, context + vulnerability_prompt['impact'])

Check warning

Code scanning / CodeQL

Variable defined multiple times Warning

This assignment to 'impact' is unnecessary as it is
redefined
before this value is used.
remediation = self._get_section_response(validated_input, context + vulnerability_prompt['remediation'])

Check warning

Code scanning / CodeQL

Variable defined multiple times Warning

This assignment to 'remediation' is unnecessary as it is
redefined
before this value is used.
technical = ""
impact = ""
remediation = ""
Expand Down

0 comments on commit 5390b37

Please sign in to comment.