|
|
@@ -11,9 +11,7 @@ class LongArticlesSearchAgentConfig(BaseSettings):
|
|
|
|
|
|
# ============ 应用基础配置 ============
|
|
|
app_name: str = Field(default="LongArticleSearchAgent", description="应用名称")
|
|
|
- environment: str = Field(
|
|
|
- default="development", description="运行环境: development/pre/production"
|
|
|
- )
|
|
|
+ environment: str = Field(default="development", description="运行环境: development/pre/production")
|
|
|
debug: bool = Field(default=False, description="调试模式")
|
|
|
|
|
|
# ============ 数据库配置 ============
|
|
|
@@ -26,6 +24,4 @@ class LongArticlesSearchAgentConfig(BaseSettings):
|
|
|
# elasticsearch: ElasticsearchConfig = Field(default_factory=ElasticsearchConfig)
|
|
|
# apollo: ApolloConfig = Field(default_factory=ApolloConfig)
|
|
|
|
|
|
- model_config = SettingsConfigDict(
|
|
|
- env_file=".env", env_file_encoding="utf-8", case_sensitive=False, extra="ignore"
|
|
|
- )
|
|
|
+ model_config = SettingsConfigDict(env_file=".env", env_file_encoding="utf-8", case_sensitive=False, extra="ignore")
|