feat(core): APP use new SDK component (#1050)

This commit is contained in:
Fangyin Cheng
2024-01-10 10:39:04 +08:00
committed by GitHub
parent e11b72c724
commit fa8b5b190c
242 changed files with 2768 additions and 2163 deletions

View File

@@ -1,8 +1,7 @@
from typing import Dict
from dbgpt.app.scene import BaseChat, ChatScene
from dbgpt._private.config import Config
from dbgpt.app.scene import BaseChat, ChatScene
from dbgpt.util.tracer import trace
CFG = Config()
@@ -11,6 +10,8 @@ CFG = Config()
class ChatNormal(BaseChat):
chat_scene: str = ChatScene.ChatNormal.value()
keep_end_rounds: int = 10
"""Number of results to return from the query"""
def __init__(self, chat_param: Dict):