Giter Site home page Giter Site logo

api-forward's Introduction

api-forward

利用 vercel 反向代理 openapi/cozeapi 模型接口 .


前置

  • vercel 帐号。 若为新建帐号, 区域建议优先选择 Washington, D.C., USA (East) – iad1(也可以在项目创建成功后,在设置-Functions - Function Region 中修改)
  • 一个任意域名,虽说vercel部署成功后会主动分配一个*.vercel.app的域名, 但大陆多数是直接被墙,可以通过设置自定义域名解决。

一键部署

Deploy with Vercel

注: 一键部署需要克隆到项目到自己的github中,如果不想关联github,可以通过vercel cli来从本地部署,详情参看文档Vercel CLI Overview

使用

example.com 为自己设置的域名

  • 访问 https://api.example.com/openai,代理到 https://api.openai.com
  • 访问 https://api.example.com/coze, 代理到 https://api.coze.com
  • ...

其他问题

api-forward's People

Contributors

0x5c0f avatar

Watchers

 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.