Skip to content

Commit

Permalink
Refactor prompt to improve multilingual reponses
Browse files Browse the repository at this point in the history
  • Loading branch information
sderev committed Jun 18, 2023
1 parent 4f48fe3 commit 0086e8f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -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()
Expand All @@ -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={
Expand Down
2 changes: 1 addition & 1 deletion shellgenius/gpt_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 0086e8f

Please sign in to comment.