carlrobertoh / CodeGPT

The leading open-source AI copilot for JetBrains. Connect to any model in any environment, and customize your coding experience in any way you like.
https://codegpt.ee
Apache License 2.0
1.05k stars 221 forks source link

Feature Request: Custom context editor #139

Open GiGurra opened 1 year ago

GiGurra commented 1 year ago

If possible, i'd like a context/attachment editor so that we can compose more advanced code context, and not just the current selection.

For example, an attachment list in the chat window, where you can attach multiple selections and code snippets.

Usage: select part of the code (file, or text), click "add to context"

I'm aware of the obvious cost impact but you can always add a warning before using the function, as it is easy to reach large attachment amounts or the gpt context window limit.

If this becomes reality, we can later also discuss more intelligent automatic context building :)

Do you have any discord or similar? Maybe you could delegate some work if you feel like it's becoming too much for you alone

carlrobertoh commented 1 year ago

The timing would be perfect now because OpenAI has just released their new GPT-3.5 16k context model, which should be ideal for scenarios like these.

However, I am not sure when I will find the time for it, as I am planning on adding premium features that involve integrating LangChain into the extension.

Nevertheless, I am interested in working together. You can reach me at linnupuucarl@gmail.com and we can discuss this further.

tvl83 commented 1 year ago

I really like this idea. I like how aichat implemented it in their program. they have a yaml file where you can define 'roles' which is then reflected in the prompt. something similar would be great!