File size: 436 Bytes
d5c679f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
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()
|