Defer litellm import until first chat message; only import streamlit if gui is activated

This commit is contained in:
Paul Gauthier 2024-07-03 13:04:13 -03:00
parent ee203deef0
commit 2fc358a02f
2 changed files with 25 additions and 22 deletions

View file

@ -8,7 +8,6 @@ import git
import httpx
from dotenv import load_dotenv
from prompt_toolkit.enums import EditingMode
from streamlit.web import cli
from aider import __version__, models, utils
from aider.args import get_parser
@ -150,6 +149,8 @@ def scrub_sensitive_info(args, text):
def launch_gui(args):
from streamlit.web import cli
from aider import gui
print()