GithubHelp home page GithubHelp logo

gms1979 / free-chatgpt-api Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mufeng510/free-chatgpt-api

0.0 0.0 0.0 6 KB

基于pandora的ChatGpt API,实现了pool token的自动更新

License: MIT License

Python 96.46% Batchfile 3.54%

free-chatgpt-api's Introduction

基于pandora的ChatGpt API

说明

感谢pandora项目,这一次真正实现了ChatGPT自由。本项目主要实现了根据账号密码自动获取accessToken并更新至pool-token。初始脚本来源于旧的pandora,该库被删除,无法添加链接,这个脚本是我进行修改过后的,使用更方便。

如果对您有帮助,请给一个免费的star,谢谢!

使用方法

  1. 安装python环境,我使用了miniconda,也可以直接下载python安装。
# 使用scoop安装miniconda3
scoop install miniconda3
# 创建pandora专用的环境
conda create -n pool python=3.10
conda init pool
conda activate pool
  1. 安装依赖
pip install pandora-chatgpt
  1. 新建credentials.txt并设置内容为账号密码,一行一个,账号密码用逗号分隔
  1. 新建pool_token.txt并设置内容为你的pool tohen (可选,没有会自动生成)
pk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  1. 打开auto_pool_token.py,修改以下内容
# 你的魔法地址
proxy = 'http://127.0.0.1:10809'

# 唯一的名字,用于注册或更新 Share Token,相同 unique_name 和 access_token 始终生成相同的 Share Token

unique_name = 'mufeng'
  1. 运行脚本

windows:

执行run_job.bat, 如果不使用miniconda,请删除脚本中的 call conda activate pool

  1. 定时执行

windows:

使用任务计划程序, 创建任务, 根据你的需求添加即可。操作选择执行脚本:run_job.bat

free-chatgpt-api's People

Contributors

mufeng510 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.