Giter Club home page Giter Club logo

aichathelper's Introduction

搭建ChatGPT、Gemini、通义千问反向代理

only for 微信助手,突破gemini对区域的限制

欢迎来到微信助手 ChatGPT 反向代理项目!这个仓库帮助你部署 ChatGPT / Gemini-pro / 通义千问 反向代理,使其能够与懒猫的微信助手插件的 ChatGPT 功能协同工作。

直接把微信助手的反代部署到Netlify!!!

这个方案独立的,不需要用到Cloudflare即可实现3种AI模型的代理,同时没有gemini的区域限制(User location is not supported for the API use)。

Fork 仓库

  1. 注册一个你自己的GitHub账户。
  2. 来到我这个仓库,点击仓库右上角的 "Fork" 按钮,创建你自己的分支。

部署到 Netlify

  1. 用邮箱注册Netlify 帐号。注意:netlify.com和netlify.app的分流规则都必须设置为直连不可用魔法。
  2. Netlify 上创建一个新Site(Add new site)。
  3. 点击弹出的窗口 "Import an existing project" 。
  4. Deploy with GitHub.
  5. 按提示授权 GitHub 到你的 Netlify。
  6. 选择你刚刚fork的项目
  7. "Add environment variables" 创建WXID_ARRAY这个环境变量(只创建一个,别重复),values值为:微信ID1,微信ID2,微信ID3
    ---替换为你需要授权的微信ID,不同的ID需要用英文逗号隔开,最后一个微信ID后面不要加逗号。不需要加引号
    ---如果你的微信ID是wxid_abcdefg,你就填写wxid_abcdefg,别删掉了'wxid_';
    ---如果你的微信ID是lambous就填写lambous、开头别加‘wxid’!
    ---以此类推可以添加很多不止三个的。比如 wxid_abcdefg,lambous,yourxxx)
  8. Deploy AiChatHelper
  9. 等待部署完成,你将获得一个二级域名,这就是你的代理地址,记住它。(xxx.netlify.app;xxx可自定义,需要带上前缀https://)
  10. 以后在GitHub修改你的代码,Netlity会自动更新代码并重新部署。
  11. 第7步的环境变量WXID_ARRAY是在初次部署之前填写的。如果部署成功后再次修改环境变量WXID_ARRAY的值,请重新部署。

使用方法

以下操作都是在“微信助手”ChatGPT中操作:

  1. 将你的代理地址填写到“代理地址”栏。(https://xxx.netlify.app
  2. 如果使用的是ChatGPT API,请在 “APIKey”中填写ChatGPT(Openai)的API Key,在“模型”中选择对应的gpt-4或者gpt-3.5-turbo。
  3. 如果使用的是Gemini-pro API,请在 “APIKey”中填写Gemini-pro的API Key,在“模型”中选择 手动输入 ,填写:Gemini-pro (或填写简称Gemini)。
  4. 如果使用的是通义千问 API,请在 “APIKey”中填写Qwen的API Key,在“模型”中选择 手动输入 ,填写:qwen-turbo或qwen-max。

其他事项

  • 部分代码参考了懒猫提供的Gemini.zip,懒猫插件交流
  • 部分代码参考了Simon's Blog:simonmy.com
  • 如果遇到任何问题,请参考Netlify 文档进行故障排除。
  • 有关微信助手ChatGPT相关功能使用,请查看微信助手中的详细使用说明,或者在交流群里交流。

祝你在微信助手中体验愉快!

其他方案都不需要看了,就用此方案可以了。

aichathelper's People

Contributors

geekingh avatar

Stargazers

 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.