help@rskworld.in +91 93305 39277
RSK World
  • Home
  • Development
    • Web Development
    • Mobile Apps
    • Software
    • Games
    • Project
  • Technologies
    • Data Science
    • AI Development
    • Cloud Development
    • Blockchain
    • Cyber Security
    • Dev Tools
    • Testing Tools
  • Blog
  • About
  • Contact

Theme Settings

Color Scheme
Display Options
Font Size
100%
Back to Project
RSK World
openai-gpt-chatbot
RSK World
openai-gpt-chatbot
OpenAI GPT Chatbot - GPT-3 + GPT-4 + ChatGPT + Streaming + Token Tracking + Flask + Python
openai-gpt-chatbot
  • __pycache__
  • static
  • templates
  • .env.example1.9 KB
  • .gitignore566 B
  • DOCUMENTATION.md17.6 KB
  • LICENSE1.2 KB
  • README.md8.9 KB
  • RELEASE_NOTES_v1.0.0.md5.5 KB
  • app.py10.9 KB
  • chatbot.py16.9 KB
  • config.py2.8 KB
  • env_example.txt1.9 KB
  • example_usage.py6.1 KB
  • personas.py5.1 KB
  • requirements.txt202 B
  • setup.py1.1 KB
env_example.txt
env_example.txt
Raw Download
Find: Go to:
# OpenAI GPT Chatbot - Environment Variables Example
# Author: RSK World (https://rskworld.in)
# Email: help@rskworld.in
# Phone: +91 93305 39277
# Year: 2026
#
# INSTRUCTIONS:
# 1. Copy this file and rename it to .env (remove .txt extension)
# 2. Replace 'your_openai_api_key_here' with your actual OpenAI API key
# 3. Get your API key from: https://platform.openai.com/api-keys
# 4. DO NOT commit the .env file to version control (it's in .gitignore)
#
# Example: OPENAI_API_KEY=sk-proj-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

# ============================================
# REQUIRED: OpenAI API Key
# ============================================
# Your OpenAI API Key (REQUIRED)
# Format: sk-proj-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
# Get your API key from: https://platform.openai.com/api-keys
OPENAI_API_KEY=your_openai_api_key_here

# ============================================
# OPTIONAL: Flask Configuration
# ============================================
# Flask secret key for sessions (change in production)
# Generate a secure random key for production use
# You can generate one using: python -c "import secrets; print(secrets.token_hex(32))"
SECRET_KEY=your_secret_key_here_change_in_production

# Flask environment (development/production)
# FLASK_ENV=development

# Flask debug mode (True/False)
# FLASK_DEBUG=True

# ============================================
# OPTIONAL: Server Configuration
# ============================================
# Server host (0.0.0.0 for all interfaces, 127.0.0.1 for localhost only)
# HOST=0.0.0.0

# Server port
# PORT=5000

# ============================================
# OPTIONAL: OpenAI Configuration
# ============================================
# Default model to use (gpt-3.5-turbo, gpt-4, gpt-4-turbo-preview)
# DEFAULT_MODEL=gpt-3.5-turbo

# Default temperature (0.0 to 2.0)
# DEFAULT_TEMPERATURE=0.7

# Default max tokens
# DEFAULT_MAX_TOKENS=500

58 lines•1.9 KB
text

About RSK World

Founded by Molla Samser, with Designer & Tester Rima Khatun, RSK World is your one-stop destination for free programming resources, source code, and development tools.

Founder: Molla Samser
Designer & Tester: Rima Khatun

Development

  • Game Development
  • Web Development
  • Mobile Development
  • AI Development
  • Development Tools

Legal

  • Terms & Conditions
  • Privacy Policy
  • Disclaimer

Contact Info

Nutanhat, Mongolkote
Purba Burdwan, West Bengal
India, 713147

+91 93305 39277

hello@rskworld.in
support@rskworld.in

© 2026 RSK World. All rights reserved.

Content used for educational purposes only. View Disclaimer