forked from langgenius/dify
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat:add hunyuan model(hunyuan-role, hunyuan-large, hunyuan-large-rol… (
langgenius#11766) Co-authored-by: xanderdong <[email protected]>
- Loading branch information
1 parent
688292e
commit 56434db
Showing
9 changed files
with
276 additions
and
2 deletions.
There are no files selected for viewing
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
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
38 changes: 38 additions & 0 deletions
38
api/core/model_runtime/model_providers/hunyuan/llm/hunyuan-functioncall.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,38 @@ | ||
model: hunyuan-functioncall | ||
label: | ||
zh_Hans: hunyuan-functioncall | ||
en_US: hunyuan-functioncall | ||
model_type: llm | ||
features: | ||
- agent-thought | ||
- tool-call | ||
- multi-tool-call | ||
- stream-tool-call | ||
model_properties: | ||
mode: chat | ||
context_size: 32000 | ||
parameter_rules: | ||
- name: temperature | ||
use_template: temperature | ||
- name: top_p | ||
use_template: top_p | ||
- name: max_tokens | ||
use_template: max_tokens | ||
default: 1024 | ||
min: 1 | ||
max: 32000 | ||
- name: enable_enhance | ||
label: | ||
zh_Hans: 功能增强 | ||
en_US: Enable Enhancement | ||
type: boolean | ||
help: | ||
zh_Hans: 功能增强(如搜索)开关,关闭时将直接由主模型生成回复内容,可以降低响应时延(对于流式输出时的首字时延尤为明显)。但在少数场景里,回复效果可能会下降。 | ||
en_US: Allow the model to perform external search to enhance the generation results. | ||
required: false | ||
default: true | ||
pricing: | ||
input: '0.004' | ||
output: '0.008' | ||
unit: '0.001' | ||
currency: RMB |
38 changes: 38 additions & 0 deletions
38
api/core/model_runtime/model_providers/hunyuan/llm/hunyuan-large-longcontext.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,38 @@ | ||
model: hunyuan-large-longcontext | ||
label: | ||
zh_Hans: hunyuan-large-longcontext | ||
en_US: hunyuan-large-longcontext | ||
model_type: llm | ||
features: | ||
- agent-thought | ||
- tool-call | ||
- multi-tool-call | ||
- stream-tool-call | ||
model_properties: | ||
mode: chat | ||
context_size: 134000 | ||
parameter_rules: | ||
- name: temperature | ||
use_template: temperature | ||
- name: top_p | ||
use_template: top_p | ||
- name: max_tokens | ||
use_template: max_tokens | ||
default: 1024 | ||
min: 1 | ||
max: 134000 | ||
- name: enable_enhance | ||
label: | ||
zh_Hans: 功能增强 | ||
en_US: Enable Enhancement | ||
type: boolean | ||
help: | ||
zh_Hans: 功能增强(如搜索)开关,关闭时将直接由主模型生成回复内容,可以降低响应时延(对于流式输出时的首字时延尤为明显)。但在少数场景里,回复效果可能会下降。 | ||
en_US: Allow the model to perform external search to enhance the generation results. | ||
required: false | ||
default: true | ||
pricing: | ||
input: '0.006' | ||
output: '0.018' | ||
unit: '0.001' | ||
currency: RMB |
38 changes: 38 additions & 0 deletions
38
api/core/model_runtime/model_providers/hunyuan/llm/hunyuan-large-role.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,38 @@ | ||
model: hunyuan-large-role | ||
label: | ||
zh_Hans: hunyuan-large-role | ||
en_US: hunyuan-large-role | ||
model_type: llm | ||
features: | ||
- agent-thought | ||
- tool-call | ||
- multi-tool-call | ||
- stream-tool-call | ||
model_properties: | ||
mode: chat | ||
context_size: 32000 | ||
parameter_rules: | ||
- name: temperature | ||
use_template: temperature | ||
- name: top_p | ||
use_template: top_p | ||
- name: max_tokens | ||
use_template: max_tokens | ||
default: 1024 | ||
min: 1 | ||
max: 32000 | ||
- name: enable_enhance | ||
label: | ||
zh_Hans: 功能增强 | ||
en_US: Enable Enhancement | ||
type: boolean | ||
help: | ||
zh_Hans: 功能增强(如搜索)开关,关闭时将直接由主模型生成回复内容,可以降低响应时延(对于流式输出时的首字时延尤为明显)。但在少数场景里,回复效果可能会下降。 | ||
en_US: Allow the model to perform external search to enhance the generation results. | ||
required: false | ||
default: true | ||
pricing: | ||
input: '0.004' | ||
output: '0.008' | ||
unit: '0.001' | ||
currency: RMB |
38 changes: 38 additions & 0 deletions
38
api/core/model_runtime/model_providers/hunyuan/llm/hunyuan-large.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,38 @@ | ||
model: hunyuan-large | ||
label: | ||
zh_Hans: hunyuan-large | ||
en_US: hunyuan-large | ||
model_type: llm | ||
features: | ||
- agent-thought | ||
- tool-call | ||
- multi-tool-call | ||
- stream-tool-call | ||
model_properties: | ||
mode: chat | ||
context_size: 32000 | ||
parameter_rules: | ||
- name: temperature | ||
use_template: temperature | ||
- name: top_p | ||
use_template: top_p | ||
- name: max_tokens | ||
use_template: max_tokens | ||
default: 1024 | ||
min: 1 | ||
max: 32000 | ||
- name: enable_enhance | ||
label: | ||
zh_Hans: 功能增强 | ||
en_US: Enable Enhancement | ||
type: boolean | ||
help: | ||
zh_Hans: 功能增强(如搜索)开关,关闭时将直接由主模型生成回复内容,可以降低响应时延(对于流式输出时的首字时延尤为明显)。但在少数场景里,回复效果可能会下降。 | ||
en_US: Allow the model to perform external search to enhance the generation results. | ||
required: false | ||
default: true | ||
pricing: | ||
input: '0.004' | ||
output: '0.012' | ||
unit: '0.001' | ||
currency: RMB |
38 changes: 38 additions & 0 deletions
38
api/core/model_runtime/model_providers/hunyuan/llm/hunyuan-role.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,38 @@ | ||
model: hunyuan-role | ||
label: | ||
zh_Hans: hunyuan-role | ||
en_US: hunyuan-role | ||
model_type: llm | ||
features: | ||
- agent-thought | ||
- tool-call | ||
- multi-tool-call | ||
- stream-tool-call | ||
model_properties: | ||
mode: chat | ||
context_size: 32000 | ||
parameter_rules: | ||
- name: temperature | ||
use_template: temperature | ||
- name: top_p | ||
use_template: top_p | ||
- name: max_tokens | ||
use_template: max_tokens | ||
default: 1024 | ||
min: 1 | ||
max: 32000 | ||
- name: enable_enhance | ||
label: | ||
zh_Hans: 功能增强 | ||
en_US: Enable Enhancement | ||
type: boolean | ||
help: | ||
zh_Hans: 功能增强(如搜索)开关,关闭时将直接由主模型生成回复内容,可以降低响应时延(对于流式输出时的首字时延尤为明显)。但在少数场景里,回复效果可能会下降。 | ||
en_US: Allow the model to perform external search to enhance the generation results. | ||
required: false | ||
default: true | ||
pricing: | ||
input: '0.004' | ||
output: '0.008' | ||
unit: '0.001' | ||
currency: RMB |
38 changes: 38 additions & 0 deletions
38
api/core/model_runtime/model_providers/hunyuan/llm/hunyuan-turbo-latest.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,38 @@ | ||
model: hunyuan-turbo-latest | ||
label: | ||
zh_Hans: hunyuan-turbo-latest | ||
en_US: hunyuan-turbo-latest | ||
model_type: llm | ||
features: | ||
- agent-thought | ||
- tool-call | ||
- multi-tool-call | ||
- stream-tool-call | ||
model_properties: | ||
mode: chat | ||
context_size: 32000 | ||
parameter_rules: | ||
- name: temperature | ||
use_template: temperature | ||
- name: top_p | ||
use_template: top_p | ||
- name: max_tokens | ||
use_template: max_tokens | ||
default: 1024 | ||
min: 1 | ||
max: 32000 | ||
- name: enable_enhance | ||
label: | ||
zh_Hans: 功能增强 | ||
en_US: Enable Enhancement | ||
type: boolean | ||
help: | ||
zh_Hans: 功能增强(如搜索)开关,关闭时将直接由主模型生成回复内容,可以降低响应时延(对于流式输出时的首字时延尤为明显)。但在少数场景里,回复效果可能会下降。 | ||
en_US: Allow the model to perform external search to enhance the generation results. | ||
required: false | ||
default: true | ||
pricing: | ||
input: '0.015' | ||
output: '0.05' | ||
unit: '0.001' | ||
currency: RMB |
39 changes: 39 additions & 0 deletions
39
api/core/model_runtime/model_providers/hunyuan/llm/hunyuan-turbo-vision.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,39 @@ | ||
model: hunyuan-turbo-vision | ||
label: | ||
zh_Hans: hunyuan-turbo-vision | ||
en_US: hunyuan-turbo-vision | ||
model_type: llm | ||
features: | ||
- agent-thought | ||
- tool-call | ||
- multi-tool-call | ||
- stream-tool-call | ||
- vision | ||
model_properties: | ||
mode: chat | ||
context_size: 8000 | ||
parameter_rules: | ||
- name: temperature | ||
use_template: temperature | ||
- name: top_p | ||
use_template: top_p | ||
- name: max_tokens | ||
use_template: max_tokens | ||
default: 1024 | ||
min: 1 | ||
max: 8000 | ||
- name: enable_enhance | ||
label: | ||
zh_Hans: 功能增强 | ||
en_US: Enable Enhancement | ||
type: boolean | ||
help: | ||
zh_Hans: 功能增强(如搜索)开关,关闭时将直接由主模型生成回复内容,可以降低响应时延(对于流式输出时的首字时延尤为明显)。但在少数场景里,回复效果可能会下降。 | ||
en_US: Allow the model to perform external search to enhance the generation results. | ||
required: false | ||
default: true | ||
pricing: | ||
input: '0.08' | ||
output: '0.08' | ||
unit: '0.001' | ||
currency: RMB |