summary / settings.py
xsestech's picture
Created app
d5c679f verified
raw
history blame
436 Bytes
import enum
from pydantic_settings import BaseSettings
class LogLevel(str, enum.Enum):
"""Possible log levels."""
NOTSET = "NOTSET"
DEBUG = "DEBUG"
INFO = "INFO"
WARNING = "WARNING"
ERROR = "ERROR"
FATAL = "FATAL"
class Settings(BaseSettings):
temperature: float = 1
model: str = "llama3-8b-8192"
log_level: LogLevel = LogLevel.INFO
segment_time: int = 1500
app_settings = Settings()