![]() | 1 R4rvZ6agNVWr56V0 2023-04-17 14:46:36 +08:00 说个大实话:不敢用。怕 Key 泄露。 |
![]() | 2 hsir 2023-04-17 15:04:54 +08:00 同意楼上,既提供收费的 API 访问,又提供免费的官方 API 反向代理,理论上操作,确实可以直接把反代用户的 Key 抠出来给收费用户用,自己不用承担多余的成本 |
3 saimirgjoni874 OP 这个网站提供了自己生成的 API Key (非 OepnAI Key ),不需要用户的 API Key ,不存在泄漏 API Key 的风险 @hsir |
![]() | 4 nxcdJaNnmyF9O90X 2023-04-17 15:13:38 +08:00 同意楼上,既提供收费的 API 访问,又提供免费的官方 API 反向代理,理论上操作,确实可以直接把反代用户的 Key 抠出来给收费用户用,自己不用承担多余的成本 |
5 saimirgjoni874 OP @xingjue 不需要你传 OpenAI API Key 的。。。 |
![]() | 6 lizuoqiang 2023-04-17 15:41:59 +08:00 镜像服务怎么收费呢 |
![]() | 7 106npo 2023-04-17 16:00:03 +08:00 via Android 给个价格预览?不想先注册 |
![]() | 8 sirius4gnu 2023-04-17 16:20:21 +08:00 用邮箱注册好评,体验卡都被用了,大佬能不能再发几张? |
![]() | 9 justseemore 2023-04-17 16:32:00 +08:00 ``` package handler import ( "fmt" "github.com/gofiber/adaptor/v2" "github.com/gofiber/fiber/v2" "github.com/gofiber/fiber/v2/middleware/proxy" "net/http" "os" "strings" ) // Handler is the main entry point of the application. Think of it like the main() method func Handler(w http.ResponseWriter, r *http.Request) { // This is needed to set the proper request path in `*fiber.Ctx` r.RequestURI = r.URL.String() handler().ServeHTTP(w, r) } // building the fiber application func handler() http.HandlerFunc { app := fiber.New() app.All("/*", func(ctx *fiber.Ctx) error { proxyHost, _ := strings.CutSuffix(ctx.Get("h-proxy-host", os.Getenv("PROXY_DOMAIN")), "/") path, _ := strings.CutPrefix(ctx.OriginalURL(), "/") proxyUrl := fmt.Sprintf("https://%s/%s", proxyHost, path) if err := proxy.Do(ctx, proxyUrl); err != nil { return err } ctx.Response().Header.Del(fiber.HeaderServer) return nil }) return adaptor.FiberApp(app) } ``` vercel 部署..反代直接生效了.. |
![]() | 10 AngryPanda 2023-04-17 16:36:59 +08:00 cn 域名?预计很快就废了 |
![]() | 11 ao99 2023-04-17 18:20:15 +08:00 有 GPT4 权限吗?价格如何? |
12 1wlinesperday 2023-04-17 22:22:49 +08:00 数据安全有保证,内容合规审核支持 这个怎么保证?对输入输出做审查吗 |