CivicsGPT
1.0.0
Civicsgpt是一种基于GPT的聊天机器人,用于练习美国归化公民测试。
在某个时候,我将为此创建一个网站。
这需要Python 3.7.1或更高。
要查看代码,请运行
gh repo clone JamesWillLewis/CivicsGPT
或者
git clone https://github.com/JamesWillLewis/CivicsGPT.git
安装依赖项
pip3 install -r requirements.txt
使用OpenAi API键
export OPENAI_API_KEY="YOUR_API_KEY"
或者,创建.env文件。
echo 'export OPENAI_API_KEY="YOUR_API_KEY"' >> .env
没有任何选择而运行
./cli.sh
您可以选择将temperature和max_tokens作为参数指定
./cli.sh 0.8 16
添加或更改依赖项后,运行
pip3 freeze > requirements.txt