diff --git a/pyproject.toml b/pyproject.toml index f0368b1..8bdaa7c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "terminalgpt" -version = "1.0.5" +version = "1.0.6" description = "AI chat asistent in your terminal powered by OpenAI GPT-3.5" authors = ["Adam Yodinsky <27074934+adamyodinsky@users.noreply.github.com>"] keywords=["ai", "chat", "terminal", "openai", "gpt3", "chatGPT", "assistant", "gpt3.5", "terminalGPT"] diff --git a/terminalgpt/chat_utils.py b/terminalgpt/chat_utils.py index d8ead8f..cf8ae46 100644 --- a/terminalgpt/chat_utils.py +++ b/terminalgpt/chat_utils.py @@ -18,9 +18,12 @@ BINDINGS = KeyBindings() -def chat_loop(conversation_name: str = None, **kwargs): - """Main chat loop.""" - executor: concurrent.futures.ThreadPoolExecutor = kwargs["executor"] +def chat_loop( + conversation_name: str = None, + executor: concurrent.futures.ThreadPoolExecutor = None, + **kwargs, +): + """Main chat loop.""" debug: bool = kwargs["debug"] token_limit: int = kwargs["token_limit"] session: PromptSession = kwargs["session"]