gpt-engineer icon indicating copy to clipboard operation
gpt-engineer copied to clipboard

Add .env support

Open yhyu13 opened this issue 1 year ago • 5 comments

1, Use dotenv to init env variables 2, Support custom openai base URL 3, Tested locally 4, Update readme

yhyu13 avatar Jun 14 '23 13:06 yhyu13

@AntonOsika Let me know if you have any question on this pr

yhyu13 avatar Jun 14 '23 13:06 yhyu13

Used gpt3.5 default to save money (its token price further reduced recently)

yhyu13 avatar Jun 14 '23 13:06 yhyu13

I like the fact that you added the temperature setting btw

patillacode avatar Jun 14 '23 21:06 patillacode

https://github.com/AntonOsika/gpt-engineer/commit/b5ed9ecaf658848f7dd3a6a429e8eb63f2fd5850

Model validation is removed, probably better to just let users figure out which model they want to use

yhyu13 avatar Jun 15 '23 03:06 yhyu13

Repo philosophy:

Minimise the number of lines of code.

Since we only need OPENAI KEY as env variable, I'm not sure what problem it solve to add a dotenv.

You can ofc keep your own .env file if you prefer it!

Please let me know if there is a good reason to add the temperature etc to .env file 🙏

AntonOsika avatar Jun 15 '23 18:06 AntonOsika

Open discussion about this in #135

patillacode avatar Jun 18 '23 01:06 patillacode