-
Notifications
You must be signed in to change notification settings - Fork 75
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
Adds LLM support to obtain the repository URL #386
Conversation
47d60d2
to
d3cdfa6
Compare
LLM providers can be accessed through third party APIs (such as OpenAI), or through the Genrative AI Hub in the SAP AI Core.
4a8e466
to
375158d
Compare
attrs={ | ||
"id": re.compile(r"ref-issue|ref-pullrequest"), | ||
} |
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.
Not sure I understand what this change does, could you explain briefly?
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 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()
.
…backend magic strings to constants
…can be called with this model. This is because only one instantiation of the model is needed throughout the whole runtime of prospector
040fa79
to
0a09951
Compare
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.