Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dify
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ai-tech
dify
Commits
33901384
Unverified
Commit
33901384
authored
Jan 09, 2024
by
takatost
Committed by
GitHub
Jan 09, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: httpx socks package missing (#1977)
parent
7a221d08
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
21 deletions
+21
-21
customizable_model_scale_out.md
...odel_runtime/docs/zh_Hans/customizable_model_scale_out.md
+1
-1
_constant.py
...e/model_runtime/model_providers/azure_openai/_constant.py
+16
-16
llm.py
.../model_runtime/model_providers/huggingface_hub/llm/llm.py
+2
-2
requirements.txt
api/requirements.txt
+2
-2
No files found.
api/core/model_runtime/docs/zh_Hans/customizable_model_scale_out.md
View file @
33901384
...
@@ -260,7 +260,7 @@ provider_credential_schema:
...
@@ -260,7 +260,7 @@ provider_credential_schema:
fetch_from=FetchFrom.CUSTOMIZABLE_MODEL,
fetch_from=FetchFrom.CUSTOMIZABLE_MODEL,
model_type=model_type,
model_type=model_type,
model_properties={
model_properties={
'mode'
: ModelType.LLM,
ModelPropertyKey.MODE
: ModelType.LLM,
},
},
parameter_rules=rules
parameter_rules=rules
)
)
...
...
api/core/model_runtime/model_providers/azure_openai/_constant.py
View file @
33901384
...
@@ -40,8 +40,8 @@ LLM_BASE_MODELS = [
...
@@ -40,8 +40,8 @@ LLM_BASE_MODELS = [
],
],
fetch_from
=
FetchFrom
.
CUSTOMIZABLE_MODEL
,
fetch_from
=
FetchFrom
.
CUSTOMIZABLE_MODEL
,
model_properties
=
{
model_properties
=
{
'mode'
:
LLMMode
.
CHAT
.
value
,
ModelPropertyKey
.
MODE
:
LLMMode
.
CHAT
.
value
,
'context_size'
:
4096
,
ModelPropertyKey
.
CONTEXT_SIZE
:
4096
,
},
},
parameter_rules
=
[
parameter_rules
=
[
ParameterRule
(
ParameterRule
(
...
@@ -84,8 +84,8 @@ LLM_BASE_MODELS = [
...
@@ -84,8 +84,8 @@ LLM_BASE_MODELS = [
],
],
fetch_from
=
FetchFrom
.
CUSTOMIZABLE_MODEL
,
fetch_from
=
FetchFrom
.
CUSTOMIZABLE_MODEL
,
model_properties
=
{
model_properties
=
{
'mode'
:
LLMMode
.
CHAT
.
value
,
ModelPropertyKey
.
MODE
:
LLMMode
.
CHAT
.
value
,
'context_size'
:
16385
,
ModelPropertyKey
.
CONTEXT_SIZE
:
16385
,
},
},
parameter_rules
=
[
parameter_rules
=
[
ParameterRule
(
ParameterRule
(
...
@@ -128,8 +128,8 @@ LLM_BASE_MODELS = [
...
@@ -128,8 +128,8 @@ LLM_BASE_MODELS = [
],
],
fetch_from
=
FetchFrom
.
CUSTOMIZABLE_MODEL
,
fetch_from
=
FetchFrom
.
CUSTOMIZABLE_MODEL
,
model_properties
=
{
model_properties
=
{
'mode'
:
LLMMode
.
CHAT
.
value
,
ModelPropertyKey
.
MODE
:
LLMMode
.
CHAT
.
value
,
'context_size'
:
8192
,
ModelPropertyKey
.
CONTEXT_SIZE
:
8192
,
},
},
parameter_rules
=
[
parameter_rules
=
[
ParameterRule
(
ParameterRule
(
...
@@ -202,8 +202,8 @@ LLM_BASE_MODELS = [
...
@@ -202,8 +202,8 @@ LLM_BASE_MODELS = [
],
],
fetch_from
=
FetchFrom
.
CUSTOMIZABLE_MODEL
,
fetch_from
=
FetchFrom
.
CUSTOMIZABLE_MODEL
,
model_properties
=
{
model_properties
=
{
'mode'
:
LLMMode
.
CHAT
.
value
,
ModelPropertyKey
.
MODE
:
LLMMode
.
CHAT
.
value
,
'context_size'
:
32768
,
ModelPropertyKey
.
CONTEXT_SIZE
:
32768
,
},
},
parameter_rules
=
[
parameter_rules
=
[
ParameterRule
(
ParameterRule
(
...
@@ -276,8 +276,8 @@ LLM_BASE_MODELS = [
...
@@ -276,8 +276,8 @@ LLM_BASE_MODELS = [
],
],
fetch_from
=
FetchFrom
.
CUSTOMIZABLE_MODEL
,
fetch_from
=
FetchFrom
.
CUSTOMIZABLE_MODEL
,
model_properties
=
{
model_properties
=
{
'mode'
:
LLMMode
.
CHAT
.
value
,
ModelPropertyKey
.
MODE
:
LLMMode
.
CHAT
.
value
,
'context_size'
:
128000
,
ModelPropertyKey
.
CONTEXT_SIZE
:
128000
,
},
},
parameter_rules
=
[
parameter_rules
=
[
ParameterRule
(
ParameterRule
(
...
@@ -349,8 +349,8 @@ LLM_BASE_MODELS = [
...
@@ -349,8 +349,8 @@ LLM_BASE_MODELS = [
],
],
fetch_from
=
FetchFrom
.
CUSTOMIZABLE_MODEL
,
fetch_from
=
FetchFrom
.
CUSTOMIZABLE_MODEL
,
model_properties
=
{
model_properties
=
{
'mode'
:
LLMMode
.
CHAT
.
value
,
ModelPropertyKey
.
MODE
:
LLMMode
.
CHAT
.
value
,
'context_size'
:
128000
,
ModelPropertyKey
.
CONTEXT_SIZE
:
128000
,
},
},
parameter_rules
=
[
parameter_rules
=
[
ParameterRule
(
ParameterRule
(
...
@@ -419,8 +419,8 @@ LLM_BASE_MODELS = [
...
@@ -419,8 +419,8 @@ LLM_BASE_MODELS = [
model_type
=
ModelType
.
LLM
,
model_type
=
ModelType
.
LLM
,
fetch_from
=
FetchFrom
.
CUSTOMIZABLE_MODEL
,
fetch_from
=
FetchFrom
.
CUSTOMIZABLE_MODEL
,
model_properties
=
{
model_properties
=
{
'mode'
:
LLMMode
.
COMPLETION
.
value
,
ModelPropertyKey
.
MODE
:
LLMMode
.
COMPLETION
.
value
,
'context_size'
:
4096
,
ModelPropertyKey
.
CONTEXT_SIZE
:
4096
,
},
},
parameter_rules
=
[
parameter_rules
=
[
ParameterRule
(
ParameterRule
(
...
@@ -459,8 +459,8 @@ LLM_BASE_MODELS = [
...
@@ -459,8 +459,8 @@ LLM_BASE_MODELS = [
model_type
=
ModelType
.
LLM
,
model_type
=
ModelType
.
LLM
,
fetch_from
=
FetchFrom
.
CUSTOMIZABLE_MODEL
,
fetch_from
=
FetchFrom
.
CUSTOMIZABLE_MODEL
,
model_properties
=
{
model_properties
=
{
'mode'
:
LLMMode
.
COMPLETION
.
value
,
ModelPropertyKey
.
MODE
:
LLMMode
.
COMPLETION
.
value
,
'context_size'
:
4096
,
ModelPropertyKey
.
CONTEXT_SIZE
:
4096
,
},
},
parameter_rules
=
[
parameter_rules
=
[
ParameterRule
(
ParameterRule
(
...
...
api/core/model_runtime/model_providers/huggingface_hub/llm/llm.py
View file @
33901384
...
@@ -10,7 +10,7 @@ from core.model_runtime.entities.llm_entities import LLMResult, LLMResultChunk,
...
@@ -10,7 +10,7 @@ from core.model_runtime.entities.llm_entities import LLMResult, LLMResultChunk,
from
core.model_runtime.entities.message_entities
import
PromptMessage
,
PromptMessageTool
,
AssistantPromptMessage
,
\
from
core.model_runtime.entities.message_entities
import
PromptMessage
,
PromptMessageTool
,
AssistantPromptMessage
,
\
UserPromptMessage
,
SystemPromptMessage
UserPromptMessage
,
SystemPromptMessage
from
core.model_runtime.entities.model_entities
import
ParameterRule
,
DefaultParameterName
,
AIModelEntity
,
ModelType
,
\
from
core.model_runtime.entities.model_entities
import
ParameterRule
,
DefaultParameterName
,
AIModelEntity
,
ModelType
,
\
FetchFrom
FetchFrom
,
ModelPropertyKey
from
core.model_runtime.errors.validate
import
CredentialsValidateFailedError
from
core.model_runtime.errors.validate
import
CredentialsValidateFailedError
from
core.model_runtime.model_providers.__base.large_language_model
import
LargeLanguageModel
from
core.model_runtime.model_providers.__base.large_language_model
import
LargeLanguageModel
from
core.model_runtime.model_providers.huggingface_hub._common
import
_CommonHuggingfaceHub
from
core.model_runtime.model_providers.huggingface_hub._common
import
_CommonHuggingfaceHub
...
@@ -97,7 +97,7 @@ class HuggingfaceHubLargeLanguageModel(_CommonHuggingfaceHub, LargeLanguageModel
...
@@ -97,7 +97,7 @@ class HuggingfaceHubLargeLanguageModel(_CommonHuggingfaceHub, LargeLanguageModel
fetch_from
=
FetchFrom
.
CUSTOMIZABLE_MODEL
,
fetch_from
=
FetchFrom
.
CUSTOMIZABLE_MODEL
,
model_type
=
ModelType
.
LLM
,
model_type
=
ModelType
.
LLM
,
model_properties
=
{
model_properties
=
{
'mode'
:
LLMMode
.
COMPLETION
.
value
ModelPropertyKey
.
MODE
:
LLMMode
.
COMPLETION
.
value
},
},
parameter_rules
=
self
.
_get_customizable_model_parameter_rules
()
parameter_rules
=
self
.
_get_customizable_model_parameter_rules
()
)
)
...
...
api/requirements.txt
View file @
33901384
...
@@ -57,8 +57,8 @@ qdrant-client==1.6.4
...
@@ -57,8 +57,8 @@ qdrant-client==1.6.4
cohere~=4.32
cohere~=4.32
pyyaml~=6.0.1
pyyaml~=6.0.1
numpy~=1.25.2
numpy~=1.25.2
unstructured~=0.10.27
unstructured[docx,pptx,msg,md,ppt]~=0.10.27
unstructured[docx,pptx,msg,md,ppt]~=0.10.27
bs4~=0.0.1
bs4~=0.0.1
markdown~=3.5.1
markdown~=3.5.1
google-generativeai~=0.3.2
google-generativeai~=0.3.2
\ No newline at end of file
httpx[socks]~=0.24.1
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment