mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-08 20:39:44 +00:00
feat(core): APP use new SDK component (#1050)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
from abc import ABC, abstractmethod
|
||||
from enum import Enum
|
||||
from typing import TYPE_CHECKING, Optional, Tuple, Union, List
|
||||
from typing import TYPE_CHECKING, List, Optional, Tuple, Union
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from fastchat.conversation import Conversation
|
||||
@@ -124,6 +124,7 @@ def get_conv_template(name: str) -> ConversationAdapter:
|
||||
Conversation: The conversation template.
|
||||
"""
|
||||
from fastchat.conversation import get_conv_template
|
||||
|
||||
from dbgpt.model.adapter.fschat_adapter import FschatConversationAdapter
|
||||
|
||||
conv_template = get_conv_template(name)
|
||||
|
Reference in New Issue
Block a user