xtekky / chatgpt-clone

ChatGPT interface with better UI
https://g4f.ai
GNU General Public License v3.0
3.44k stars 1.03k forks source link

open_api_key Error #66

Closed hamidjalili59 closed 1 year ago

hamidjalili59 commented 1 year ago

I get this error when I try to run the program self.openai_key = os.environ["OPENAI_API_KEY"] or config['openai_key'] Untitled

MrZname commented 1 year ago

you shold make this commands before script run SET OPENAI_API_KEY=your key SET OPENAI_API_BASE=https://api.openai.com