mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-15 05:59:59 +00:00
refactor: Refactor for core SDK (#1092)
This commit is contained in:
@@ -1,9 +1,12 @@
|
||||
from dbgpt.model.cluster.client import DefaultLLMClient
|
||||
try:
|
||||
from dbgpt.model.cluster.client import DefaultLLMClient
|
||||
except ImportError as exc:
|
||||
# logging.warning("Can't import dbgpt.model.DefaultLLMClient")
|
||||
DefaultLLMClient = None
|
||||
|
||||
# from dbgpt.model.utils.chatgpt_utils import OpenAILLMClient
|
||||
from dbgpt.model.proxy.llms.chatgpt import OpenAILLMClient
|
||||
|
||||
__ALL__ = [
|
||||
"DefaultLLMClient",
|
||||
"OpenAILLMClient",
|
||||
]
|
||||
_exports = []
|
||||
if DefaultLLMClient:
|
||||
_exports.append("DefaultLLMClient")
|
||||
|
||||
__ALL__ = _exports
|
||||
|
Reference in New Issue
Block a user