From dfa6357eb7e8c6d333c933130cd0aaa3704d22d4 Mon Sep 17 00:00:00 2001 From: Adam Yodinsky <27074934+adamyodinsky@users.noreply.github.com> Date: Thu, 23 Mar 2023 21:09:00 +0200 Subject: [PATCH] fixing an issue with previus version --- pyproject.toml | 2 +- terminalgpt/chat_utils.py | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) 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"]