TGlide / codeverter

Convert code to your programming language of choice
https://codeverter.vercel.app
MIT License
150 stars 18 forks source link

Feature Request: Integrate Context Prompt Option for Improved Code Conversion #6

Open blackkspydo opened 1 year ago

blackkspydo commented 1 year ago

Problem Statement

The current implementation of the "codeverter" website does not offer users the ability to provide a context prompt during the code conversion process. Context prompts can be instrumental in guiding the GPT model to produce more accurate and relevant code conversions, especially in cases where the code snippet might be ambiguous or require additional clarification.

Proposed Solution

I propose adding a text input field or dialog box that allows users to provide a context prompt or additional information related to their code snippet. This context prompt should be passed along with the code snippet to the GPT model, which in turn will utilize the provided context to generate more accurate and relevant code conversions.

The context prompt input should be optional, so users who do not require additional context for their code conversion can proceed without providing one.

TGlide commented 1 year ago

While this is a good idea, I worry that this might make the UI feel a bit cluttered. I feel we can do with the #9 feature first, and then co back and see if we need something like this.

EDIT: I thought about this some more, and maybe this might be more necessary than I initially thought. I'll come up with something 😄