Skip to content

Commit

Permalink
feat:Add DeepSeek API list doc and update default LLM provider to VS …
Browse files Browse the repository at this point in the history
…Code
  • Loading branch information
coolcline committed Feb 15, 2025
1 parent 99a0051 commit 3b764ca
Show file tree
Hide file tree
Showing 6 changed files with 262 additions and 7 deletions.
96 changes: 96 additions & 0 deletions docs/user-docs/en/configuration/deepseek_list.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
# DeepSeek API 资源列表

## DeepSeek 官网

网址:[https://platform.deepseek.com/](https://platform.deepseek.com/)

价格:

- deepseek-v3: input ¥2/M,output ¥8/M,cache ¥0.5/M
- deepseek-r1: input ¥4/M,output ¥16/M,cache ¥1/M

## 硅基流动 x 华为云

- 提供 DeepSeek-V3 和 DeepSeek-R1 模型的 API 服务,支持零门槛部署,价格与官方优惠期一致。
- 网址:[https://cloud.siliconflow.cn](https://cloud.siliconflow.cn/i/MA9kzYFB)
价格:
- 测试通过的配置

```json
baseUrl='https://api.siliconflow.cn/v1'
model="deepseek-ai/DeepSeek-V3"
apikey=
```

## 阿里云百炼

- 赠送额度:最高超 5000 万 tokens
- 网址:https://bailian.console.aliyun.com
- 测试通过的配置

```json
baseUrl='https://dashscope.aliyuncs.com/compatible-mode/v1'
model="deepseek-v3"
apikey=
```

## 百度智能云千帆

- 赠送额度:限时免费
- 网址:https://console.bce.baidu.com/qianfan/overview

## OpenRouter

- 赠送额度:免费,速度较慢
- 网址:https://openrouter.ai

## Hyperbolic

- 赠送额度:新用户赠送余额 10 美元
- 网址:https://app.hyperbolic.xyz

## Together

- 赠送额度:新用户赠送余额 1 美元
- 网址:https://api.together.ai

## 火山方舟

- 赠送额度:50 万 token
- 网址:https://www.volcengine.com/product/ark
- https://console.volcengine.com/ark/region:ark+cn-beijing/model?vendor=Bytedance&view=LIST_VIEW

## 「英伟达」

赠送额度:个人 1000 次调用 / 企业 5000 次调用
注册网址:https://build.nvidia.com/deepseek-ai/deepseek-r1

## 「微软 Azure」

赠送额度:限时免费(注册需信用卡)
注册网址:https://ai.azure.com

## 「亚马逊 AWS」

赠送额度:限时免费(注册需信用卡)
注册网址:https://aws.amazon.com/cn/blogs/aws/deepseek-r1-models-now-available-on-aws

## 「GitHub」

赠送额度:调用有限,部署复杂
注册网址:https://github.com/marketplace/models/azureml-deepseek/DeepSeek-R1

## Gitee AI

- 赠送额度:32B 限时免费 / 每日免费调用 100 次
- 网址:https://ai.gitee.com/serverless-api

## 腾讯云

- 赠送额度:限时免费
- 网址:https://console.cloud.tencent.com/lkeap/api

## Fireworks

- 赠送额度:新用户赠送余额 1 美元
- 网址:https://fireworks.ai
28 changes: 28 additions & 0 deletions docs/user-docs/en/configuration/provides.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# LLM Provider 配置

## VS Code LLM Provider 配置(推荐)

CoolCline 可以通过 VS Code LM API 使用 GitHub Copilot 提供的模型,如 Claude 3.5 Sonnet、gpt-4o 等。

价格:每月的免费额度为 2000 次 code completions 和 50 次聊天,Pro 计划价格为 $10/月,详情请查看 [https://github.com/settings/copilot](https://github.com/settings/copilot)

具体使用方法如下:

- 注册 [GitHub](https://github.com) 账号
- 在这个页面 [https://github.com/settings/copilot](https://github.com/settings/copilot) 进行管理,比如启用 Claude 3.5 Sonnet 模型
- 安装 [GitHub Copilot](https://code.visualstudio.com/) 插件
- 用 GitHub 账号登录 GitHub Copilot 插件
- 重启 VS Code
- 打开 CoolCline 插件,进入设置页面,将 LLM Provider 选项设置为 VS Code,您将看到模型选择框,选择您想使用的模型。
- 如果没有显示模型选择框,那就有这几种问题请检查
- 您没有安装 GitHub Copilot 插件(在 VS Code 扩展市场搜索 GitHub Copilot 安装)
- 您没有用 GitHub 账号登录 GitHub Copilot 插件(点击 VS Code 左下角账户,将看到`使用 GitHub 登录以使用 GitHub Copilot`,请用 GitHub 账号登录 GitHub Copilot 插件)
- 您禁用了 GitHub Copilot 插件(在扩展市场,找到 GitHub Copilot 检查状态)
- 可能第一次登录,还没有重启 VS Code(请彻底关闭后台,然后重新打开)
- 重启了还没有,且前面的条件都检查了,可能是网络还没响应,等一下再试
- 您的 Copilot 额度用完了(如果每月 50 条免费额度已经用完,您可以选择换账号或在这个页面 [https://github.com/settings/copilot](https://github.com/settings/copilot) 以 $10/月购买 Pro 计划)
- 选择模型后即可到聊天页面使用,不需要配置 API Key,鉴权已经通过 GitHub 账号自动实现

## DeepSeek LLM Provider 配置

[DeepSeek](https://platform.deepseek.com/) 虽好,但是目前各个 Provider 提供的 API 都不稳定,这里提供一些 [DeepSeek API 列表](./deepseek_list.md)
96 changes: 96 additions & 0 deletions docs/user-docs/zh/configuration/deepseek_list.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
# DeepSeek API 资源列表

## DeepSeek 官网

网址:[https://platform.deepseek.com/](https://platform.deepseek.com/)

价格:

- deepseek-v3: input ¥2/M,output ¥8/M,cache ¥0.5/M
- deepseek-r1: input ¥4/M,output ¥16/M,cache ¥1/M

## 硅基流动 x 华为云

- 提供 DeepSeek-V3 和 DeepSeek-R1 模型的 API 服务,支持零门槛部署,价格与官方优惠期一致。
- 网址:[https://cloud.siliconflow.cn](https://cloud.siliconflow.cn/i/MA9kzYFB)
价格:
- 测试通过的配置

```json
baseUrl='https://api.siliconflow.cn/v1'
model="deepseek-ai/DeepSeek-V3"
apikey=
```

## 阿里云百炼

- 赠送额度:最高超 5000 万 tokens
- 网址:https://bailian.console.aliyun.com
- 测试通过的配置

```json
baseUrl='https://dashscope.aliyuncs.com/compatible-mode/v1'
model="deepseek-v3"
apikey=
```

## 百度智能云千帆

- 赠送额度:限时免费
- 网址:https://console.bce.baidu.com/qianfan/overview

## OpenRouter

- 赠送额度:免费,速度较慢
- 网址:https://openrouter.ai

## Hyperbolic

- 赠送额度:新用户赠送余额 10 美元
- 网址:https://app.hyperbolic.xyz

## Together

- 赠送额度:新用户赠送余额 1 美元
- 网址:https://api.together.ai

## 火山方舟

- 赠送额度:50 万 token
- 网址:https://www.volcengine.com/product/ark
- https://console.volcengine.com/ark/region:ark+cn-beijing/model?vendor=Bytedance&view=LIST_VIEW

## 「英伟达」

赠送额度:个人 1000 次调用 / 企业 5000 次调用
注册网址:https://build.nvidia.com/deepseek-ai/deepseek-r1

## 「微软 Azure」

赠送额度:限时免费(注册需信用卡)
注册网址:https://ai.azure.com

## 「亚马逊 AWS」

赠送额度:限时免费(注册需信用卡)
注册网址:https://aws.amazon.com/cn/blogs/aws/deepseek-r1-models-now-available-on-aws

## 「GitHub」

赠送额度:调用有限,部署复杂
注册网址:https://github.com/marketplace/models/azureml-deepseek/DeepSeek-R1

## Gitee AI

- 赠送额度:32B 限时免费 / 每日免费调用 100 次
- 网址:https://ai.gitee.com/serverless-api

## 腾讯云

- 赠送额度:限时免费
- 网址:https://console.cloud.tencent.com/lkeap/api

## Fireworks

- 赠送额度:新用户赠送余额 1 美元
- 网址:https://fireworks.ai
28 changes: 28 additions & 0 deletions docs/user-docs/zh/configuration/provides.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# LLM Provider 配置

## VS Code LLM Provider 配置(推荐)

CoolCline 可以通过 VS Code LM API 使用 GitHub Copilot 提供的模型,如 Claude 3.5 Sonnet、gpt-4o 等。

价格:每月的免费额度为 2000 次 code completions 和 50 次聊天,Pro 计划价格为 $10/月,详情请查看 [https://github.com/settings/copilot](https://github.com/settings/copilot)

具体使用方法如下:

- 注册 [GitHub](https://github.com) 账号
- 在这个页面 [https://github.com/settings/copilot](https://github.com/settings/copilot) 进行管理,比如启用 Claude 3.5 Sonnet 模型
- 安装 [GitHub Copilot](https://code.visualstudio.com/) 插件
- 用 GitHub 账号登录 GitHub Copilot 插件
- 重启 VS Code
- 打开 CoolCline 插件,进入设置页面,将 LLM Provider 选项设置为 VS Code,您将看到模型选择框,选择您想使用的模型。
- 如果没有显示模型选择框,那就有这几种问题请检查
- 您没有安装 GitHub Copilot 插件(在 VS Code 扩展市场搜索 GitHub Copilot 安装)
- 您没有用 GitHub 账号登录 GitHub Copilot 插件(点击 VS Code 左下角账户,将看到`使用 GitHub 登录以使用 GitHub Copilot`,请用 GitHub 账号登录 GitHub Copilot 插件)
- 您禁用了 GitHub Copilot 插件(在扩展市场,找到 GitHub Copilot 检查状态)
- 可能第一次登录,还没有重启 VS Code(请彻底关闭后台,然后重新打开)
- 重启了还没有,且前面的条件都检查了,可能是网络还没响应,等一下再试
- 您的 Copilot 额度用完了(如果每月 50 条免费额度已经用完,您可以选择换账号或在这个页面 [https://github.com/settings/copilot](https://github.com/settings/copilot) 以 $10/月购买 Pro 计划)
- 选择模型后即可到聊天页面使用,不需要配置 API Key,鉴权已经通过 GitHub 账号自动实现

## DeepSeek LLM Provider 配置

[DeepSeek](https://platform.deepseek.com/) 虽好,但是目前各个 Provider 提供的 API 都不稳定,这里提供一些 [DeepSeek API 列表](./deepseek_list.md)
4 changes: 2 additions & 2 deletions src/core/webview/CoolClineProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2342,8 +2342,8 @@ export class CoolClineProvider implements vscode.WebviewViewProvider {
if (apiKey) {
llmProvider = "anthropic"
} else {
// New users should default to openrouter
llmProvider = "openrouter"
// New users should default to vscode-lm
llmProvider = "vscode-lm"
}
}

Expand Down
17 changes: 12 additions & 5 deletions webview-ui/src/components/settings/ApiOptions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,10 @@ const ApiOptions = ({ apiErrorMessage, modelIdErrorMessage }: ApiOptionsProps) =
zIndex: OPENROUTER_MODEL_PICKER_Z_INDEX + 1,
}}
options={[
{
value: "vscode-lm",
label: t("settings.provider.providers.vscode.name").toString(),
},
{
value: "openrouter",
label: t("settings.provider.providers.openRouter.name").toString(),
Expand Down Expand Up @@ -193,10 +197,6 @@ const ApiOptions = ({ apiErrorMessage, modelIdErrorMessage }: ApiOptionsProps) =
value: "glama",
label: t("settings.provider.providers.glama.name").toString(),
},
{
value: "vscode-lm",
label: t("settings.provider.providers.vscode.name").toString(),
},
{
value: "mistral",
label: t("settings.provider.providers.mistral.name").toString(),
Expand Down Expand Up @@ -1451,7 +1451,14 @@ const ApiOptions = ({ apiErrorMessage, modelIdErrorMessage }: ApiOptionsProps) =
color: "var(--vscode-errorForeground)",
fontWeight: 500,
}}>
{t("settings.provider.providers.vscode.experimentalNote").toString()}
{t("settings.provider.providers.vscode.experimentalNote").toString()} README:{" "}
<VSCodeLink href="https://github.com/coolcline/coolcline/blob/main/docs/user-docs/en/configuration/provides.md">
en
</VSCodeLink>
{" | "}
<VSCodeLink href="https://gitee.com/coolcline/coolcline/blob/main/docs/user-docs/zh/configuration/provides.md">
简体中文
</VSCodeLink>
</p>
</div>
</div>
Expand Down

0 comments on commit 3b764ca

Please sign in to comment.