-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'langgenius:main' into main
- Loading branch information
Showing
143 changed files
with
4,605 additions
and
151 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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
# TODO: Update all string in code to use this constant | ||
HIDDEN_VALUE = '[__HIDDEN__]' | ||
HIDDEN_VALUE = '[__HIDDEN__]' |
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
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
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
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 |
---|---|---|
|
@@ -36,3 +36,4 @@ | |
- hunyuan | ||
- siliconflow | ||
- perfxcloud | ||
- zhinao |
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
2 changes: 1 addition & 1 deletion
2
api/core/model_runtime/model_providers/jina/rerank/jina-reranker-v2-base-multilingual.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
model: jina-reranker-v2-base-multilingual | ||
model_type: rerank | ||
model_properties: | ||
context_size: 8192 | ||
context_size: 1024 |
1 change: 1 addition & 0 deletions
1
api/core/model_runtime/model_providers/openai/llm/_position.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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
- gpt-4 | ||
- gpt-4o | ||
- gpt-4o-2024-05-13 | ||
- gpt-4o-2024-08-06 | ||
- gpt-4o-mini | ||
- gpt-4o-mini-2024-07-18 | ||
- gpt-4-turbo | ||
|
44 changes: 44 additions & 0 deletions
44
api/core/model_runtime/model_providers/openai/llm/gpt-4o-2024-08-06.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,44 @@ | ||
model: gpt-4o-2024-08-06 | ||
label: | ||
zh_Hans: gpt-4o-2024-08-06 | ||
en_US: gpt-4o-2024-08-06 | ||
model_type: llm | ||
features: | ||
- multi-tool-call | ||
- agent-thought | ||
- stream-tool-call | ||
- vision | ||
model_properties: | ||
mode: chat | ||
context_size: 128000 | ||
parameter_rules: | ||
- name: temperature | ||
use_template: temperature | ||
- name: top_p | ||
use_template: top_p | ||
- name: presence_penalty | ||
use_template: presence_penalty | ||
- name: frequency_penalty | ||
use_template: frequency_penalty | ||
- name: max_tokens | ||
use_template: max_tokens | ||
default: 512 | ||
min: 1 | ||
max: 16384 | ||
- 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: '2.50' | ||
output: '10.00' | ||
unit: '0.000001' | ||
currency: USD |
28 changes: 20 additions & 8 deletions
28
api/core/model_runtime/model_providers/siliconflow/llm/_position.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 |
---|---|---|
@@ -1,8 +1,20 @@ | ||
- deepseek-v2-chat | ||
- qwen2-72b-instruct | ||
- qwen2-57b-a14b-instruct | ||
- qwen2-7b-instruct | ||
- yi-1.5-34b-chat | ||
- yi-1.5-9b-chat | ||
- yi-1.5-6b-chat | ||
- glm4-9B-chat | ||
- Qwen/Qwen2-72B-Instruct | ||
- Qwen/Qwen2-57B-A14B-Instruct | ||
- Qwen/Qwen2-7B-Instruct | ||
- Qwen/Qwen2-1.5B-Instruct | ||
- 01-ai/Yi-1.5-34B-Chat | ||
- 01-ai/Yi-1.5-9B-Chat-16K | ||
- 01-ai/Yi-1.5-6B-Chat | ||
- THUDM/glm-4-9b-chat | ||
- deepseek-ai/DeepSeek-V2-Chat | ||
- deepseek-ai/DeepSeek-Coder-V2-Instruct | ||
- internlm/internlm2_5-7b-chat | ||
- google/gemma-2-27b-it | ||
- google/gemma-2-9b-it | ||
- meta-llama/Meta-Llama-3-70B-Instruct | ||
- meta-llama/Meta-Llama-3-8B-Instruct | ||
- meta-llama/Meta-Llama-3.1-405B-Instruct | ||
- meta-llama/Meta-Llama-3.1-70B-Instruct | ||
- meta-llama/Meta-Llama-3.1-8B-Instruct | ||
- mistralai/Mixtral-8x7B-Instruct-v0.1 | ||
- mistralai/Mistral-7B-Instruct-v0.2 |
2 changes: 1 addition & 1 deletion
2
api/core/model_runtime/model_providers/siliconflow/llm/deepseek-v2-chat.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
30 changes: 30 additions & 0 deletions
30
api/core/model_runtime/model_providers/siliconflow/llm/gemma-2-27b-it.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,30 @@ | ||
model: google/gemma-2-27b-it | ||
label: | ||
en_US: google/gemma-2-27b-it | ||
model_type: llm | ||
features: | ||
- agent-thought | ||
model_properties: | ||
mode: chat | ||
context_size: 8196 | ||
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: frequency_penalty | ||
use_template: frequency_penalty | ||
pricing: | ||
input: '1.26' | ||
output: '1.26' | ||
unit: '0.000001' | ||
currency: RMB |
30 changes: 30 additions & 0 deletions
30
api/core/model_runtime/model_providers/siliconflow/llm/gemma-2-9b-it.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,30 @@ | ||
model: google/gemma-2-9b-it | ||
label: | ||
en_US: google/gemma-2-9b-it | ||
model_type: llm | ||
features: | ||
- agent-thought | ||
model_properties: | ||
mode: chat | ||
context_size: 8196 | ||
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: frequency_penalty | ||
use_template: frequency_penalty | ||
pricing: | ||
input: '0' | ||
output: '0' | ||
unit: '0.000001' | ||
currency: RMB |
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
Oops, something went wrong.