mirror of
https://github.com/bentoml/OpenLLM.git
synced 2026-03-04 23:26:16 -05:00
chore(cli): move playground to CLI components (#655)
Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com>
This commit is contained in:
@@ -15,12 +15,10 @@ import pathlib as _pathlib
|
||||
import warnings as _warnings
|
||||
|
||||
import openllm_cli as _cli
|
||||
|
||||
from openllm_cli import _sdk
|
||||
|
||||
from . import utils as utils
|
||||
|
||||
|
||||
if utils.DEBUG:
|
||||
utils.set_debug_mode(True)
|
||||
utils.set_quiet_mode(False)
|
||||
@@ -51,7 +49,6 @@ __lazy = utils.LazyModule(
|
||||
'exceptions': [],
|
||||
'client': ['HTTPClient', 'AsyncHTTPClient'],
|
||||
'bundle': [],
|
||||
'playground': [],
|
||||
'testing': [],
|
||||
'protocol': [],
|
||||
'utils': [],
|
||||
|
||||
@@ -38,7 +38,6 @@ from . import (
|
||||
bundle as bundle,
|
||||
client as client,
|
||||
exceptions as exceptions,
|
||||
playground as playground,
|
||||
serialisation as serialisation,
|
||||
testing as testing,
|
||||
utils as utils,
|
||||
|
||||
@@ -13,8 +13,7 @@ import jupytext
|
||||
import nbformat
|
||||
import yaml
|
||||
|
||||
from openllm import playground
|
||||
from openllm_cli import termui
|
||||
from openllm_cli import playground, termui
|
||||
from openllm_core.utils import is_jupyter_available, is_jupytext_available, is_notebook_available
|
||||
|
||||
if t.TYPE_CHECKING:
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
from __future__ import annotations
|
||||
import argparse
|
||||
import asyncio
|
||||
import logging
|
||||
import typing as t
|
||||
|
||||
import asyncio
|
||||
import openllm
|
||||
|
||||
openllm.utils.configure_logging()
|
||||
Reference in New Issue
Block a user