Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ZuzooVn committed Sep 22, 2024
1 parent d81487d commit bffbd35
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion api/configs/extra/notion_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class NotionConfig(BaseSettings):
)

NOTION_INTEGRATION_TYPE: Optional[str] = Field(
description="Type of Notion integration."
description="Type of Notion integration."
" Set to 'internal' for internal integrations, or None for public integrations.",
default=None,
)
Expand Down
6 changes: 3 additions & 3 deletions api/configs/extra/sentry_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,19 @@ class SentryConfig(BaseSettings):
"""

SENTRY_DSN: Optional[str] = Field(
description="Sentry Data Source Name (DSN)."
description="Sentry Data Source Name (DSN)."
" This is the unique identifier of your Sentry project, used to send events to the correct project.",
default=None,
)

SENTRY_TRACES_SAMPLE_RATE: NonNegativeFloat = Field(
description="Sample rate for Sentry performance monitoring traces."
description="Sample rate for Sentry performance monitoring traces."
" Value between 0.0 and 1.0, where 1.0 means 100% of traces are sent to Sentry.",
default=1.0,
)

SENTRY_PROFILES_SAMPLE_RATE: NonNegativeFloat = Field(
description="Sample rate for Sentry profiling."
description="Sample rate for Sentry profiling."
" Value between 0.0 and 1.0, where 1.0 means 100% of profiles are sent to Sentry.",
default=1.0,
)
2 changes: 1 addition & 1 deletion api/configs/feature/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ class RagEtlConfig(BaseSettings):
)

KEYWORD_DATA_SOURCE_TYPE: str = Field(
description="Data source type for keyword extraction"
description="Data source type for keyword extraction"
" ('database' or other supported types), default to 'database'",
default="database",
)
Expand Down
6 changes: 3 additions & 3 deletions api/configs/middleware/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

class StorageConfig(BaseSettings):
STORAGE_TYPE: str = Field(
description="Type of storage to use."
description="Type of storage to use."
" Options: 'local', 's3', 'azure-blob', 'aliyun-oss', 'google-storage'. Default is 'local'.",
default="local",
)
Expand All @@ -44,15 +44,15 @@ class StorageConfig(BaseSettings):

class VectorStoreConfig(BaseSettings):
VECTOR_STORE: Optional[str] = Field(
description="Type of vector store to use for efficient similarity search."
description="Type of vector store to use for efficient similarity search."
" Set to None if not using a vector store.",
default=None,
)


class KeywordStoreConfig(BaseSettings):
KEYWORD_STORE: str = Field(
description="Method for keyword extraction and storage."
description="Method for keyword extraction and storage."
" Default is 'jieba', a Chinese text segmentation library.",
default="jieba",
)
Expand Down
4 changes: 2 additions & 2 deletions api/configs/middleware/vdb/analyticdb_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class AnalyticdbConfig(BaseModel):
)
ANALYTICDB_ACCOUNT: Optional[str] = Field(
default=None,
description="The account name used to log in to the AnalyticDB instance"
description="The account name used to log in to the AnalyticDB instance"
" (usually the initial account created with the instance).",
)
ANALYTICDB_PASSWORD: Optional[str] = Field(
Expand All @@ -37,6 +37,6 @@ class AnalyticdbConfig(BaseModel):
)
ANALYTICDB_NAMESPACE_PASSWORD: Optional[str] = Field(
default=None,
description="The password for accessing the specified namespace within the AnalyticDB instance"
description="The password for accessing the specified namespace within the AnalyticDB instance"
" (if namespace feature is enabled).",
)

0 comments on commit bffbd35

Please sign in to comment.