Skip to content

Commit fd1e8d6

Browse files
authored
Merge pull request #101 from th-dd/v4
修改了部署文转图服务的教程
2 parents 3778aa0 + b6cc4d8 commit fd1e8d6

File tree

2 files changed

+18
-9
lines changed

2 files changed

+18
-9
lines changed

en/others/self-host-t2i.md

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,28 @@
1-
# 自行部署文转图服务
1+
# Self-host the Text-to-Image Service
22

3-
AstrBot 使用 [AstrBotDevs/astrbot-t2i-service](https://github.com/AstrBotDevs/astrbot-t2i-service) 项目作为默认的文本转图像服务。默认使用的文转图服务接口是
3+
AstrBot uses [AstrBotDevs/astrbot-t2i-service](https://github.com/AstrBotDevs/astrbot-t2i-service) as the default text-to-image service. The default service endpoints are:
44

55
```plain
66
https://t2i.soulter.top/text2img
77
https://t2i.rcfortress.site/text2img
88
```
99

10-
此接口能够保障大部分时间正常响应。但是由于部署在国外的(纽约)服务器,因此响应速度可能会比较慢。
10+
This interface can ensure normal response for most of the time. However, due to the deployment of servers in New York, the response speed may be slower in some areas.
1111

1212
> [!TIP]
13-
> 欢迎通过 [爱发电](https://afdian.com/a/astrbot_team) 支持我们,以帮助我们支付服务器费用。
13+
> If you'd like to support us to help pay for server costs, please consider supporting us on [Afdian](https://afdian.com/a/astrbot_team).
1414
15-
您可以选择自行部署文转图服务,以提升响应速度。
15+
You can choose to self-host the text-to-image service to improve response speed.
1616

1717
```bash
1818
docker run -itd -p 8999:8999 soulter/astrbot-t2i-service:latest
1919
```
2020

21-
在部署完成后,前往 AstrBot 面板 -> 配置 -> 其他配置,修改`文本转图像服务接口` 为你部署好的 url。
21+
After deployment, go to AstrBot Dashboard -> Config -> System, and change `Text-to-Image Service API Endpoint` to the URL you deployed (as shown below).
22+
23+
> If you deployed AstrBot using the Docker tutorial in this documentation, the URL should be `http://<t2i-service-container-name>:8999`.
24+
25+
> If you deployed on the same machine as AstrBot, the URL should be `http://localhost:8999`.
26+
27+
<img width="589" height="255" alt="image" src="https://github.com/user-attachments/assets/5ef09db2-1a33-440c-9986-c7b544325e34" />
2228

23-
> 如果部署在与 AstrBot 相同的机器上,url 应该为 `http://localhost:8999`

zh/others/self-host-t2i.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ https://t2i.rcfortress.site/text2img
1818
docker run -itd -p 8999:8999 soulter/astrbot-t2i-service:latest
1919
```
2020

21-
在部署完成后,前往 AstrBot 面板 -> 配置 -> 其他配置,修改`文本转图像服务接口` 为你部署好的 url
21+
在部署完成后,前往 AstrBot 仪表盘 -> 配置文件 -> 系统,修改 `文本转图像服务 API 地址` 为你部署好的 url(如下图所示)
2222

23-
> 如果部署在与 AstrBot 相同的机器上,url 应该为 `http://localhost:8999`
23+
>如果你是使用本文档的 Docker教程 部署的 AstrBot ,url应为 `http://文转图服务容器名:8999`
24+
25+
>如果部署在与 AstrBot 相同的机器上,url 应为 `http://localhost:8999`
26+
27+
<img width="591" height="228" alt="image" src="https://github.com/user-attachments/assets/f3564b46-11a4-402a-85e3-5f44a82713fe" />

0 commit comments

Comments
 (0)