该项目是一个 Python 程序,在与 OpenAI 的 GPT 模型对话时提供插件支持。
在 config.json 中配置项目所需的参数,例如 API 密钥、模型等。
运行 main.py 文件。程序会读取配置文件,并根据配置的参数和提示,生成 OpenAI API 的请求并打印出回应。
该项目提供了以下插件功能:
克隆项目到本地:
git clone https://github.com/PeterBilly/OpenAI-Functions.git
进入项目目录:
cd OpenAI-Functions
安装依赖:
pip install -r requirements.txt
使用 config.json 文件进行配置,模板见 config_template
该项目使用 AGPL v3 开源许可证。详情请参阅 LICENCE 文件。