legco_ai_assistant/backend/app/core/config.py

21 lines
555 B
Python

from functools import lru_cache
from pathlib import Path
from pydantic_settings import BaseSettings
class Settings(BaseSettings):
llm_base_url: str = "https://openrouter.ai/api/v1"
llm_api_key: str = ""
llm_model_name: str = "qwen/qwen3.5-35b-a3b"
embedding_model: str = "qwen/qwen3-embedding-4b"
embedding_base_url: str = "https://openrouter.ai/api/v1"
chroma_db_path: str = "./chroma_db"
model_config = {"env_file": ".env", "env_file_encoding": "utf-8"}
@lru_cache
def get_settings() -> Settings:
return Settings()