import http
from typing import Optional
from pydantic_settings import BaseSettings, SettingsConfigDict

class Settings(BaseSettings):
    app_name: str = "ARC Backend"
    app_env: str = "dev"
    app_host: str = "0.0.0.0"
    app_port: int = 8000

    qdrant_url: str = "http://localhost:6333"
    qdrant_collection: str = "arc_projects"

    redis_url: str = "redis://localhost:6379/0"

    llm_base_url: str
    llm_api_key: str
    llm_model: str
    llm_model_dev: str
    llm_model_qa: str
    
    embedding_base_url: str = "http://localhost:8002/v1"
    embedding_model: str = "snowflake-arctic-embed-m-v1.5"
    
    gitea_base_url: str
    gitea_api_url: str
    gitea_admin_user: str
    gitea_admin_password: str
    gitea_token: Optional[str] = None

    model_config = SettingsConfigDict(
        env_file=".env", 
        env_file_encoding="utf-8",
        case_sensitive=False,
        extra="ignore"
    )


settings = Settings()