/
ksilisk
/
spbtechrun_hack
Обзор
Документация
Войти
/
ksilisk
/
spbtechrun_hack
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
python/backend/config.py
33 строки
997 B
Shaliko Salimov
all prompts moving to the prompts directory and README.me refactoring
02 дек 2025, 21:18
02 дек 2025, 21:18
0511ade
Код
Авторство
О чём код?
from functools import lru_cache from pydantic.v1 import BaseSettings class Settings(BaseSettings): app_name: str = "spb-tech-run-hack" debug: bool = False gigachat_api_key: str = "" gigachat_model: str = "GigaChat-2-Max" rag_persist_directory: str = "/data/chroma_db" rag_collection_name: str = "city_assistant_docs" rag_embedding_model_name: str = "sentence-transformers/all-MiniLM-L6-v2" gigachat_scope: str = "GIGACHAT_API_PERS" gigachat_verify_ssl: bool = False rag_upload_dir: str = "/data/uploads" mcp_server_url: str = "http://localhost:8181/sse" embeddings_cache_folder: str = "/data/embeddings" postgres_user: str = "" postgres_password: str = "" postgres_db: str = "" postgres_host_port: str = "" prompts_path: str = "/app/prompts" class Config: env_file = ".env.production" env_file_encoding = "utf-8" extra = "ignore" @lru_cache def get_settings() -> Settings: return Settings()