Merge branch 'langbot-app:main' into main
@@ -47,6 +47,10 @@ export default defineConfig({
|
||||
collapsed: true,
|
||||
items: [
|
||||
{ text: "Docker部署", link: "/zh/deploy/langbot/docker" },
|
||||
{
|
||||
text: "1Panel面板部署",
|
||||
link: "/zh/deploy/langbot/one-click/1panel",
|
||||
},
|
||||
{
|
||||
text: "宝塔面板部署",
|
||||
link: "/zh/deploy/langbot/one-click/bt",
|
||||
@@ -186,6 +190,10 @@ export default defineConfig({
|
||||
text: "容器网络配置详解",
|
||||
link: "/zh/workshop/network-details",
|
||||
},
|
||||
{
|
||||
text: "接入来自胜算云的模型",
|
||||
link: "/zh/workshop/shengsuanyun-integration"
|
||||
},
|
||||
{
|
||||
text: "接入 PPIO API 的模型",
|
||||
link: "/zh/workshop/ppio-integration"
|
||||
@@ -267,6 +275,10 @@ export default defineConfig({
|
||||
collapsed: true,
|
||||
items: [
|
||||
{ text: "Docker Deployment", link: "/en/deploy/langbot/docker" },
|
||||
{
|
||||
text: "1Panel Deployment",
|
||||
link: "/en/deploy/langbot/one-click/1panel",
|
||||
},
|
||||
{
|
||||
text: "aaPanel Deployment",
|
||||
link: "/en/deploy/langbot/one-click/bt",
|
||||
|
||||
|
After Width: | Height: | Size: 585 KiB |
|
After Width: | Height: | Size: 572 KiB |
|
After Width: | Height: | Size: 203 KiB |
|
After Width: | Height: | Size: 327 KiB |
|
After Width: | Height: | Size: 137 KiB |
|
After Width: | Height: | Size: 590 KiB |
@@ -0,0 +1,63 @@
|
||||
# 1Panel Deployment
|
||||
|
||||
Deploy LangBot with one click using [1Panel](https://www.bt.cn/new/download.html?r=dk_LangBot).
|
||||
|
||||
:::warning
|
||||
|
||||
Unless you plan to use messaging platforms that do not require additional containers (such as Discord or Lark), or you are familiar with the network connection between Docker containers on 1Panel, it is not recommended to use the one-click deployment of 1Panel. Please consider using [Docker Deployment](/en/deploy/langbot/docker) instead.
|
||||
|
||||
:::
|
||||
|
||||
:::info
|
||||
|
||||
With [Alibaba Cloud](https://www.aliyun.com/minisite/goods?userCode=ys4ad8gs), you can get a server for as low as 38 yuan per year, and even enjoy a 20% discount. It is more convenient to install 1Panel with one click.
|
||||
|
||||
:::
|
||||
|
||||
## Install 1Panel
|
||||
|
||||
> Recommended server systems (from 1Panel): Debian 12, Ubuntu 22, etc.
|
||||
|
||||
This article assumes that the server has a public IPv4 address by default. If you are using a home machine without a public IP, you can access the relevant pages through the internal network described below.
|
||||
|
||||
Visit [1Panel](https://www.bt.cn/new/download.html?r=dk_LangBot) and use the Linux panel installation script provided officially by 1Panel. Select the corresponding script according to your operating system.
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||
Copy the corresponding script, paste it into the server, and execute it.
|
||||
|
||||
After waiting for a period of time, the installation of 1Panel will be completed.
|
||||
|
||||
Then copy the `External Address` and open it in a browser.
|
||||
|
||||
## Install LangBot
|
||||
|
||||
Open the `App Store`, select the `AI` category, and click to install LangBot.
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||
Check the box for `External Port Access` and click Confirm.
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||
Wait for a moment, and the installation will be completed.
|
||||
|
||||
Click `Containers` on the left side, then select the `Containers` category, and you will see the LangBot container bar.
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||
Copy the public IP address of the server, for example, `http://xxx.xxx.xxx.xxx:5300` (where xxx.xxx.xxx.xxx is the IP address of the server where 1Panel is located, and 5300 is the port number).
|
||||
|
||||
Open the address, enter the administrator email and password, then click Initialize.
|
||||
|
||||
After that, you can configure LangBot in the visual interface.
|
||||
|
||||
Next, please continue to read the [Deploy Messaging Platforms](/en/deploy/platforms/readme) page.
|
||||
|
After Width: | Height: | Size: 59 KiB |
@@ -0,0 +1,55 @@
|
||||
# 1Panel部署
|
||||
|
||||
使用[1Panel](https://www.bt.cn/new/download.html?r=dk_LangBot)一键部署 LangBot。
|
||||
|
||||
:::warning
|
||||
|
||||
除非您打算使用 Discord、飞书等无需额外容器的消息平台,或您熟悉1Panel上 Docker 容器间的网络连接,否则不建议使用1Panel一键部署,请考虑使用[Docker部署](/zh/deploy/langbot/docker)。
|
||||
|
||||
:::
|
||||
|
||||
|
||||
|
||||
:::info
|
||||
使用[阿里云,服务器价格低至 38 元一年,更可以享受8折优惠](https://www.aliyun.com/minisite/goods?userCode=ys4ad8gs),一键安装1Panel更方便
|
||||
:::
|
||||
|
||||
## 安装1Panel
|
||||
|
||||
> 服务器系统推荐(来自1Panel):Debian 12,Ubuntu 22等
|
||||
>
|
||||
> 本文默认所述的是拥有公网IPv4地址的服务器,如果是家用机器没有公网 IP,可以通过下文中的内网来访问相关页面
|
||||
|
||||
打开[1Panel](https://www.bt.cn/new/download.html?r=dk_LangBot),使用1Panel官方提供的Linux面板安装脚本,根据自己使用的系统选择对应的脚本
|
||||
|
||||

|
||||
|
||||
复制对应脚本,粘贴到服务器执行。
|
||||
|
||||
等待一段时间后,1Panel安装完成
|
||||
|
||||
然后将`外部地址`复制到浏览器打开。
|
||||
|
||||
## 安装LangBot
|
||||
|
||||
打开`应用商店`,选择`AI`类别,点击安装 LangBot
|
||||
|
||||

|
||||
|
||||
勾选`端口外部访问`,点击确认即可
|
||||
|
||||

|
||||
|
||||
稍等片刻,安装完成
|
||||
|
||||
点击左侧`容器`,选择`容器`类目,即可看到 LangBot 容器栏
|
||||
|
||||

|
||||
|
||||
复制服务器公网地址,例如`http://xxx.xxx.xxx.xxx:5300`(xxx.xxx.xxx.xxx为1Panel 明白所在服务器的 IP,5300为端口号)
|
||||
|
||||
打开后输入管理员邮箱和密码,然后点击初始化。
|
||||
|
||||
然后就可以在可视化界面进行配置了。
|
||||
|
||||
接下来请继续阅读[部署消息平台](/zh/deploy/platforms/readme)页。
|
||||
@@ -31,9 +31,9 @@ LangBot 是一个开源的大语言模型原生即时通信机器人开发平台
|
||||
| [Anthropic](https://www.anthropic.com/) | ✅ | |
|
||||
| [xAI](https://x.ai/) | ✅ | |
|
||||
| [智谱AI](https://open.bigmodel.cn/) | ✅ | |
|
||||
| [胜算云](https://www.shengsuanyun.com/?from=CH_KYIPP758) | ✅ | 全球大模型都可调用(友情推荐) |
|
||||
| [优云智算](https://www.compshare.cn/?ytag=GPU_YY-gh_langbot) | ✅ | 大模型和 GPU 资源平台 |
|
||||
| [PPIO](https://ppio.com/user/register?invited_by=QJKFYD&utm_source=github_langbot) | ✅ | 大模型和 GPU 资源平台 |
|
||||
| [胜算云](https://www.shengsuanyun.com/login?code=7DS2QLH5) | ✅ | 大模型和 GPU 资源平台 |
|
||||
| [302.AI](https://share.302.ai/SuTG99) | ✅ | 大模型聚合平台 |
|
||||
| [Google Gemini](https://aistudio.google.com/prompts/new_chat) | ✅ | |
|
||||
| [Dify](https://dify.ai) | ✅ | LLMOps 平台 |
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
# 接入来自胜算云的模型
|
||||
|
||||
胜算云是一家提供大模型和 GPU 资源的平台,支持将国内外各种大模型接入 LangBot,包括 Claude、GPT、DeepSeek、Gemini 等。
|
||||
|
||||
## 注册胜算云
|
||||
|
||||
点击[链接](https://www.shengsuanyun.com/?from=CH_KYIPP758)注册胜算云账号,完成后前往`控制台`,`API 密钥`页面,生成并复制 API Key。
|
||||
|
||||
## 使用聊天模型
|
||||
|
||||
在胜算云顶部进入`大厂模型Router`,即可查看可用的模型列表,并复制模型名称。
|
||||
|
||||
<img src="/assets/image/zh/workshop/shengsuanyun-integration/llm-models.png" alt="胜算云模型列表" />
|
||||
|
||||
前往 LangBot 模型管理页,添加模型(选择胜算云提供商,填入模型名称和 API Key:
|
||||
|
||||
<img src="/assets/image/zh/workshop/shengsuanyun-integration/add-llm-model.png" alt="添加模型" />
|
||||
|
||||
现在即可在流水线中选择使用该模型。
|
||||