Netlify Edge Functions
Google PaLM API Proxy
使用反向代理技术解决 Google API 地理位置限制问题
适用场景
- 调用 Google PaLM API 时遇到 "User location is not supported for the API use" 错误
- 需要自定义 Google PaLM API 的调用方式
- 在中国大陆或其他 Google API 受限地区使用 PaLM 服务
技术特点
- 基于 Netlify Edge Functions 部署,全球边缘节点加速
- 自动重试机制,提高请求成功率
- 完善的超时控制和错误处理
- 支持 CORS 跨域访问