chore(cli): move playground to CLI components (#655)

Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com>
This commit is contained in:
Aaron Pham
2023-11-14 23:20:50 -05:00
committed by GitHub
parent cbdcfc87a2
commit 103156cd71
13 changed files with 70 additions and 82 deletions

View File

@@ -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': [],

View File

@@ -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,

View File

@@ -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:

View File

@@ -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()