Git Product home page Git Product logo

gpt_35's Introduction

GPT-3.5 AI小助手

使用 Python Web 作为后端框架, MongoDB 作为数据库, 以及 OpenAI 的 gpt-3.5 模型 API 作为核心服务, 让你可以通过浏览器与一个强大的自然语言生成模型进行交互。

📦 安装

操作步骤

  1. 进入到 we-fast-api 项目的 /apis 目录下, 下载 gpt_35 模块代码, 在终端执行:
    cd apis
    git clone https://github.com/hekaiyou/gpt_35.git
  2. 再安装 gpt_35 模块依赖, 同样在终端执行:
    cd gpt_35
    pip install -r requirements.txt

⚙️ 配置

应用模块 配置文件路径 描述
gpt_35 apis/gpt_35/.env gpt_35 模块的运行环境变量

apis/gpt_35/.env

apis/gpt_35/ 路径下创建 .env 配置文件, 参考以下内容设置具体的环境变量:

OPENAI_API_KEY=sk-xxxxxxxxxxxx

该目录下支持的全部环境变量参数如下:

环境变量 描述 类型 默认值
OPENAI_API_KEY OpenAI API key str

👀 预览

image

gpt_35's People

Contributors

hekaiyou avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.