mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-10-22 09:28:42 +00:00
26 lines
780 B
Python
26 lines
780 B
Python
from dataclasses import dataclass, field
|
|
from typing import Optional
|
|
|
|
from dbgpt.serve.core import BaseServeConfig
|
|
|
|
APP_NAME = "flow"
|
|
SERVE_APP_NAME = "dbgpt_serve_flow"
|
|
SERVE_APP_NAME_HUMP = "dbgpt_serve_Flow"
|
|
SERVE_CONFIG_KEY_PREFIX = "dbgpt.serve.flow."
|
|
SERVE_SERVICE_COMPONENT_NAME = f"{SERVE_APP_NAME}_service"
|
|
# Database table name
|
|
SERVER_APP_TABLE_NAME = "dbgpt_serve_flow"
|
|
|
|
|
|
@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"}
|
|
)
|
|
load_dbgpts_interval: int = field(
|
|
default=5, metadata={"help": "Interval to load dbgpts from installed packages"}
|
|
)
|