新增 OCI 访问配置指南和自动化脚本
All checks were successful
Build and Push OCI GenAI Gateway Docker Image / docker-build-push (push) Successful in 31s

This commit is contained in:
2025-12-09 15:16:18 +08:00
parent 42222744c7
commit 9098c61c6c
5 changed files with 823 additions and 26 deletions

View File

@@ -28,6 +28,22 @@
- OCI 账号和 API 密钥
- OCI Generative AI 服务访问权限
### 🔧 自动配置 OCI 访问权限(推荐)
如果您还没有配置 OCI Generative AI 访问权限,可以使用我们提供的自动化脚本快速完成配置:
```bash
# 在 Oracle Cloud Shell 中运行
bash <(curl -sL https://gitea.bcde.io/wangdefa/oracle-openai/raw/branch/main/script/setup-oci-genai-access.sh)
```
脚本将自动创建:
- IAM 用户组(用于 Generative AI 访问)
- IAM 策略(授予必要权限)
- IAM 用户(用于 API 调用)
详细配置说明请参考:[script/OCI-SETUP-GUIDE.md](OCI-SETUP-GUIDE.md)
### 安装
1. **克隆仓库**
@@ -219,8 +235,6 @@ docker run -p 8000:8000 --env-file .env oci-genai-gateway
- 使用多个 profile 进行负载均衡
- 等待 1-2 分钟后重试
更多故障排除信息请参考 [CLAUDE.md](CLAUDE.md#调试)
## 🤝 贡献
欢迎贡献!请随时提交 issues 或 pull requests。