23 lines
711 B
Python
23 lines
711 B
Python
from functools import lru_cache
|
|
|
|
from pydantic import Field
|
|
from pydantic_settings import BaseSettings, SettingsConfigDict
|
|
|
|
|
|
class Settings(BaseSettings):
|
|
model_config = SettingsConfigDict(env_file=".env", env_file_encoding="utf-8")
|
|
|
|
ollama_base_url: str = "http://localhost:11434"
|
|
ollama_model: str = "qwen3.5:9b"
|
|
uex_base_url: str = "https://api.uexcorp.space/2.0"
|
|
uex_secret_key: str | None = Field(default=None)
|
|
uex_bearer_token: str | None = Field(default=None)
|
|
traderai_user_name: str | None = Field(default=None)
|
|
traderai_memory_path: str = "data/traderai.sqlite3"
|
|
require_write_approval: bool = True
|
|
|
|
|
|
@lru_cache
|
|
def get_settings() -> Settings:
|
|
return Settings()
|