feat: Optimize code import time

This commit is contained in:
FangYin Cheng
2023-09-01 10:40:18 +08:00
parent 0bc5134a07
commit f19551a7cd
83 changed files with 244 additions and 394 deletions

View File

@@ -7,7 +7,6 @@ from typing import Dict
from pilot.commands.exception_not_commands import NotCommands
from pilot.configs.config import Config
from pilot.prompts.generator import PluginPromptGenerator
from pilot.speech import say_text
def _resolve_pathlike_command_args(command_args):
@@ -37,6 +36,8 @@ def execute_ai_response_json(
Returns:
"""
from pilot.speech.say import say_text
cfg = Config()
command_name, arguments = get_command(ai_response)