Skip to main content
Version: dev

ServiceWebParameters Configuration

ServiceWebParameters(host: str = '0.0.0.0', port: int = 5670, light: Optional[bool] = False, controller_addr: Optional[str] = None, database: dbgpt.datasource.parameter.BaseDatasourceParameters = <factory>, model_storage: Optional[str] = None, trace: Optional[dbgpt.util.tracer.tracer_impl.TracerParameters] = None, log: Optional[dbgpt.util.utils.LoggingParameters] = None, disable_alembic_upgrade: Optional[bool] = False, db_ssl_verify: Optional[bool] = False, default_thread_pool_size: Optional[int] = None, remote_embedding: Optional[bool] = False, remote_rerank: Optional[bool] = False, awel_dirs: Optional[str] = None, new_web_ui: bool = True, model_cache: dbgpt.storage.cache.manager.ModelCacheParameters = <factory>, embedding_model_max_seq_len: Optional[int] = 512)

Parameters

NameTypeRequiredDescription
portinteger
Webserver deploy port, default is 5670
Defaults:5670
lightboolean
Run Webserver in light mode
Defaults:False
controller_addrstring
The Model controller address to connect. If None, read model controller address from environment key `MODEL_SERVER`.
databaseBaseDatasourceParameters (rdbmsdatasourceparameters configuration, sqlite configuration, tugraph configuration, spark configuration, clickhouse configuration, doris configuration, duckdb configuration, hive configuration, mssql configuration, mysql configuration, oceanbase configuration, postgresql configuration, starrocks configuration, vertica configuration)
Database connection config, now support SQLite, OceanBase and MySQL
Defaults:SQLiteConnectorParameters
model_storagestring
The storage type of model configures, if None, use the default storage(current database). When you run in light mode, it will not use any storage.
Valid values:database, memory
traceTracerParameters (tracerparameters configuration)
Tracer config for web server, if None, use global tracer config
logLoggingParameters (loggingparameters configuration)
Logging configuration for web server, if None, use global config
disable_alembic_upgradeboolean
Whether to disable alembic to initialize and upgrade database metadata
Defaults:False
db_ssl_verifyboolean
Whether to verify the SSL certificate of the database
Defaults:False
default_thread_pool_sizeinteger
The default thread pool size, If None, use default config of python thread pool
remote_embeddingboolean
Whether to enable remote embedding models. If it is True, you need to start a embedding model through `dbgpt start worker --worker_type text2vec --model_name xxx --model_path xxx`
Defaults:False
remote_rerankboolean
Whether to enable remote rerank models. If it is True, you need to start a rerank model through `dbgpt start worker --worker_type text2vec --rerank --model_name xxx --model_path xxx`
Defaults:False
awel_dirsstring
The directories to search awel files, split by `,`
new_web_uiboolean
Whether to use the new web UI, default is True
Defaults:True
model_cacheModelCacheParameters (modelcacheparameters configuration)
Model cache configuration
Defaults:ModelCacheParameters
embedding_model_max_seq_leninteger
The max sequence length of the embedding model, default is 512
Defaults:512
hoststring
Webserver deploy host
Defaults:0.0.0.0