File size: 764 Bytes
d5c679f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
975cc83
d5c679f
 
 
975cc83
 
 
 
 
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
26
27
28
29
30
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 = 0.2
    model: str = "llama3-8b-8192"
    log_level: LogLevel = LogLevel.INFO
    segment_time: int = 1500
    max_tokens: int = 375
    system_prompt: str = ("You are a helpful, respectful and honest assistant."
                          "You task will be to summarize video transcripts. "
                          "You will receive them in parts, so don't indicate beggining."
                          "Answer only in russian.")


app_settings = Settings()