Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,10 @@ Follow these steps to set up and run the application on your local machine.
Set your API keys for Google Gemini and OpenAI GPT-4:

```bash
export GENAI_API_KEY='your_genai_api_key'
export OPENAI_API_KEY='your_openai_api_key'
export GROQ_API_KEY='your_groq_api_key'
export APP_SECRET_KEY='your_app_secret_key'
export OPENAI_API_KEY='your_openai_api_key'
export GROQ_API_KEY='your_groq_api_key'
export GOOGLE_API_KEY='your_google_api_key'
```

On Windows Command Prompt:
Expand Down
2 changes: 1 addition & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

# Initialize the Flask application
app = Flask(__name__)
app.secret_key = 'your_secret_key' # Replace with a secure secret key
app.secret_key = os.getenv('APP_SECRET_KEY', 'localgpt') # Replace with a secure secret key

logger = get_logger(__name__)

Expand Down
4 changes: 4 additions & 0 deletions example.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
APP_SECRET_KEY='your_app_secret_key'
OPENAI_API_KEY='your_openai_api_key'
GROQ_API_KEY='your_groq_api_key'
GOOGLE_API_KEY='your_google_api_key'