From b17cf0289f0f345f63d26c9713938ac742de1334 Mon Sep 17 00:00:00 2001 From: Tamerlan Temirbolat Date: Tue, 23 Apr 2024 15:14:45 +0500 Subject: [PATCH] Update to gpt-4-turbo --- README.md | 2 +- pyproject.toml | 2 +- shell_whiz/cli/commands/ask.py | 2 +- shell_whiz/cli/commands/config.py | 3 --- 4 files changed, 3 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index ca75cec..7de14fe 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ PowerShell users can create a function in their [PowerShell profile](https://lea function ?? { sw ask ` -s (Get-Command powershell.exe).Source ` - -m gpt-4-turbo-preview ` + -m gpt-4-turbo ` -p "I use PowerShell on a daily basis" ` @Args } diff --git a/pyproject.toml b/pyproject.toml index c062bd4..d830be4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,7 +8,7 @@ line_length = 79 [tool.poetry] name = "shell-whiz" -version = "3.2.1" +version = "3.2.2" description = "AI assistant for command line" license = "GPL-3.0-only" authors = ["Tamerlan Beyimjan "] diff --git a/shell_whiz/cli/commands/ask.py b/shell_whiz/cli/commands/ask.py index e25ea13..c829b5b 100644 --- a/shell_whiz/cli/commands/ask.py +++ b/shell_whiz/cli/commands/ask.py @@ -93,7 +93,7 @@ async def _perform_selected_action( await _explain_shell_command( ai=ai, coro=ai.get_explanation_of_shell_command( - shell_command.args, model="gpt-4-turbo-preview" + shell_command.args, model="gpt-4-turbo" ), ) elif action == "Revise query": diff --git a/shell_whiz/cli/commands/config.py b/shell_whiz/cli/commands/config.py index 27c7d74..546f340 100644 --- a/shell_whiz/cli/commands/config.py +++ b/shell_whiz/cli/commands/config.py @@ -38,9 +38,6 @@ def config() -> None: ) raise typer.Exit(1) - print(config) - return - try: Config.write(config) except ConfigError as e: