mirror of
https://github.com/langgenius/dify.git
synced 2026-04-05 15:29:21 +08:00
feat: server multi models support (#799)
This commit is contained in:
12
api/core/model_providers/rules/_providers.json
Normal file
12
api/core/model_providers/rules/_providers.json
Normal file
@@ -0,0 +1,12 @@
|
||||
[
|
||||
"openai",
|
||||
"azure_openai",
|
||||
"anthropic",
|
||||
"minimax",
|
||||
"tongyi",
|
||||
"spark",
|
||||
"wenxin",
|
||||
"chatglm",
|
||||
"replicate",
|
||||
"huggingface_hub"
|
||||
]
|
||||
15
api/core/model_providers/rules/anthropic.json
Normal file
15
api/core/model_providers/rules/anthropic.json
Normal file
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"support_provider_types": [
|
||||
"system",
|
||||
"custom"
|
||||
],
|
||||
"system_config": {
|
||||
"supported_quota_types": [
|
||||
"trial",
|
||||
"paid"
|
||||
],
|
||||
"quota_unit": "times",
|
||||
"quota_limit": 1000
|
||||
},
|
||||
"model_flexibility": "fixed"
|
||||
}
|
||||
7
api/core/model_providers/rules/azure_openai.json
Normal file
7
api/core/model_providers/rules/azure_openai.json
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"support_provider_types": [
|
||||
"custom"
|
||||
],
|
||||
"system_config": null,
|
||||
"model_flexibility": "configurable"
|
||||
}
|
||||
7
api/core/model_providers/rules/chatglm.json
Normal file
7
api/core/model_providers/rules/chatglm.json
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"support_provider_types": [
|
||||
"custom"
|
||||
],
|
||||
"system_config": null,
|
||||
"model_flexibility": "fixed"
|
||||
}
|
||||
7
api/core/model_providers/rules/huggingface_hub.json
Normal file
7
api/core/model_providers/rules/huggingface_hub.json
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"support_provider_types": [
|
||||
"custom"
|
||||
],
|
||||
"system_config": null,
|
||||
"model_flexibility": "configurable"
|
||||
}
|
||||
13
api/core/model_providers/rules/minimax.json
Normal file
13
api/core/model_providers/rules/minimax.json
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"support_provider_types": [
|
||||
"system",
|
||||
"custom"
|
||||
],
|
||||
"system_config": {
|
||||
"supported_quota_types": [
|
||||
"free"
|
||||
],
|
||||
"quota_unit": "tokens"
|
||||
},
|
||||
"model_flexibility": "fixed"
|
||||
}
|
||||
14
api/core/model_providers/rules/openai.json
Normal file
14
api/core/model_providers/rules/openai.json
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"support_provider_types": [
|
||||
"system",
|
||||
"custom"
|
||||
],
|
||||
"system_config": {
|
||||
"supported_quota_types": [
|
||||
"trial"
|
||||
],
|
||||
"quota_unit": "times",
|
||||
"quota_limit": 200
|
||||
},
|
||||
"model_flexibility": "fixed"
|
||||
}
|
||||
7
api/core/model_providers/rules/replicate.json
Normal file
7
api/core/model_providers/rules/replicate.json
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"support_provider_types": [
|
||||
"custom"
|
||||
],
|
||||
"system_config": null,
|
||||
"model_flexibility": "configurable"
|
||||
}
|
||||
13
api/core/model_providers/rules/spark.json
Normal file
13
api/core/model_providers/rules/spark.json
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"support_provider_types": [
|
||||
"system",
|
||||
"custom"
|
||||
],
|
||||
"system_config": {
|
||||
"supported_quota_types": [
|
||||
"free"
|
||||
],
|
||||
"quota_unit": "tokens"
|
||||
},
|
||||
"model_flexibility": "fixed"
|
||||
}
|
||||
7
api/core/model_providers/rules/tongyi.json
Normal file
7
api/core/model_providers/rules/tongyi.json
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"support_provider_types": [
|
||||
"custom"
|
||||
],
|
||||
"system_config": null,
|
||||
"model_flexibility": "fixed"
|
||||
}
|
||||
7
api/core/model_providers/rules/wenxin.json
Normal file
7
api/core/model_providers/rules/wenxin.json
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"support_provider_types": [
|
||||
"custom"
|
||||
],
|
||||
"system_config": null,
|
||||
"model_flexibility": "fixed"
|
||||
}
|
||||
Reference in New Issue
Block a user