# OpenAi **Repository Path**: pzh_git/open-ai ## Basic Information - **Project Name**: OpenAi - **Description**: 使用Python实现OpenAi对话 - **Primary Language**: Python - **License**: AFL-3.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2023-02-25 - **Last Updated**: 2023-02-25 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # OpenAi ## 介绍 这是一个使用`Python`调用`OpenApi`的接口程序,通过该方式可以直接使用国内互联网使用,无需科学,本程序仅供学习交流,所以不提供相关注册教程和`key` ### 下载 [https://gitee.com/liumou_site/open-ai/releases](https://gitee.com/liumou_site/open-ai/releases) ## 使用说明 ```shell PS D:\data\git\gitee\Python\open-ai\client> .\OpenAI_Windows10_AMD64.exe -h usage: OpenAi [-h] [-k KEY] [-c CONFIG] [-d DEBUG] 用于OpenAI对话终端程序 options: -h, --help show this help message and exit -k KEY, --key KEY 设置API Key值,默认不设置(从默认配置文件读取) -c CONFIG, --config CONFIG 设置API Key值配置文件路径,默认: C:\Users\刘某\openai.conf -d DEBUG, --debug DEBUG 是否打印源数据(1: 打印),默认: 0 PS D:\data\git\gitee\Python\open-ai\client> ``` ## 使用效果 ```shell PS D:\data\git\gitee\Python\open-ai> python .\main.py 请输入问题: go语言如何调用openai模块 2023-02-14 11:22:42 main.py line: 98 Function: start - INFO : 回答信息如下 §§ 1000 +# Go语言如何调用OpenAI模块 + +OpenAI模块可以使用Go语言调用,只需要安装相关的OpenAI模块绑定库和调用它们的API函数即可。 + +例如,要使用OpenAI的Gym环境,可以使用go-gym绑定库,调用它的API函数,实现对OpenAI的Gym环境的调用。 + +另外,可以通过其他Go语言库和工具,如Gobot等,来实现对OpenAI模块的调用。 请输入问题: ``` # 扩展 使用下面的命令构建 ## 克隆 ```shell git clone https://gitee.com/liumou_site/open-ai.git ``` ## 安装依赖 ```shell cd open-ai/ pip3 install -r requirements.txt ``` ## 构建 ### Linux ```shell python3 build.py ``` ### Windows ```shell python build.py ```