Skip to content

Commit

Permalink
更新说明文件
Browse files Browse the repository at this point in the history
  • Loading branch information
fruitbars committed May 30, 2024
1 parent d5d93c2 commit 49db58a
Show file tree
Hide file tree
Showing 4 changed files with 84 additions and 0 deletions.
43 changes: 43 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,16 @@
- **QPS**: 2
- **有效期**: 不限
- **文档地址**[https://www.xfyun.cn/doc/spark/Web.html](https://www.xfyun.cn/doc/spark/Web.html)
- **申请流程**[docs/讯飞星火spark-lite模型申请流程](docs/讯飞星火spark-lite模型申请流程.md)
- **百度千帆大模型平台**:
- **Lite、Speed-8K**: RPM = 300,TPM = 300000
- **Speed-128K**: RPM = 60,TPM = 300000]
- **文档地址**[https://cloud.baidu.com/doc/WENXINWORKSHOP/s/klqx7b1xf](https://cloud.baidu.com/doc/WENXINWORKSHOP/s/klqx7b1xf)
- **申请流程**[docs/百度千帆speed和lite模型申请流程](docs/百度千帆speed和lite模型申请流程.md)
- **腾讯混元大模型**:
- **限制并发数**: 5 路
- **文档地址**[https://cloud.tencent.com/document/api/1729/105701](https://cloud.tencent.com/document/api/1729/105701)
- **申请流程**[docs/腾讯混元hunyuan-lite模型申请流程](docs/腾讯混元hunyuan-lite模型申请流程.md)

## 功能

Expand Down Expand Up @@ -90,9 +93,49 @@

1. 启动服务:

**直接启动**
```bash
./simple-one-api [config](可选项,默认为config.json)
```
**nohup启动**
使用提供的`nohup_manage_simple_one_api.sh`脚本
- 启动:
```bash
./nohup_manage_simple_one_api.sh start
```
- 停止:
```bash
./nohup_manage_simple_one_api.sh stop
```
- 重启:
```bash
./nohup_manage_simple_one_api.sh restart
```

**systemd**
也可以是使用准备好的脚本`install_simple_one_api_service.sh`
需要修改下其中的工作目录
```bash
WORKING_DIRECTORY="/path/to/your/application"
```
开启权限,安装
```bash
chmod +x install_simple_one_api_service.sh
./install_simple_one_api_service.sh
```
然后使用
- 启动:
```bash
sudo systemctl start simple-one-api
```
- 停止:
```bash
./nohup_manage_simple_one_api.sh stop
```
- 重启:
```bash
./nohup_manage_simple_one_api.sh restart
```

2. 调用 API:

Expand Down
13 changes: 13 additions & 0 deletions docs/百度千帆speed和lite模型申请流程.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# 百度千帆speed和lite模型申请流程

到千帆平台上开通免费的模型[https://console.bce.baidu.com/qianfan/ais/console/onlineService](https://console.bce.baidu.com/qianfan/ais/console/onlineService)。注意开通需要实名认证!!!

![image-20240530235614503](/Users/admin/Library/Application Support/typora-user-images/image-20240530235614503.png)

到应用接入中创建应用,这里就有了`AppID``API Key``Secret Key`

![image-20240530235715433](/Users/admin/Library/Application Support/typora-user-images/image-20240530235715433.png)

也可以到体验中心体验[https://console.bce.baidu.com/qianfan/ais/console/onlineTest](https://console.bce.baidu.com/qianfan/ais/console/onlineTest)

![image-20240531000547449](/Users/admin/Library/Application Support/typora-user-images/image-20240531000547449.png)
15 changes: 15 additions & 0 deletions docs/腾讯混元hunyuan-lite模型申请流程.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# 腾讯混元hunyuan-lite模型申请流程

腾讯混元大模型接入地址[https://console.cloud.tencent.com/hunyuan/start](https://console.cloud.tencent.com/hunyuan/start)

![image-20240531000131857](/Users/admin/Library/Application Support/typora-user-images/image-20240531000131857.png)



点击创建密钥,到新页面,新建密钥

![image-20240531000213111](/Users/admin/Library/Application Support/typora-user-images/image-20240531000213111.png)

也可以到调试界面进行调试使用

![image-20240531000310097](/Users/admin/Library/Application Support/typora-user-images/image-20240531000310097.png)
13 changes: 13 additions & 0 deletions docs/讯飞星火spark-lite模型申请流程.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# 讯飞星火spark-lite模型申请流程

spark-lite介绍页面[https://xinghuo.xfyun.cn/sparkapi?scr=true](https://xinghuo.xfyun.cn/sparkapi?scr=true)

![image-20240530235125913](/Users/admin/Library/Application Support/typora-user-images/image-20240530235125913.png)

到控制台[https://console.xfyun.cn/services/cbm](https://console.xfyun.cn/services/cbm)查看appid、apikey、apisecret信息

![image-20240530235235481](/Users/admin/Library/Application Support/typora-user-images/image-20240530235235481.png)

也可以到调试中心调试使用

![image-20240531000409511](/Users/admin/Library/Application Support/typora-user-images/image-20240531000409511.png)

0 comments on commit 49db58a

Please sign in to comment.