Skip to content

Commit 5efff9f

Browse files
committed
Update SiliconFlow and TokenPony documentation for clarity and consistency. Translated sections to English, improved instructions for configuring chat models, and added relevant images for better user guidance.
1 parent 12bbbb0 commit 5efff9f

File tree

4 files changed

+28
-262
lines changed

4 files changed

+28
-262
lines changed

en/config/providers/siliconflow.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
1-
# 接入硅基流动
1+
# Connecting to SiliconFlow
22

3-
硅基流动依托自研推理引擎实现大模型高效推理加速,提供高效能、低成本的多品类大模型 API 服务,按量收费,助力应用开发轻松实现。
4-
## 配置对话模型
3+
SiliconFlow leverages its proprietary inference engine to deliver efficient acceleration for large language model inference. It provides high-performance, cost-effective API services for a wide range of large models with pay-as-you-go pricing, making application development a breeze.
54

6-
在硅基流动 [API Keys](https://cloud.siliconflow.cn/me/account/ak) 页面创建一个新的 API Key,留存备用。
5+
## Configuring the Chat Model
76

8-
在硅基流动[模型页面](https://cloud.siliconflow.cn/me/models)选择需要使用的模型,留存模型名称备用。
7+
Navigate to the SiliconFlow [API Keys](https://cloud.siliconflow.cn/me/account/ak) page and create a new API Key. Save it for later use.
98

10-
进入 AstrBot WebUI,点击左栏 `服务提供商` -> `新增提供商` -> 选择 `硅基流动`
9+
Visit the SiliconFlow [Models page](https://cloud.siliconflow.cn/me/models) to select your desired model. Note down the model name for later use.
1110

12-
粘贴上面创建和选择的 `API Key``模型名称`,点击保存,完成创建。您可以点击下方 `服务提供商可用性``刷新` 按钮测试配置是否成功。
11+
Open the AstrBot WebUI, click `Service Providers` in the left sidebar -> `Add Provider` -> select `SiliconFlow`.
1312

14-
![配置对话模型_1](/source/images/siliconflow/image.png)
13+
Paste the `API Key` and `Model Name` you obtained earlier, then click Save to complete the setup. You can click the `Refresh` button under `Service Provider Availability` to verify whether the configuration is successful.
14+
15+
![Configuring Chat Model](/source/images/siliconflow/image.png)

en/config/providers/tokenpony.md

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,23 @@
1-
# 接入 TokenPony(小马算力)
2-
## 配置对话模型
1+
# Connecting to TokenPony
32

4-
注册并登录小马算力 [TokenPony](https://www.tokenpony.cn/3YPyf)
3+
## Configuring the Chat Model
54

6-
在小马算力 [API Keys](https://www.tokenpony.cn/#/user/keys) 页面创建一个新的 API Key,留存备用。
5+
Register and log in to [TokenPony](https://www.tokenpony.cn/3YPyf).
76

8-
在小马算力[模型页面](https://www.tokenpony.cn/#/model)选择需要使用的模型,留存模型名称备用。
7+
Navigate to the TokenPony [API Keys](https://www.tokenpony.cn/#/user/keys) page and create a new API Key. Save it for later use.
98

10-
进入 AstrBot WebUI,点击左栏 `服务提供商` -> `新增提供商` -> 选择 `小马算力` (需要版本 >= 4.3.3)
9+
Visit the TokenPony [Models page](https://www.tokenpony.cn/#/model) to select your desired model. Note down the model name for later use.
1110

12-
![配置对话模型_1](/source/images/tokenpony/image.png)
11+
Open the AstrBot WebUI, click `Service Providers` in the left sidebar -> `Add Provider` -> select `TokenPony` (requires version >= 4.3.3)
1312

14-
> 如果没有看到 `小马算力` 选项,您也可以直接点击图中的 `接入 OpenAI`,并将 `API Base URL` 修改为 `https://api.tokenpony.cn/v1`
13+
![Configuring Chat Model](/source/images/tokenpony/image.png)
1514

16-
粘贴上面创建和选择的 `API Key``模型名称`,点击保存,完成创建。您可以点击下方 `服务提供商可用性``刷新` 按钮测试配置是否成功。
15+
> If you don't see the `TokenPony` option, you can also click `Connect to OpenAI` as shown in the image and change the `API Base URL` to `https://api.tokenpony.cn/v1`.
1716
18-
## 应用对话模型
17+
Paste the `API Key` and `Model Name` you obtained earlier, then click Save to complete the setup. You can click the `Refresh` button under `Service Provider Availability` to verify whether the configuration is successful.
1918

20-
在 AstrBot WebUI,点击左栏 `配置文件`,找到 AI 配置中的 `默认聊天模型`,选择刚刚创建的 `tokenpony`(小马算力) 提供商,点击保存。
19+
## Applying the Chat Model
2120

22-
![配置对话模型_2](/source/images/tokenpony/image_1.png)
21+
In the AstrBot WebUI, click `Configuration` in the left sidebar, find `Default Chat Model` under AI Configuration, select the `tokenpony` (TokenPony) provider you just created, and click Save.
22+
23+
![Configuring Chat Model 2](/source/images/tokenpony/image_1.png)

zh/config/providers/siliconflow.md

Lines changed: 3 additions & 119 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,7 @@
22

33
硅基流动依托自研推理引擎实现大模型高效推理加速,提供高效能、低成本的多品类大模型 API 服务,按量收费,助力应用开发轻松实现。
44

5-
## 部署并配置 AstrBot
6-
7-
### 通过 Docker 部署
8-
9-
请确保你的环境上已经安装了 Docker 和 Git。
10-
11-
```bash
12-
git clone https://github.com/AstrBotDevs/AstrBot
13-
cd AstrBot
14-
docker compose up -d
15-
```
16-
17-
> [!TIP]
18-
> 如果您的网络环境在中国大陆境内,上述命令将无法正常拉取。您可能需要修改 compose.yml 文件,将其中的 `image: soulter/astrbot:latest` 替换为 `image: m.daocloud.io/docker.io/soulter/astrbot:latest`
19-
20-
### 访问 AstrBot WebUI
21-
22-
```txt
23-
http://127.0.0.1:6185
24-
```
25-
26-
默认账户和密码均为 `astrbot`,登录后会提示修改默认密码。
27-
28-
### 配置对话模型
5+
## 配置对话模型
296

307
在硅基流动 [API Keys](https://cloud.siliconflow.cn/me/account/ak) 页面创建一个新的 API Key,留存备用。
318

@@ -37,99 +14,6 @@ http://127.0.0.1:6185
3714

3815
![配置对话模型_1](/source/images/siliconflow/image.png)
3916

40-
### 在线聊天测试(可选)
41-
42-
您可在 AstrBot WebUI 左栏 `聊天` 页面来测试您配置的模型。
43-
44-
## 接入消息平台(以飞书为例)
45-
46-
此处以飞书为例。您可前往 [AstrBot 文档](https://docs.astrbot.app/) -> `部署` -> `部署消息平台` 查看其他消息平台的接入方式。
47-
48-
### 创建飞书机器人
49-
50-
前往 [开发者后台](https://open.feishu.cn/app) ,创建企业自建应用。
51-
52-
![创建企业自建应用](/source/images/lark/image.png)
53-
54-
添加应用能力——机器人。
55-
56-
![添加应用能力](/source/images/lark/image-1.png)
57-
58-
点击凭证与基础信息,获取 app_id 和 app_secret。
59-
60-
![获取 app_id 和 app_secret](/source/images/lark/image-4.png)
61-
62-
### 配置 AstrBot
63-
64-
1. 进入 AstrBot 的管理面板
65-
2. 点击左边栏 `机器人`
66-
3. 然后在右边的界面中,点击 `+ 创建机器人`
67-
4. 选择 `lark(飞书)`
68-
69-
弹出的配置项填写:
70-
71-
- ID: 随意填写,用于区分不同的消息平台实例。
72-
- 启用: 勾选。
73-
- app_id: 获取的 app_id
74-
- app_secret: 获取的 app_secret
75-
- 飞书机器人的名字
76-
77-
如果您正在用国际版飞书,请将 `domain` 设置为 `https://open.larksuite.com`
78-
79-
在下方的 `配置文件` 中,点击 `选择配置文件` 右边的 ↗️ 箭头按钮。
80-
81-
![选择配置文件](/source/images/siliconflow/image-2.png)
82-
83-
在呼出的配置页面中,点击默认聊天模型右边的选择提供商按钮,选择刚刚创建的硅基流动的提供商,点击右下角的保存按钮。保存成功后关闭该页面。
84-
85-
![选择提供商](/source/images/siliconflow/image-3.png)
86-
87-
点击 `保存`,创建机器人。
88-
89-
### 设置回调和权限
90-
91-
接下来,点击事件与回调,使用长连接接收事件,点击保存。**如果上一步没有成功启动,那么这里将无法保存。**
92-
93-
![设置事件与回调](/source/images/lark/image-6.png)
94-
95-
点击添加事件,消息与群组,下拉找到 `接收消息`,添加。
96-
97-
![添加事件](/source/images/lark/image-7.png)
98-
99-
点击开通以下权限。
100-
101-
![开通权限](/source/images/lark/image-8.png)
102-
103-
再点击上面的`保存`按钮。
104-
105-
接下来,点击权限管理,点击开通权限,输入 `im:message:send,im:message,im:message:send_as_bot`。添加筛选到的权限。
106-
107-
再次输入 `im:resource:upload,im:resource` 开通上传图片相关的权限。
108-
109-
最终开通的权限如下图:
110-
111-
![最终开通的权限](/source/images/lark/image-11.png)
112-
113-
### 创建版本
114-
115-
创建版本。
116-
117-
![创建版本](/source/images/lark/image-2.png)
118-
119-
填写版本号,更新说明,可见范围后点击保存,确认发布。
120-
121-
### 拉入机器人到群组
122-
123-
进入飞书 APP(网页版飞书无法添加机器人),点进群聊,点击右上角按钮->群机器人->添加机器人。
124-
125-
搜索刚刚创建的机器人的名字。比如教程创建了 `AstrBot` 机器人:
126-
127-
![添加机器人](/source/images/lark/image-9.png)
128-
129-
### 🎉 大功告成
130-
131-
在群内发送测试消息 `hi`,机器人将做出响应。
132-
133-
## 更多功能
17+
## 应用对话模型
13418

135-
您可以前往 [AstrBot 文档](https://docs.astrbot.app/) 查看更多功能和配置
19+
AstrBot WebUI,点击左栏 `配置文件`,找到 AI 配置中的 `默认聊天模型`,选择刚刚创建的 `siliconflow`(硅基流动) 提供商,点击保存

zh/config/providers/tokenpony.md

Lines changed: 3 additions & 123 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,6 @@
11
# 接入 TokenPony(小马算力)
22

3-
[AstrBot](https://astrbot.app/) 是一个开源的一站式 Agent 聊天机器人平台及开发框架。支持将大模型能力接入 QQ、飞书、钉钉、Slack、Telegram、Discord 等多种主流消息平台上,提供开箱即用的 RAG、Agent、MCP 等功能,并拥有丰富的 API 接口,以方便进行二次开发和集成。AstrBot 拥有强大的社区和丰富的插件生态。
4-
5-
TokenPony(小马算力)提供统一的 API,让您可以通过单一端点访问数百个 AI 模型,同时自动处理回退并选择最具成本效益的选项。
6-
7-
## 部署并配置 AstrBot
8-
9-
### 通过 Docker 部署
10-
11-
请确保你的环境上已经安装了 Docker 和 Git。
12-
13-
```bash
14-
git clone https://github.com/AstrBotDevs/AstrBot
15-
cd AstrBot
16-
docker compose up -d
17-
```
18-
19-
> [!TIP]
20-
> 如果您的网络环境在中国大陆境内,上述命令将无法正常拉取。您可能需要修改 compose.yml 文件,将其中的 `image: soulter/astrbot:latest` 替换为 `image: m.daocloud.io/docker.io/soulter/astrbot:latest`
21-
22-
### 访问 AstrBot WebUI
23-
24-
```txt
25-
http://127.0.0.1:6185
26-
```
27-
28-
默认账户和密码均为 `astrbot`,登录后会提示修改默认密码。
29-
30-
### 配置对话模型
3+
## 配置对话模型
314

325
注册并登录小马算力 [TokenPony](https://www.tokenpony.cn/3YPyf)
336

@@ -43,101 +16,8 @@ http://127.0.0.1:6185
4316
4417
粘贴上面创建和选择的 `API Key``模型名称`,点击保存,完成创建。您可以点击下方 `服务提供商可用性``刷新` 按钮测试配置是否成功。
4518

46-
### 应用对话模型
19+
## 应用对话模型
4720

4821
在 AstrBot WebUI,点击左栏 `配置文件`,找到 AI 配置中的 `默认聊天模型`,选择刚刚创建的 `tokenpony`(小马算力) 提供商,点击保存。
4922

50-
![配置对话模型_2](/source/images/tokenpony/image_1.png)
51-
52-
### 在线聊天测试(可选)
53-
54-
您可在 AstrBot WebUI 左栏 `聊天` 页面来测试您配置的模型。
55-
56-
![聊天测试](/source/images/tokenpony/image_2.png)
57-
58-
## 接入消息平台(以飞书为例)
59-
60-
此处以飞书为例。您可前往 [AstrBot 文档](https://docs.astrbot.app/) -> `部署` -> `部署消息平台` 查看其他消息平台的接入方式。
61-
62-
### 创建飞书机器人
63-
64-
前往 [开发者后台](https://open.feishu.cn/app) ,创建企业自建应用。
65-
66-
![创建企业自建应用](/source/images/lark/image.png)
67-
68-
添加应用能力——机器人。
69-
70-
![添加应用能力](/source/images/lark/image-1.png)
71-
72-
点击凭证与基础信息,获取 app_id 和 app_secret。
73-
74-
![获取 app_id 和 app_secret](/source/images/lark/image-4.png)
75-
76-
### 配置 AstrBot
77-
78-
1. 进入 AstrBot 的管理面板
79-
2. 点击左边栏 `机器人`
80-
3. 然后在右边的界面中,点击 `+ 创建机器人`
81-
4. 选择 `lark(飞书)`
82-
83-
弹出的配置项填写:
84-
85-
- ID: 随意填写,用于区分不同的消息平台实例。
86-
- 启用: 勾选。
87-
- app_id: 获取的 app_id
88-
- app_secret: 获取的 app_secret
89-
- 飞书机器人的名字
90-
91-
如果您正在用国际版飞书,请将 `domain` 设置为 `https://open.larksuite.com`
92-
93-
点击 `保存`
94-
95-
### 设置回调和权限
96-
97-
接下来,点击事件与回调,使用长连接接收事件,点击保存。**如果上一步没有成功启动,那么这里将无法保存。**
98-
99-
![设置事件与回调](/source/images/lark/image-6.png)
100-
101-
点击添加事件,消息与群组,下拉找到 `接收消息`,添加。
102-
103-
![添加事件](/source/images/lark/image-7.png)
104-
105-
点击开通以下权限。
106-
107-
![开通权限](/source/images/lark/image-8.png)
108-
109-
再点击上面的`保存`按钮。
110-
111-
接下来,点击权限管理,点击开通权限,输入 `im:message:send,im:message,im:message:send_as_bot`。添加筛选到的权限。
112-
113-
再次输入 `im:resource:upload,im:resource` 开通上传图片相关的权限。
114-
115-
最终开通的权限如下图:
116-
117-
![最终开通的权限](/source/images/lark/image-11.png)
118-
119-
### 创建版本
120-
121-
创建版本。
122-
123-
![创建版本](/source/images/lark/image-2.png)
124-
125-
填写版本号,更新说明,可见范围后点击保存,确认发布。
126-
127-
### 拉入机器人到群组
128-
129-
进入飞书 APP(网页版飞书无法添加机器人),点进群聊,点击右上角按钮->群机器人->添加机器人。
130-
131-
搜索刚刚创建的机器人的名字。比如教程创建了 `AstrBot` 机器人:
132-
133-
![添加机器人](/source/images/lark/image-9.png)
134-
135-
### 🎉 大功告成
136-
137-
在群内发送一个 `/help` 指令,机器人将做出响应。
138-
139-
![成功](/source/images/lark/image-13.png)
140-
141-
## 更多功能
142-
143-
您可以前往 [AstrBot 文档](https://docs.astrbot.app/) 查看更多功能和配置。
23+
![配置对话模型_2](/source/images/tokenpony/image_1.png)

0 commit comments

Comments
 (0)