Skip to content
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

Adds LLM support to obtain the repository URL #386

Merged
merged 5 commits into from
Jun 12, 2024

Conversation

lauraschauer
Copy link
Contributor

This adds code to allow users to optionally use LLM support. If they do, it is not necessary to supply the repository URL as an argument to Prospector. Instead, it will automatically be obtained through the chosen LLM provider.

Copy link

cla-assistant bot commented May 31, 2024

CLA assistant check
All committers have signed the CLA.

@lauraschauer lauraschauer force-pushed the lascha-llm-support-for-repo-url branch from 47d60d2 to d3cdfa6 Compare June 4, 2024 09:21
LLM providers can be accessed through third party APIs (such as OpenAI), or through the Genrative AI Hub in the SAP AI Core.
@lauraschauer lauraschauer force-pushed the lascha-llm-support-for-repo-url branch from 4a8e466 to 375158d Compare June 7, 2024 09:56
attrs={
"id": re.compile(r"ref-issue|ref-pullrequest"),
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure I understand what this change does, could you explain briefly?

Copy link
Contributor Author

@lauraschauer lauraschauer Jun 11, 2024

Choose a reason for hiding this comment

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

I did actually make a change here, I added line 142: if content is not None
The reason is that if the request in fetch_url() fails to get the content of a webpage, it logs an error and returns Null. If this isn't checked in this extract_ghissue_references() function, the program crashes when extract_ghissue_references() tries to do content.find_all(), because in this case it would be None.find_all().

…can be called with this model. This is because only one instantiation of the model is needed throughout the whole runtime of prospector
@lauraschauer lauraschauer force-pushed the lascha-llm-support-for-repo-url branch from 040fa79 to 0a09951 Compare June 11, 2024 15:44
@copernico copernico merged commit 6f5ab2b into SAP:main Jun 12, 2024
2 of 3 checks passed
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