File size: 563 Bytes
6d2b0f9
aa24f09
6d2b0f9
 
 
aa24f09
 
 
6d2b0f9
 
aa24f09
 
 
 
 
6d2b0f9
aa24f09
6d2b0f9
 
aa24f09
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
from pydantic_settings import BaseSettings
from typing import List


class Settings(BaseSettings):
    gemini_api_key: str = ""
    gemini_model: str = "gemini-3-flash-preview"
    whisper_model: str = "openai/whisper-small"
    environment: str = "development"
    max_audio_duration_seconds: int = 120
    allowed_origins: str = "http://localhost:3000"

    @property
    def cors_origins(self) -> List[str]:
        return [o.strip() for o in self.allowed_origins.split(",")]

    model_config = {"env_file": ".env", "extra": "ignore"}


settings = Settings()