Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

Add price info for zhipu models (#7084)

orangeclkf288d367ac79
diff --git a/api/core/model_runtime/model_providers/zhipuai/llm/glm-4-0520.yaml b/api/core/model_runtime/model_providers/zhipuai/llm/glm-4-0520.yaml
index 3968e8f2682..8391278e4f1 100644
--- a/api/core/model_runtime/model_providers/zhipuai/llm/glm-4-0520.yaml
+++ b/api/core/model_runtime/model_providers/zhipuai/llm/glm-4-0520.yaml
@@ -37,3 +37,8 @@ parameter_rules:
default: 1024
min: 1
max: 8192
+pricing:
+ input: '0.1'
+ output: '0.1'
+ unit: '0.001'
+ currency: RMB
diff --git a/api/core/model_runtime/model_providers/zhipuai/llm/glm-4-air.yaml b/api/core/model_runtime/model_providers/zhipuai/llm/glm-4-air.yaml
index ae2d5e5d533..7caebd3e4b6 100644
--- a/api/core/model_runtime/model_providers/zhipuai/llm/glm-4-air.yaml
+++ b/api/core/model_runtime/model_providers/zhipuai/llm/glm-4-air.yaml
@@ -37,3 +37,8 @@ parameter_rules:
default: 1024
min: 1
max: 8192
+pricing:
+ input: '0.001'
+ output: '0.001'
+ unit: '0.001'
+ currency: RMB
diff --git a/api/core/model_runtime/model_providers/zhipuai/llm/glm-4-airx.yaml b/api/core/model_runtime/model_providers/zhipuai/llm/glm-4-airx.yaml
index c0038a1ab22..dc123913deb 100644
--- a/api/core/model_runtime/model_providers/zhipuai/llm/glm-4-airx.yaml
+++ b/api/core/model_runtime/model_providers/zhipuai/llm/glm-4-airx.yaml
@@ -37,3 +37,8 @@ parameter_rules:
default: 1024
min: 1
max: 8192
+pricing:
+ input: '0.01'
+ output: '0.01'
+ unit: '0.001'
+ currency: RMB
diff --git a/api/core/model_runtime/model_providers/zhipuai/llm/glm-4-flash.yaml b/api/core/model_runtime/model_providers/zhipuai/llm/glm-4-flash.yaml
index 650f9faee6e..1b1d499ba73 100644
--- a/api/core/model_runtime/model_providers/zhipuai/llm/glm-4-flash.yaml
+++ b/api/core/model_runtime/model_providers/zhipuai/llm/glm-4-flash.yaml
@@ -37,3 +37,8 @@ parameter_rules:
default: 1024
min: 1
max: 8192
+pricing:
+ input: '0.0001'
+ output: '0.0001'
+ unit: '0.001'
+ currency: RMB
diff --git a/api/core/model_runtime/model_providers/zhipuai/text_embedding/embedding-2.yaml b/api/core/model_runtime/model_providers/zhipuai/text_embedding/embedding-2.yaml
index faf0f818c4a..72188e34240 100644
--- a/api/core/model_runtime/model_providers/zhipuai/text_embedding/embedding-2.yaml
+++ b/api/core/model_runtime/model_providers/zhipuai/text_embedding/embedding-2.yaml
@@ -2,3 +2,7 @@ model: embedding-2
model_type: text-embedding
model_properties:
context_size: 512
+pricing:
+ input: '0.0005'
+ unit: '0.001'
+ currency: RMB