-
-
Notifications
You must be signed in to change notification settings - Fork 727
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LLM Integration #5861
base: main
Are you sure you want to change the base?
LLM Integration #5861
Conversation
All contributors have signed the CLA ✍️ ✅ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll have to finish the rest of my review in a bit, but here's some starting bits.
addOns/llm/src/main/java/org/zaproxy/addon/llm/ExtensionLlm.java
Outdated
Show resolved
Hide resolved
addOns/llm/src/main/java/org/zaproxy/addon/llm/ExtensionLlm.java
Outdated
Show resolved
Hide resolved
addOns/llm/src/main/java/org/zaproxy/addon/llm/ExtensionLlm.java
Outdated
Show resolved
Hide resolved
addOns/llm/src/main/java/org/zaproxy/addon/llm/services/LlmCommunicationService.java
Outdated
Show resolved
Hide resolved
addOns/llm/src/main/java/org/zaproxy/addon/llm/services/LlmCommunicationService.java
Outdated
Show resolved
Hide resolved
addOns/llm/src/main/java/org/zaproxy/addon/llm/services/LlmCommunicationService.java
Outdated
Show resolved
Hide resolved
addOns/llm/src/main/java/org/zaproxy/addon/llm/services/LlmCommunicationService.java
Outdated
Show resolved
Hide resolved
addOns/llm/src/main/java/org/zaproxy/addon/llm/services/LlmCommunicationService.java
Outdated
Show resolved
Hide resolved
addOns/llm/src/main/java/org/zaproxy/addon/llm/ExtensionLlm.java
Outdated
Show resolved
Hide resolved
addOns/llm/src/main/java/org/zaproxy/addon/llm/communication/Confidence.java
Show resolved
Hide resolved
addOns/llm/src/main/java/org/zaproxy/addon/llm/services/LlmAssistant.java
Outdated
Show resolved
Hide resolved
addOns/llm/src/main/java/org/zaproxy/addon/llm/services/LlmCommunicationService.java
Outdated
Show resolved
Hide resolved
addOns/llm/src/main/java/org/zaproxy/addon/llm/ui/ImportDialog.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should only have the base help and messages.
There's likely a bunch of places swagger should be replaced with openapi. https://swagger.io/blog/api-strategy/difference-between-swagger-and-openapi/ |
Hi TmmmmmR, I started my review on this, but ended up having a few questions, can I propose we setup a meeting between yourself and the 2 reviewers so that to see a demo of the addon? Thank you, |
Hello @yns000, yes of course ! I'm available on slack under the dev-llm channel, my username is temmar. |
addOns/llm/src/main/java/org/zaproxy/addon/llm/services/LlmAssistant.java
Outdated
Show resolved
Hide resolved
addOns/llm/src/main/java/org/zaproxy/addon/llm/services/LlmAssistant.java
Outdated
Show resolved
Hide resolved
addOns/llm/src/main/java/org/zaproxy/addon/llm/services/LlmCommunicationService.java
Outdated
Show resolved
Hide resolved
addOns/llm/src/main/java/org/zaproxy/addon/llm/ui/ImportDialog.java
Outdated
Show resolved
Hide resolved
addOns/llm/src/main/java/org/zaproxy/addon/llm/ui/ImportDialog.java
Outdated
Show resolved
Hide resolved
addOns/llm/src/main/java/org/zaproxy/addon/llm/ui/settings/LlmOptionsPanel.java
Outdated
Show resolved
Hide resolved
addOns/llm/src/main/java/org/zaproxy/addon/llm/ui/settings/LlmOptionsParam.java
Outdated
Show resolved
Hide resolved
addOns/llm/src/main/java/org/zaproxy/addon/llm/utils/HistoryPersister.java
Outdated
Show resolved
Hide resolved
addOns/llm/src/main/javahelp/org/zaproxy/addon/llm/resources/help/contents/about.html
Outdated
Show resolved
Hide resolved
I have read the CLA Document and I hereby sign the CLA. |
Signed-off-by: Abdessamad TEMMAR <temmar.abdessamad@gmail.com>
Signed-off-by: Abdessamad TEMMAR <temmar.abdessamad@gmail.com>
Signed-off-by: Abdessamad TEMMAR <temmar.abdessamad@gmail.com>
Signed-off-by: Abdessamad TEMMAR <temmar.abdessamad@gmail.com>
Signed-off-by: Abdessamad TEMMAR <temmar.abdessamad@gmail.com>
You'll need to add |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added some comments which should get the help displayed correctly
addOns/llm/src/main/javahelp/org/zaproxy/addon/llm/resources/help/helpset.hs
Outdated
Show resolved
Hide resolved
addOns/llm/src/main/javahelp/org/zaproxy/addon/llm/resources/help/helpset.hs
Outdated
Show resolved
Hide resolved
addOns/llm/src/main/javahelp/org/zaproxy/addon/llm/resources/help/index.xml
Outdated
Show resolved
Hide resolved
addOns/llm/src/main/javahelp/org/zaproxy/addon/llm/resources/help/map.jhm
Outdated
Show resolved
Hide resolved
addOns/llm/src/main/javahelp/org/zaproxy/addon/llm/resources/help/toc.xml
Outdated
Show resolved
Hide resolved
addOns/llm/src/main/javahelp/org/zaproxy/addon/llm/resources/help/contents/about.html
Show resolved
Hide resolved
New Issues (9)Checkmarx found the following issues in this Pull Request
Fixed Issues (9)Great job! The following issues were fixed in this Pull Request
|
You need to add |
Signed-off-by: Abdessamad TEMMAR <temmar.abdessamad@gmail.com>
Sorry I didn't https://github.com/zaproxy/zap-extensions/blob/main/settings.gradle.kts to my commit. |
Thanks, thats how I am building it. I'm still not seeing the GUI changes though :/ Will investigate - it could be a local problem, although other add-ons seem to deploy fine that way |
You can suppress the serialized warning. Just look around the repo you'll find other examples. |
I'm still not able to see and of the PR changes after deploying the add-on, and I've not had a chance to look into that yet. |
addOns/llm/src/main/java/org/zaproxy/addon/llm/ExtensionLlm.java
Outdated
Show resolved
Hide resolved
addOns/llm/src/main/java/org/zaproxy/addon/llm/ExtensionLlm.java
Outdated
Show resolved
Hide resolved
addOns/llm/src/main/java/org/zaproxy/addon/llm/ExtensionLlm.java
Outdated
Show resolved
Hide resolved
addOns/llm/src/main/java/org/zaproxy/addon/llm/ExtensionLlm.java
Outdated
Show resolved
Hide resolved
addOns/llm/src/main/java/org/zaproxy/addon/llm/ui/settings/LlmOptionsPanel.java
Outdated
Show resolved
Hide resolved
addOns/llm/src/main/java/org/zaproxy/addon/llm/ui/settings/LlmOptionsPanel.java
Outdated
Show resolved
Hide resolved
addOns/llm/src/main/java/org/zaproxy/addon/llm/ui/settings/LlmOptionsPanel.java
Outdated
Show resolved
Hide resolved
addOns/llm/src/main/java/org/zaproxy/addon/llm/ui/settings/LlmOptionsPanel.java
Outdated
Show resolved
Hide resolved
addOns/llm/src/main/java/org/zaproxy/addon/llm/utils/Requestor.java
Outdated
Show resolved
Hide resolved
addOns/llm/src/main/java/org/zaproxy/addon/llm/ExtensionLlm.java
Outdated
Show resolved
Hide resolved
I've just tried to save my options for something else and I couldnt - I get a message saying |
Do I need to remove the re-implementation of the |
I cleaned up the GGiven comments, I had done this review the other day when GitHub had an incident and apparently that cause some repeats/duplication 😞 |
It seems the options handler also isn't being unloaded, even after un-installing the add-on it still complains though it can't find the proper resource message :) Had to restart ZAP in order to save options changes. |
That's a side effect of not doing this way #5861 (comment) |
Thank you for all feedbacks, I have updated my PR with the requested edits. |
Overview
This extension integrates LLM with ZAP and includes two main features:
Related Issues
Specify any related issues or pull requests by linking to them.
Checklist
./gradlew spotlessApply
for code formattingFor more details, please refer to the developer rules and guidelines.