18 lines
471 B
Python
18 lines
471 B
Python
from pydantic_settings import BaseSettings
|
|
|
|
|
|
class Settings(BaseSettings):
|
|
database_url: str = "postgresql+asyncpg://ai_news:PrDTEr6tGcyWX6G2@chenwuzhu.cn:5432/ai_news"
|
|
admin_token: str = "change-me-admin-token"
|
|
|
|
initial_llm_provider: str = "deepseek"
|
|
initial_llm_api_key: str = ""
|
|
initial_llm_base_url: str = "https://api.deepseek.com"
|
|
initial_llm_model: str = "deepseek-chat"
|
|
|
|
class Config:
|
|
env_file = ".env"
|
|
|
|
|
|
settings = Settings()
|