chore: fix typo in config descriptions (#5585)

This commit is contained in:
Bowen Liang 2024-06-25 21:19:56 +08:00 committed by GitHub
parent 45a3ea6fed
commit 87ee3e627f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
8 changed files with 13 additions and 13 deletions

View File

@ -33,7 +33,7 @@ class CodeExecutionSandboxConfig(BaseModel):
Code Execution Sandbox configs Code Execution Sandbox configs
""" """
CODE_EXECUTION_ENDPOINT: str = Field( CODE_EXECUTION_ENDPOINT: str = Field(
description='whether to enable HTTP response compression of gzip', description='endpoint URL of code execution servcie',
default='http://sandbox:8194', default='http://sandbox:8194',
) )

View File

@ -2,7 +2,7 @@ from typing import Any, Optional
from pydantic import BaseModel, Field, NonNegativeInt, PositiveInt, computed_field from pydantic import BaseModel, Field, NonNegativeInt, PositiveInt, computed_field
from configs.middleware.redis_config import RedisConfig from configs.middleware.cache.redis_config import RedisConfig
from configs.middleware.storage.aliyun_oss_storage_config import AliyunOSSStorageConfig from configs.middleware.storage.aliyun_oss_storage_config import AliyunOSSStorageConfig
from configs.middleware.storage.amazon_s3_storage_config import S3StorageConfig from configs.middleware.storage.amazon_s3_storage_config import S3StorageConfig
from configs.middleware.storage.azure_blob_storage_config import AzureBlobStorageConfig from configs.middleware.storage.azure_blob_storage_config import AzureBlobStorageConfig

View File

View File

@ -9,31 +9,31 @@ class AliyunOSSStorageConfig(BaseModel):
""" """
ALIYUN_OSS_BUCKET_NAME: Optional[str] = Field( ALIYUN_OSS_BUCKET_NAME: Optional[str] = Field(
description='Aliyun storage ', description='Aliyun OSS bucket name',
default=None, default=None,
) )
ALIYUN_OSS_ACCESS_KEY: Optional[str] = Field( ALIYUN_OSS_ACCESS_KEY: Optional[str] = Field(
description='Aliyun storage access key', description='Aliyun OSS access key',
default=None, default=None,
) )
ALIYUN_OSS_SECRET_KEY: Optional[str] = Field( ALIYUN_OSS_SECRET_KEY: Optional[str] = Field(
description='Aliyun storage secret key', description='Aliyun OSS secret key',
default=None, default=None,
) )
ALIYUN_OSS_ENDPOINT: Optional[str] = Field( ALIYUN_OSS_ENDPOINT: Optional[str] = Field(
description='Aliyun storage endpoint URL', description='Aliyun OSS endpoint URL',
default=None, default=None,
) )
ALIYUN_OSS_REGION: Optional[str] = Field( ALIYUN_OSS_REGION: Optional[str] = Field(
description='Aliyun storage region', description='Aliyun OSS region',
default=None, default=None,
) )
ALIYUN_OSS_AUTH_VERSION: Optional[str] = Field( ALIYUN_OSS_AUTH_VERSION: Optional[str] = Field(
description='Aliyun storage authentication version', description='Aliyun OSS authentication version',
default=None, default=None,
) )

View File

@ -24,6 +24,6 @@ class AzureBlobStorageConfig(BaseModel):
) )
AZURE_BLOB_ACCOUNT_URL: Optional[str] = Field( AZURE_BLOB_ACCOUNT_URL: Optional[str] = Field(
description='Azure Blob account url', description='Azure Blob account URL',
default=None, default=None,
) )

View File

@ -29,11 +29,11 @@ class MilvusConfig(BaseModel):
) )
MILVUS_SECURE: bool = Field( MILVUS_SECURE: bool = Field(
description='wheter to use SSL connection for Milvus', description='whether to use SSL connection for Milvus',
default=False, default=False,
) )
MILVUS_DATABASE: str = Field( MILVUS_DATABASE: str = Field(
description='Milvus database', description='Milvus database, default to `default`',
default='default', default='default',
) )

View File

@ -14,12 +14,12 @@ class TencentVectorDBConfig(BaseModel):
) )
TENCENT_VECTOR_DB_API_KEY: Optional[str] = Field( TENCENT_VECTOR_DB_API_KEY: Optional[str] = Field(
description='Tencent Vector api key', description='Tencent Vector API key',
default=None, default=None,
) )
TENCENT_VECTOR_DB_TIMEOUT: PositiveInt = Field( TENCENT_VECTOR_DB_TIMEOUT: PositiveInt = Field(
description='Tencent Vector timeout', description='Tencent Vector timeout in seconds',
default=30, default=30,
) )