Skip to content

fix: adding llm - #231

Open
afham123 wants to merge 11 commits into
americanexpress:mainfrom
afham123:feat/llm
Open

fix: adding llm#231
afham123 wants to merge 11 commits into
americanexpress:mainfrom
afham123:feat/llm

Conversation

@afham123

Copy link
Copy Markdown
Contributor

Adding and updating the code to add LLM models in the code for cross validation.

@grinish21
grinish21 requested a review from stevologic May 29, 2026 16:22
Comment thread pkg/scan/llm_Scan.go Outdated
Messages: []llmMessage{
{
Role: "system",
Content: "You review source code for likely hard-coded credentials or secrets. Return JSON only with the top-level field findings. Each finding must contain line, credential_type, confidence, candidate, and reason. Confidence must be one of low, medium, or high. Ignore placeholders, obvious examples, comments describing documentation samples, and non-secret identifiers.",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this be a config rather than a hardcoded line. So if we need to tune the prompt its just a config change than a code change.

@afham123 afham123 Jun 2, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure Grinish, added the prompt from the config.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants