mirror of
https://github.com/ferdzo/iotDashboard.git
synced 2026-04-05 09:06:26 +00:00
Removed unused files, updated templates, added gpt service and small fixes on Django
This commit is contained in:
13
services/gpt_service/config.py
Normal file
13
services/gpt_service/config.py
Normal file
@@ -0,0 +1,13 @@
|
||||
import os
|
||||
from dotenv import load_dotenv
|
||||
|
||||
load_dotenv()
|
||||
|
||||
class Config:
|
||||
"""Configuration settings for the GPT Service."""
|
||||
|
||||
API_KEY = os.getenv("API_KEY")
|
||||
PROVIDER_NAME = os.getenv("PROVIDER_NAME", "openai")
|
||||
MODEL_NAME = os.getenv("MODEL_NAME", "gpt-4")
|
||||
HOST_URL = os.getenv("HOST_URL")
|
||||
LOG_LEVEL = os.getenv("LOG_LEVEL", "INFO")
|
||||
Reference in New Issue
Block a user