Git Product home page Git Product logo

oai-proxy's Introduction

基于 oaifree 的GPT私人拼车实现

实现了网站密码,聊天隔离,限定访问用户,自动刷新access_token等 使用转OAuth的方式登陆,提高安全性,避免share_token泄露

页面展示

登录

ebd7fd45550498b1806aaebeac83e260.png

7a5b2258dbb2e6bd23097ec195e55f65.png

错误信息

d4727db474c8de07b4e2d4c1828de86d.png

44c0d1f36c3a4cec8b4b82adb29b8db7.png

登录成功

自动跳转gpt页面

f7dbaeb2142697313232b67e0b72c25b.png

使用方法

docker compose 运行

version: '3.8'
services:
  oai-proxy:
    image: neccen/oai-proxy
    ports:
      - "自定义端口:8080"
    container_name: oai-proxy
    volumes:
      - /文件config目录/config.yml:/home/oai-proxy/config.yml
    restart: unless-stopped

docker 运行

  • docker run -itd -p 自定义端口:8080 -v /config文件目录/config.yml:/home/oai-proxy/config.yml --restart always neccen/oai-proxy:latest

本地运行

  • Releases · ycvk/oai-proxy 下载最新的对应版本压缩文件
  • 解压并进入目录,在执行程序目录下,新建config.yml文件,并修改配置文件
  • 运行程序

config.yml配置文件说明

access_token: xxx #access_token,可以为空,会自动根据refresh_token获取并保存
refresh_token: xxx #OpenAI的refresh_token, 必填
site_password: abc123 #网站的密码
allow_users: #允许登录的用户
   - abc
   - e#F8!@
   - "666" #纯数字需要加引号

oai-proxy's People

Contributors

ycvk avatar

Stargazers

 avatar zy avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

aresiren

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.