AAGPT
1.0.0
Auto-Agent-GPT(又名AAGPT)是另一个实验性开源应用程序,展示了大型语言模型的功能。
支持:一般任务,煮熟的游戏
语言:[英语] [中文]


要安装AAGPT,请按照以下步骤:
克隆AAGPT存储库从GitHub进行导航,然后导航到下载的文件夹。
git clone [email protected]:hyintell/AAGPT.git
cd AAGPT
使用PIP中的终端中使用以下命令:
pip install -r requirements.txt仅两个步骤,您就可以使用OpenAI API密钥开始使用AAGPT的自然语言处理能力。
Open the setup/game.yaml file and enter your OpenAI API key in the openai_api_key field.
导航到AAGPT文件夹并运行以下命令:
python aagpt.py 安装AAGPT后,您将需要设置相关的API才能使用该应用程序。您可以按照以下步骤执行此操作:
cd setupsetup folder, there are two game settings, game.yaml which using the Chatgpt as momery store and game2.yaml which using the Pinecone as momery store.您可以选择其中之一来设置API。game.yaml file, you will use GPT as memory store, so please fill in the following information:openai_api_key : Your OpenAI API key.如果您没有一个,则可以创建一个免费帐户并从OpenAI网站获取API密钥。openai_model : The OpenAI ChatGPT model to use.从“ GPT-3.5-Turbo”,“ GPT4”或“ Text-Davinci-003”中选择。env_openai_api_key : OpenAI ChatGPT Key for env, you can keep same as the common.agent_openai_api_key : OpenAI ChatGPT Key for agents, you can keep same as the common.goal : The main objective of the AI agent.init_task : The initial tasks to be appended to the task list.agent_life :代理商的寿命,默认情况下,我们将其设置为256。 Note: Optionally, you can use game2.yaml which using Pinecone as memory store.除上述设置外,您还需要填写以下信息:
agent_pinecone_api_key : The form will be a list [Your Pinecone API , Your Pinecone Region] , the first is pinecone API, and second will be the region of your index, you can get it from the Pinecone website.agent_pinecone_index : The index name of the Pinecone index to use. In default, we use aagpt_agent_index . 
安装OpenCooking Envs。
让我们玩
python aagpt-overcooked.py --renderAfter setting the correct APIs, you can test AAGPT by executing the aagpt.py file in your terminal:
python aagpt.py AAGPT运行后,您可以通过打入提示并观察其响应来开始与之交互。
如果要更改设置或内存设置,则可以使用以下命令:
python aagpt.py --world_root setup/game2.yaml我们非常感谢开源项目的贡献:自动GPT和Babyagi。