developer icon indicating copy to clipboard operation
developer copied to clipboard

Use variables in prompts

Open mxn2020 opened this issue 1 year ago • 1 comments

Just started to look at this project today and very excited about it as I am working on multiple AI projects myself.

Just a suggestions, not sure where to put it as I am quite new to using Github:

In the prompt You can acctually use variables and GPT understands how to use them.

generate_file uses prompt and filename multiple times.

You can start the prompt with:

PROMPT="....." FILENAME="...."

and then just use PROMPT and FILENAME within the prompt text.

mxn2020 avatar May 25 '23 17:05 mxn2020

thank you for checking us out!

i'm not entirely sure how to do what you are saying and if it will provide value. if you can figure out how to send in a PR with your suggested changes, please do.

swyxio avatar May 30 '23 01:05 swyxio