forked from langgenius/dify
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/ZuzooVn/dify
- Loading branch information
Showing
63 changed files
with
1,267 additions
and
662 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
from typing import Optional | ||
|
||
from pydantic import BaseModel, Field, PositiveInt | ||
|
||
|
||
class MyScaleConfig(BaseModel): | ||
""" | ||
MyScale configs | ||
""" | ||
|
||
MYSCALE_HOST: Optional[str] = Field( | ||
description='MyScale host', | ||
default=None, | ||
) | ||
|
||
MYSCALE_PORT: Optional[PositiveInt] = Field( | ||
description='MyScale port', | ||
default=8123, | ||
) | ||
|
||
MYSCALE_USER: Optional[str] = Field( | ||
description='MyScale user', | ||
default=None, | ||
) | ||
|
||
MYSCALE_PASSWORD: Optional[str] = Field( | ||
description='MyScale password', | ||
default=None, | ||
) | ||
|
||
MYSCALE_DATABASE: Optional[str] = Field( | ||
description='MyScale database name', | ||
default=None, | ||
) | ||
|
||
MYSCALE_FTS_PARAMS: Optional[str] = Field( | ||
description='MyScale fts index parameters', | ||
default=None, | ||
) |
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
40 changes: 40 additions & 0 deletions
40
api/core/model_runtime/model_providers/wenxin/llm/ernie-4.0-turbo-8k-preview
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,40 @@ | ||
model: ernie-4.0-turbo-8k-preview | ||
label: | ||
en_US: Ernie-4.0-turbo-8k-preview | ||
model_type: llm | ||
features: | ||
- agent-thought | ||
model_properties: | ||
mode: chat | ||
context_size: 8192 | ||
parameter_rules: | ||
- name: temperature | ||
use_template: temperature | ||
min: 0.1 | ||
max: 1.0 | ||
default: 0.8 | ||
- name: top_p | ||
use_template: top_p | ||
- name: max_tokens | ||
use_template: max_tokens | ||
default: 1024 | ||
min: 2 | ||
max: 2048 | ||
- name: presence_penalty | ||
use_template: presence_penalty | ||
default: 1.0 | ||
min: 1.0 | ||
max: 2.0 | ||
- name: frequency_penalty | ||
use_template: frequency_penalty | ||
- name: response_format | ||
use_template: response_format | ||
- name: disable_search | ||
label: | ||
zh_Hans: 禁用搜索 | ||
en_US: Disable Search | ||
type: boolean | ||
help: | ||
zh_Hans: 禁用模型自行进行外部搜索。 | ||
en_US: Disable the model to perform external search. | ||
required: false |
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
Empty file.
Oops, something went wrong.