mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-16 22:51:24 +00:00
feat: new dbgpts modules (#1910)
Co-authored-by: 途杨 <tuyang.yhj@antgroup.com> Co-authored-by: lhwan <1017484907@qq.com>
This commit is contained in:
22
dbgpt/serve/dbgpts/my/config.py
Normal file
22
dbgpt/serve/dbgpts/my/config.py
Normal file
@@ -0,0 +1,22 @@
|
||||
from dataclasses import dataclass, field
|
||||
from typing import Optional
|
||||
|
||||
from dbgpt.serve.core import BaseServeConfig
|
||||
|
||||
APP_NAME = "dbgpts_my"
|
||||
SERVE_APP_NAME = "dbgpt_serve_dbgpts_my"
|
||||
SERVE_APP_NAME_HUMP = "dbgpt_serve_DbgptsMy"
|
||||
SERVE_CONFIG_KEY_PREFIX = "dbgpt.serve.dbgpts_my."
|
||||
SERVE_SERVICE_COMPONENT_NAME = f"{SERVE_APP_NAME}_service"
|
||||
# Database table name
|
||||
SERVER_APP_TABLE_NAME = SERVE_APP_NAME
|
||||
|
||||
|
||||
@dataclass
|
||||
class ServeConfig(BaseServeConfig):
|
||||
"""Parameters for the serve command"""
|
||||
|
||||
# TODO: add your own parameters here
|
||||
api_keys: Optional[str] = field(
|
||||
default=None, metadata={"help": "API keys for the endpoint, if None, allow all"}
|
||||
)
|
Reference in New Issue
Block a user