Skip to content

Commit d0bb26a

Browse files
committed
docs: add ShengSuanYun provider guide
1 parent de33730 commit d0bb26a

3 files changed

Lines changed: 50 additions & 0 deletions

File tree

docs/.vitepress/config.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ export default defineConfig({
131131
collapsed: true,
132132
items: [
133133
{ text: "NewAPI", link: "/newapi" },
134+
{ text: "胜算云", link: "/shengsuanyun" },
134135
{ text: "AIHubMix", link: "/aihubmix" },
135136
{ text: "PPIO 派欧云", link: "/ppio" },
136137
{ text: "硅基流动", link: "/siliconflow" },
@@ -390,6 +391,7 @@ export default defineConfig({
390391
collapsed: true,
391392
items: [
392393
{ text: "NewAPI", link: "/newapi" },
394+
{ text: "ShengSuanYun", link: "/shengsuanyun" },
393395
{ text: "AIHubMix", link: "/aihubmix" },
394396
{ text: "PPIO Cloud", link: "/ppio" },
395397
{ text: "SiliconFlow", link: "/siliconflow" },

docs/en/providers/shengsuanyun.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Connect ShengSuanYun
2+
3+
[ShengSuanYun](https://www.shengsuanyun.com/?from=CH_T70U2X9L) provides a unified OpenAI-compatible API for accessing a range of popular AI models with one API key.
4+
5+
## Get an API Key
6+
7+
1. Sign up and log in at [ShengSuanYun](https://www.shengsuanyun.com/?from=CH_T70U2X9L).
8+
2. Open the console, create an API key, and copy it.
9+
10+
## Configure AstrBot
11+
12+
Open the AstrBot dashboard and go to **Providers → Add Provider → OpenAI**. Enter the following values:
13+
14+
| Field | Value |
15+
| --- | --- |
16+
| Provider Name | `ShengSuanYun` |
17+
| API Base URL | `https://router.shengsuanyun.com/api/v1` |
18+
| API Key | The API key created in the ShengSuanYun console |
19+
20+
Save the provider, then open its card and add the models you want to use from the model list in the ShengSuanYun console.
21+
22+
## Set as Default
23+
24+
Go to **Settings → Provider Settings**, select the ShengSuanYun model you just added as the default chat model, and save the configuration.

docs/zh/providers/shengsuanyun.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# 接入胜算云
2+
3+
[胜算云](https://www.shengsuanyun.com/?from=CH_T70U2X9L) 提供兼容 OpenAI 等格式的统一模型接口,可通过一个 API Key 接入多种主流模型。
4+
5+
## 获取 API Key
6+
7+
1. 前往 [胜算云](https://www.shengsuanyun.com/?from=CH_T70U2X9L) 注册并登录账号。
8+
2. 进入控制台,创建并复制 API Key。
9+
10+
## 在 AstrBot 中配置
11+
12+
打开 AstrBot 管理面板,进入 **服务提供商 → 新增提供商 → OpenAI**,填写以下信息:
13+
14+
| 配置项 ||
15+
| --- | --- |
16+
| 提供商名称 | `胜算云` |
17+
| API Base URL | `https://router.shengsuanyun.com/api/v1` |
18+
| API Key | 在胜算云控制台创建的 API Key |
19+
20+
保存后,点击该提供商卡片,根据胜算云控制台中的模型列表添加需要使用的模型。
21+
22+
## 设为默认模型
23+
24+
进入 **配置文件 → 提供商设置**,将「默认聊天模型」设置为刚刚添加的胜算云模型,然后保存配置。

0 commit comments

Comments
 (0)