kardolus / chatgpt-cli

ChatGPT CLI is an advanced command-line interface for ChatGPT models via OpenAI and Azure, offering streaming, query mode, and history tracking for seamless, context-aware conversations. Ideal for both users and developers, it provides advanced configuration and easy setup options to ensure a tailored conversational experience with the GPT model.
MIT License
404 stars 28 forks source link

OPENAI KEY #24

Closed TimeToCrack closed 5 months ago

TimeToCrack commented 5 months ago

so i just installed this that ms copilot told me to do so i can have chatgpt and it says: missing environment variable: OPENAI_API_KEY how am i gonna solve this?

kardolus commented 5 months ago

Hi there. Thanks for installing!

You'll need an API key --> https://platform.openai.com/account/api-keys

You'll also need to setup your environment:

export OPENAI_API_KEY="your_api_key"
kardolus commented 5 months ago

@TimeToCrack closing this issue. Please re-open if you still have issues using the cli.