From 0086e8f003d4aecd0391f5a58cd642a346369a4a Mon Sep 17 00:00:00 2001 From: sderev Date: Sun, 18 Jun 2023 21:59:12 +0200 Subject: [PATCH] Refactor prompt to improve multilingual reponses --- setup.py | 4 +++- shellgenius/gpt_integration.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 691f808..39950f8 100644 --- a/setup.py +++ b/setup.py @@ -1,5 +1,7 @@ from setuptools import setup, find_packages +VERSION = "0.1.10" + with open("README.md", encoding="UTF-8") as file: readme = file.read() @@ -10,7 +12,7 @@ setup( name="ShellGenius", description="ShellGenius is a tool to generate shell commands from description in natural language.", - version="0.1.9", + version=VERSION, packages=find_packages(), install_requires=requirements, entry_points={ diff --git a/shellgenius/gpt_integration.py b/shellgenius/gpt_integration.py index 85d7328..9c5b7b3 100644 --- a/shellgenius/gpt_integration.py +++ b/shellgenius/gpt_integration.py @@ -9,7 +9,7 @@ def format_prompt(command_description, os_name): prompt = [ { "role": "system", - "content": f"You are an expert in using {os_name} and the shell terminal.", + "content": f"You are an expert AI in using {os_name} and the shell terminal. As an helpful AI, you recognize the language of the user and respond in the same language.", }, { "role": "user",