使用 MitM 加代理工具实现 OpenAI API 请求全局重定向
- 在 Surge 中安装 CA 证书并使用
AIProxy.sgmodule模块。
| #!name=AIProxy | |
| #!desc=Replace OpenAI API host with AIProxy | |
| [URL Rewrite] | |
| ^https?:\/\/api\.openai\.com\/(.*) https://api.aiproxy.io/$1 header | |
| [MITM] | |
| hostname = api.openai.com, * |