Skip to content

Commit 5ac3fde

Browse files
committed
调整推荐的API聚合服务
1 parent 7db9037 commit 5ac3fde

2 files changed

Lines changed: 20 additions & 14 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,12 @@ $ npm install
5151
5252
在项目根目录创建一个 `.env` 文件,并配置 `API_BASE_URL``API_KEY`
5353

54-
API_BASE_URL 和 API_KEY 需要从支持 OpenAI API 的代理服务商处获取。[CloseAI](https://www.closeai-asia.com/)[AIHubMix](https://aihubmix.com/) 等服务商,支持支付宝付款,开账户很方便
54+
API_BASE_URL 和 API_KEY 需要从支持 OpenAI API 的代理服务商处获取。如国内的 [硅基流动](https://cloud.siliconflow.cn/i/SG8C0772) 或国外的 [OpenRouter](https://openrouter.ai/) 等服务商,支持支付宝付款。
5555

5656
当然,如果你(人在海外)可以直接使用 OpenAI 官方的 API 更好,只需要配置 `API_KEY` 就够了。
5757

5858
```env
59-
API_BASE_URL="https://api.openai-proxy.org/v1" # 代理服务商的 API 地址,这里以 CloseAI 为例
59+
API_BASE_URL="https://openrouter.ai/api/v1" # 聚合服务的 API 地址,这里以 OpenRouter 为例
6060
API_KEY="sk-1234567890" # 代理服务商的 API Key,这里只是示例,需要改成你自己的
6161
```
6262

src/renderer/src/coder/PrerequisitesChecker.tsx

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,24 @@ export function PrerequisitesChecker() {
3030
<div className="m-auto bg-white rounded-lg p-6 pt-1 w-120 shadow-lg">
3131
<h1 className="text-xl font-bold text-center mb-2">欢迎使用解题助手</h1>
3232
<div className="text-sm text-gray-600">
33-
请先配置 ChatGPT API Key,如无 API Key,请先前往{' '}
34-
<a href="https://platform.openai.com/account/api-keys" target="_blank" rel="noreferrer">
35-
OpenAI
36-
</a>{' '}
37-
申请。如果直接使用 OpenAI 有网络或者支付等限制,这里推荐大家使用 API 代理服务,如{' '}
38-
<a href="https://referer.shadowai.xyz/r/1031823" target="_blank" rel="noreferrer">
39-
CloseAI
33+
请先配置大模型聚合平台信息,如国内的
34+
<a
35+
href="https://cloud.siliconflow.cn/i/SG8C0772"
36+
target="_blank"
37+
rel="noreferrer"
38+
className="text-blue-500 mx-1"
39+
>
40+
硅基流动
41+
</a>
42+
或国外的
43+
<a
44+
href="https://openrouter.ai/"
45+
target="_blank"
46+
rel="noreferrer"
47+
className="text-blue-500 mx-1"
48+
>
49+
OpenRouter
4050
</a>
41-
42-
<a href="https://aihubmix.com?aff=ZniA" target="_blank" rel="noreferrer">
43-
AiHubMix
44-
</a>{' '}
4551
等 。
4652
</div>
4753

@@ -50,7 +56,7 @@ export function PrerequisitesChecker() {
5056
<label className="block text-sm font-medium text-gray-700">
5157
API Base URL{' '}
5258
<span className="text-xs font-normal text-gray-500">
53-
(可选,使用 硅基流动 或 OpenAI 代理服务 时需要配置该项)
59+
(配置硅基流动或其他代理服务商的 API Base URL 地址)
5460
</span>
5561
</label>
5662
<input

0 commit comments

Comments
 (0)