-
Notifications
You must be signed in to change notification settings - Fork 9.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: added deepseek r1 and v3 to siliconflow (#13238)
- Loading branch information
1 parent
c6ddf6d
commit 00458a3
Showing
2 changed files
with
74 additions
and
0 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
api/core/model_runtime/model_providers/siliconflow/llm/deepseek-r1.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
model: deepseek-ai/DeepSeek-R1 | ||
label: | ||
zh_Hans: deepseek-ai/DeepSeek-R1 | ||
en_US: deepseek-ai/DeepSeek-R1 | ||
model_type: llm | ||
features: | ||
- agent-thought | ||
model_properties: | ||
mode: chat | ||
context_size: 64000 | ||
parameter_rules: | ||
- name: max_tokens | ||
use_template: max_tokens | ||
min: 1 | ||
max: 8192 | ||
default: 4096 | ||
pricing: | ||
input: "4" | ||
output: "16" | ||
unit: "0.000001" | ||
currency: RMB |
53 changes: 53 additions & 0 deletions
53
api/core/model_runtime/model_providers/siliconflow/llm/deepseek-v3.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
model: deepseek-ai/DeepSeek-V3 | ||
label: | ||
en_US: deepseek-ai/DeepSeek-V3 | ||
model_type: llm | ||
features: | ||
- agent-thought | ||
- tool-call | ||
- stream-tool-call | ||
model_properties: | ||
mode: chat | ||
context_size: 64000 | ||
parameter_rules: | ||
- name: temperature | ||
use_template: temperature | ||
- name: max_tokens | ||
use_template: max_tokens | ||
type: int | ||
default: 512 | ||
min: 1 | ||
max: 4096 | ||
help: | ||
zh_Hans: 指定生成结果长度的上限。如果生成结果截断,可以调大该参数。 | ||
en_US: Specifies the upper limit on the length of generated results. If the generated results are truncated, you can increase this parameter. | ||
- name: top_p | ||
use_template: top_p | ||
- name: top_k | ||
label: | ||
zh_Hans: 取样数量 | ||
en_US: Top k | ||
type: int | ||
help: | ||
zh_Hans: 仅从每个后续标记的前 K 个选项中采样。 | ||
en_US: Only sample from the top K options for each subsequent token. | ||
required: false | ||
- name: frequency_penalty | ||
use_template: frequency_penalty | ||
- name: response_format | ||
label: | ||
zh_Hans: 回复格式 | ||
en_US: Response Format | ||
type: string | ||
help: | ||
zh_Hans: 指定模型必须输出的格式 | ||
en_US: specifying the format that the model must output | ||
required: false | ||
options: | ||
- text | ||
- json_object | ||
pricing: | ||
input: "1" | ||
output: "2" | ||
unit: "0.000001" | ||
currency: RMB |