mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-14 13:40:54 +00:00
feat(core): Support multi round conversation operator (#986)
This commit is contained in:
23
dbgpt/serve/conversation/config.py
Normal file
23
dbgpt/serve/conversation/config.py
Normal file
@@ -0,0 +1,23 @@
|
||||
from typing import Optional
|
||||
from dataclasses import dataclass, field
|
||||
|
||||
from dbgpt.serve.core import BaseServeConfig
|
||||
|
||||
|
||||
APP_NAME = "conversation"
|
||||
SERVE_APP_NAME = "dbgpt_serve_conversation"
|
||||
SERVE_APP_NAME_HUMP = "dbgpt_serve_Conversation"
|
||||
SERVE_CONFIG_KEY_PREFIX = "dbgpt.serve.conversation."
|
||||
SERVE_SERVICE_COMPONENT_NAME = f"{SERVE_APP_NAME}_service"
|
||||
# Database table name
|
||||
SERVER_APP_TABLE_NAME = "dbgpt_serve_conversation"
|
||||
|
||||
|
||||
@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