rubberduck-ai / rubberduck-vscode

Use AI-powered code edits, explanations, code generation, error diagnosis, and chat in Visual Studio Code with the official OpenAI API.
https://marketplace.visualstudio.com/items?itemName=Rubberduck.rubberduck-vscode
MIT License
579 stars 70 forks source link

Add all open workspace files as context for request #108

Closed restlessronin closed 7 months ago

restlessronin commented 7 months ago

To quickly get the code working, I have added all open text files in the workspace to the context that is sent along with the explanation request to the API.

This likely has to be refined before it can be used. But I want to wait on feedback before doing that.

I was unable to run pnpm test successfully even on the main branch. But I did successfully get results from the api.

@all-contributors please add @restlessronin for code

lgrammel commented 7 months ago

This looks great!

lgrammel commented 7 months ago

@allcontributors add @restlessronin for code

allcontributors[bot] commented 7 months ago

@lgrammel

I've put up a pull request to add @restlessronin! :tada:

lgrammel commented 7 months ago

@restlessronin I haven't tested it but looks great. @restlessronin would you be interested in adding gpt-4-1106-preview support as well? I don't have much time for Rubberduck these days and any help is much appreciated. (in fact, I'm looking for someone to take over the project)

restlessronin commented 7 months ago

@lgrammel Sure. I'll be happy to add gpt-4-1106. Now that you've updated modelfusion, it should be straightforward.

I'm happy to pitch in, because I think it's important to have an open source alternative to copilot. I also like the direction you're taking with support for local llms.

lgrammel commented 7 months ago

Great, I've released v1.19 with the new features 🎉