25 lines
598 B
Python
25 lines
598 B
Python
from typing import Literal
|
|
|
|
from pydantic_settings import BaseSettings, SettingsConfigDict
|
|
|
|
|
|
class Settings(BaseSettings):
|
|
model_config = SettingsConfigDict(env_file=".env", extra="ignore")
|
|
|
|
llm_provider: Literal["openai", "vllm"] = "openai"
|
|
|
|
chatgpt_api_key: str | None = None
|
|
llm_model: str = "gpt-4o"
|
|
|
|
vllm_base_url: str = "http://haechi:8000/v1"
|
|
vllm_api_key: str | None = None
|
|
vllm_model: str = "haechi"
|
|
|
|
a2a_public_url: str = "http://localhost:8201/"
|
|
|
|
redis_url: str = "redis://127.0.0.1:6379/0"
|
|
session_ttl_seconds: int = 7200
|
|
|
|
|
|
settings = Settings()
|