OepnaiEE:一键连接大模型,简单高效!
OepnaiEE 是一个专为简化在多个平台上部署机器学习模型的试验性项目。本项目支持与多个 API 服务集成,包括 OpenAI、Groq、Gemini 和 Claude,使其能够在 Vercel 和 Netlify 等平台上快速部署。虽然已进行优化,OepnaiEE 仍具有实验性质,因此在使用过程中需要谨慎,所有使用后果均需用户自行承担。
OepnaiEE is an experimental project designed to simplify the deployment of machine learning models on multiple platforms. The project supports integration with multiple API services, including OpenAI, Groq, Gemini, and Claude, enabling rapid deployment on platforms such as Vercel and Netlify. Although optimized, OepnaiEE is experimental in nature and therefore needs to be used with caution, and all consequences of use are at the user's own risk.
Deployment options
我们推荐使用 Vercel 进行最简单的部署。点击下面开始:
Netlify 是另一个不错的部署选项:
部署完成后,请按照以下方式配置服务端点:
将 baseURL
从默认的 OpenAI URL 更改为您部署的服务 URL。
export API_KEY="您的 API 密钥"
- export BASE_URL="https://api.openai.com/v1"
+ export BASE_URL="您的部署 URL/v1"
对于 Gemini API,请相应地更新基本 URL。
export API_KEY="您的 API 密钥"
- export BASE_URL="https://generativelanguage.googleapis.com/v1beta"
+ export BASE_URL="您的部署 URL/v1beta"
对于 Groq 的 API 服务,调整 URL 如下所示。
export API_KEY="您的 API 密钥"
- export BASE_URL="https://api.groq.com/openai/v1"
+ export BASE_URL="您的部署 URL/openai/v1"
对于部署 Anthropic 的 Claude,请这样修改基本 URL:
export API_KEY="您的 API 密钥"
- export BASE_URL="https://api.anthropic.com/v1"
+ export BASE_URL="您的部署 URL/v1"
如果您使用 NGINX 部署,请参考 NGINX 文件夹内的 nginx.conf
配置;如果是 Cloudflare 配置,请参考 worker 文件夹内的 index.js
。
如果您发现这个实现有用,或者它在您的项目中提供了帮助,请考虑在 GitHub 上给它一个星标。您的支持非常有帮助!
🌟 感谢您使用 OepnaiEE!