pgosar / ChatGDB

Harness the power of ChatGPT inside the GDB or LLDB debugger!
MIT License
901 stars 31 forks source link

Get OpenAI key from environment variable? #4

Open lehenbauer opened 1 year ago

lehenbauer commented 1 year ago

The openai package for Python recognizes an environment variable, OPENAI_API_KEY, and will get the key from that if set. I recommend implementing that.

You might consider using the openai package to handle all the API calls to chatGPT because of the simplification and you'll get the environment variable thing for free.

What's really intriguing is could chatGPT more directly help you figure out the bug by strategizing on a solution.

pgosar commented 1 year ago

Thanks for the suggestions! I'll definitely look into it.