mirror of
https://github.com/Wei-Shaw/claude-relay-service.git
synced 2026-01-23 00:53:33 +00:00
update readme
This commit is contained in:
15
README.md
15
README.md
@@ -247,6 +247,11 @@ export ANTHROPIC_BASE_URL="http://127.0.0.1:3000/api/" # 根据实际填写你
|
||||
export ANTHROPIC_AUTH_TOKEN="后台创建的API密钥"
|
||||
```
|
||||
|
||||
**使用claude:**
|
||||
```bash
|
||||
claude
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 🔧 日常维护
|
||||
@@ -384,16 +389,6 @@ module.exports = {
|
||||
}
|
||||
```
|
||||
|
||||
**5. 使用HTTPS API**
|
||||
|
||||
配置完成后,你的API地址变为:
|
||||
```bash
|
||||
curl https://your-domain.com/api/v1/messages \
|
||||
-H "x-api-key: cr_your-key" \
|
||||
-H "content-type: application/json" \
|
||||
-d '{"model":"claude-3-sonnet-20240229","messages":[{"role":"user","content":"你好"}]}'
|
||||
```
|
||||
|
||||
**安全优势:**
|
||||
- 🔒 **数据加密**: 所有API请求都通过HTTPS加密传输
|
||||
- 🛡️ **隐藏端口**: 不直接暴露服务端口,降低攻击面
|
||||
|
||||
Reference in New Issue
Block a user