Spaces:
Configuration error
Configuration error
File size: 773 Bytes
e46d575 c12625f e46d575 | 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 | from pydantic_settings import BaseSettings, SettingsConfigDict
class Settings(BaseSettings):
model_config = SettingsConfigDict(env_file=".env", extra="ignore")
anthropic_api_key: str = ""
llm_provider: str = "anthropic" # anthropic | ollama
llm_model: str = "claude-sonnet-4-6"
llm_base_url: str = "http://localhost:11434"
llm_max_tokens: int = 512
ollama_num_predict: int = 384
ollama_num_ctx: int = 2048
supabase_url: str
supabase_anon_key: str
supabase_service_role_key: str
allowed_origins: str = "http://localhost:8501"
api_base_url: str = "http://localhost:8000"
@property
def origins_list(self) -> list[str]:
return [o.strip() for o in self.allowed_origins.split(",")]
settings = Settings()
|