From d25d3de8d46a7964be71b56c730d7514bb07eb53 Mon Sep 17 00:00:00 2001 From: Nick Sullivan Date: Sun, 2 Jul 2023 18:20:29 -0600 Subject: [PATCH] =?UTF-8?q?Bump=20version=20to=200.7.1=20and=20improve=20'?= =?UTF-8?q?sidekick'=20feature=20warnings=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit includes two main changes: 1. The version of the `aicodebot` package has been bumped from 0.7.0 to 0.7.1. 2. The 'sidekick' feature in `cli.py` has been updated with more explicit warning messages. These messages inform the user that the feature is experimental and may not perform optimally. Additionally, the command description has been slightly modified for clarity. Two new styles for console output, `error_style` and `warning_style`, have been added to enhance these messages visually. --- aicodebot/__init__.py | 2 +- aicodebot/cli.py | 13 ++++++++++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/aicodebot/__init__.py b/aicodebot/__init__.py index 7a0c9fe..691a48c 100644 --- a/aicodebot/__init__.py +++ b/aicodebot/__init__.py @@ -1 +1 @@ -version = "0.7.0" +version = "0.7.1" diff --git a/aicodebot/cli.py b/aicodebot/cli.py index 08b5d64..cfeb255 100644 --- a/aicodebot/cli.py +++ b/aicodebot/cli.py @@ -20,6 +20,8 @@ # ----------------------- Setup for rich console output ---------------------- # console = Console() bot_style = Style(color="#30D5C8") +error_style = Style(color="#FF0000") +warning_style = Style(color="#FFA500") # -------------------------- Top level command group ------------------------- # @@ -237,7 +239,16 @@ def review(commit, verbose): @click.option("--task", "-t", help="The task you want to perform - a description of what you want to do.") @click.option("-v", "--verbose", count=True) def sidekick(task, verbose): - """ALPHA/EXPERIMENTAL: Get help with a task from your AI sidekick.""" + """ALPHA/EXPERIMENTAL: Get coding help from your AI sidekick.""" + console.print( + "⚠️ WARNING: The 'sidekick' feature is currently experimental and, frankly, it sucks right now. " + "Due to the token limitations with large language models, the amount of context " + "that can be sent back and forth is limited, and slow. This means that sidekick will struggle with " + "complex tasks and will take longer than a human for simpler tasks.\n" + "Play with it, but don't expect too much. Do you feel like contributing? 😃", + style=warning_style, + ) + setup_environment() model = get_llm_model()