| 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', | ||||
| ) | ) | ||||
| 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 |
| """ | """ | ||||
| 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, | ||||
| ) | ) |
| ) | ) | ||||
| 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, | ||||
| ) | ) |
| ) | ) | ||||
| 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', | ||||
| ) | ) |
| ) | ) | ||||
| 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, | ||||
| ) | ) | ||||