This commit is contained in:
2026-09-27 00:41:00 +08:00
parent e87cb869ba
commit 2d4f9230b1
119 changed files with 28773 additions and 28616 deletions
+25 -25
View File
@@ -1,25 +1,25 @@
from pathlib import Path
from pydantic_settings import BaseSettings
_PROJECT_ROOT = Path(__file__).resolve().parent.parent.parent
class Settings(BaseSettings):
llm_api_key: str = ""
llm_base_url: str = "https://api.openai.com/v1"
llm_model: str = "gpt-4o-mini"
database_dir: str = str(_PROJECT_ROOT / "data")
host: str = "0.0.0.0"
port: int = 8000
max_concurrent_llm_calls: int = 10
search_enabled: bool = True
max_searches_per_round: int = 5
model_config = {
"env_file": [".env", str(_PROJECT_ROOT / ".env")],
"env_file_encoding": "utf-8",
}
settings = Settings()
from pathlib import Path
from pydantic_settings import BaseSettings
_PROJECT_ROOT = Path(__file__).resolve().parent.parent.parent
class Settings(BaseSettings):
llm_api_key: str = ""
llm_base_url: str = "https://api.openai.com/v1"
llm_model: str = "gpt-4o-mini"
database_dir: str = str(_PROJECT_ROOT / "data")
host: str = "0.0.0.0"
port: int = 8000
max_concurrent_llm_calls: int = 10
search_enabled: bool = True
max_searches_per_round: int = 5
model_config = {
"env_file": [".env", str(_PROJECT_ROOT / ".env")],
"env_file_encoding": "utf-8",
}
settings = Settings()