Conversation
- At most 6 usages. - Send -1 for `this` argument. - Do not send only some arguments for candidate or sample.
8214e9c to
e3f192b
Compare
koesie10
left a comment
There was a problem hiding this comment.
My main concern with this PR is that we're not using the correct name for the input. In the most recent versions of CodeQL, the MaD input for this is Argument[this], while we would be sending and saving Argument[-1], which would not work.
Perhaps this should be dealt with in the pre-processing on the LLM side rather than in the extension? I believe methods that are being modeled as Argument[-1] will now simply not work when running queries with them.
| const samples = []; | ||
| for ( | ||
| let argumentIndex = 0; | ||
| let argumentIndex = -1; // Start at -1 which means `this` as in `this.method()` |
There was a problem hiding this comment.
Just something we might need to think about in the future (not something we should fix right now, it's also not supported in the editor itself): Do we need to check whether the this argument even exists? For example, a constructor does not have a this argument, and neither do static methods.
There was a problem hiding this comment.
Yeah I also thought about that. It probably fits into the discussion we had about what endpoints to model.
Co-authored-by: Koen Vlaswinkel <koesie10@users.noreply.github.com>
Yeah I agree. My plan was to deal with it in the extension by mapping I can update the PR to send |
Sounds good, I think that's perfect, then the extension doesn't need to care about the implementation details of the LLM. |
|
Made the change and have a PR for turbomodel here: https://github.com/github/turbomodel/pull/44 |
|
Merged https://github.com/github/turbomodel/pull/44 and verified that I got an |
Tweak candidate selection:
thisargument.Checklist
ready-for-doc-reviewlabel there.