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.

fix: response_format label (#8326)

Nam Vu153807f24395
diff --git a/api/core/model_runtime/model_providers/baichuan/llm/baichuan3-turbo-128k.yaml b/api/core/model_runtime/model_providers/baichuan/llm/baichuan3-turbo-128k.yaml
index c6c6c7e9e91..d9cd086e82c 100644
--- a/api/core/model_runtime/model_providers/baichuan/llm/baichuan3-turbo-128k.yaml
+++ b/api/core/model_runtime/model_providers/baichuan/llm/baichuan3-turbo-128k.yaml
@@ -33,7 +33,7 @@ parameter_rules:
- name: res_format
label:
zh_Hans: 回复格式
- en_US: response format
+ en_US: Response Format
type: string
help:
zh_Hans: 指定模型必须输出的格式
diff --git a/api/core/model_runtime/model_providers/baichuan/llm/baichuan3-turbo.yaml b/api/core/model_runtime/model_providers/baichuan/llm/baichuan3-turbo.yaml
index ee8a9ff0d54..58f9b39a438 100644
--- a/api/core/model_runtime/model_providers/baichuan/llm/baichuan3-turbo.yaml
+++ b/api/core/model_runtime/model_providers/baichuan/llm/baichuan3-turbo.yaml
@@ -33,7 +33,7 @@ parameter_rules:
- name: res_format
label:
zh_Hans: 回复格式
- en_US: response format
+ en_US: Response Format
type: string
help:
zh_Hans: 指定模型必须输出的格式
diff --git a/api/core/model_runtime/model_providers/baichuan/llm/baichuan4.yaml b/api/core/model_runtime/model_providers/baichuan/llm/baichuan4.yaml
index e5e6aeb4915..6a1135e165f 100644
--- a/api/core/model_runtime/model_providers/baichuan/llm/baichuan4.yaml
+++ b/api/core/model_runtime/model_providers/baichuan/llm/baichuan4.yaml
@@ -33,7 +33,7 @@ parameter_rules:
- name: res_format
label:
zh_Hans: 回复格式
- en_US: response format
+ en_US: Response Format
type: string
help:
zh_Hans: 指定模型必须输出的格式
diff --git a/api/core/model_runtime/model_providers/deepseek/llm/deepseek-chat.yaml b/api/core/model_runtime/model_providers/deepseek/llm/deepseek-chat.yaml
index 6588a4b5e01..4973ac8ad69 100644
--- a/api/core/model_runtime/model_providers/deepseek/llm/deepseek-chat.yaml
+++ b/api/core/model_runtime/model_providers/deepseek/llm/deepseek-chat.yaml
@@ -62,7 +62,7 @@ parameter_rules:
- name: response_format
label:
zh_Hans: 回复格式
- en_US: response_format
+ en_US: Response Format
type: string
help:
zh_Hans: 指定模型必须输出的格式
diff --git a/api/core/model_runtime/model_providers/moonshot/llm/moonshot-v1-128k.yaml b/api/core/model_runtime/model_providers/moonshot/llm/moonshot-v1-128k.yaml
index 1078e84c59d..59c0915ee9b 100644
--- a/api/core/model_runtime/model_providers/moonshot/llm/moonshot-v1-128k.yaml
+++ b/api/core/model_runtime/model_providers/moonshot/llm/moonshot-v1-128k.yaml
@@ -24,7 +24,7 @@ parameter_rules:
- name: response_format
label:
zh_Hans: 回复格式
- en_US: response_format
+ en_US: Response Format
type: string
help:
zh_Hans: 指定模型必须输出的格式
diff --git a/api/core/model_runtime/model_providers/moonshot/llm/moonshot-v1-32k.yaml b/api/core/model_runtime/model_providers/moonshot/llm/moonshot-v1-32k.yaml
index 9c739d05019..724f2aa5a29 100644
--- a/api/core/model_runtime/model_providers/moonshot/llm/moonshot-v1-32k.yaml
+++ b/api/core/model_runtime/model_providers/moonshot/llm/moonshot-v1-32k.yaml
@@ -24,7 +24,7 @@ parameter_rules:
- name: response_format
label:
zh_Hans: 回复格式
- en_US: response_format
+ en_US: Response Format
type: string
help:
zh_Hans: 指定模型必须输出的格式
diff --git a/api/core/model_runtime/model_providers/moonshot/llm/moonshot-v1-8k.yaml b/api/core/model_runtime/model_providers/moonshot/llm/moonshot-v1-8k.yaml
index 187a86999e1..5872295bfad 100644
--- a/api/core/model_runtime/model_providers/moonshot/llm/moonshot-v1-8k.yaml
+++ b/api/core/model_runtime/model_providers/moonshot/llm/moonshot-v1-8k.yaml
@@ -24,7 +24,7 @@ parameter_rules:
- name: response_format
label:
zh_Hans: 回复格式
- en_US: response_format
+ en_US: Response Format
type: string
help:
zh_Hans: 指定模型必须输出的格式
diff --git a/api/core/model_runtime/model_providers/openai/llm/chatgpt-4o-latest.yaml b/api/core/model_runtime/model_providers/openai/llm/chatgpt-4o-latest.yaml
index 98e236650c9..b47449a49ab 100644
--- a/api/core/model_runtime/model_providers/openai/llm/chatgpt-4o-latest.yaml
+++ b/api/core/model_runtime/model_providers/openai/llm/chatgpt-4o-latest.yaml
@@ -28,7 +28,7 @@ parameter_rules:
- name: response_format
label:
zh_Hans: 回复格式
- en_US: response_format
+ en_US: Response Format
type: string
help:
zh_Hans: 指定模型必须输出的格式
diff --git a/api/core/model_runtime/model_providers/openai/llm/gpt-3.5-turbo-0125.yaml b/api/core/model_runtime/model_providers/openai/llm/gpt-3.5-turbo-0125.yaml
index c1602b2efcb..ffa725ec40f 100644
--- a/api/core/model_runtime/model_providers/openai/llm/gpt-3.5-turbo-0125.yaml
+++ b/api/core/model_runtime/model_providers/openai/llm/gpt-3.5-turbo-0125.yaml
@@ -27,7 +27,7 @@ parameter_rules:
- name: response_format
label:
zh_Hans: 回复格式
- en_US: response_format
+ en_US: Response Format
type: string
help:
zh_Hans: 指定模型必须输出的格式
diff --git a/api/core/model_runtime/model_providers/openai/llm/gpt-3.5-turbo-1106.yaml b/api/core/model_runtime/model_providers/openai/llm/gpt-3.5-turbo-1106.yaml
index 56ab965c39c..21150fc3a6d 100644
--- a/api/core/model_runtime/model_providers/openai/llm/gpt-3.5-turbo-1106.yaml
+++ b/api/core/model_runtime/model_providers/openai/llm/gpt-3.5-turbo-1106.yaml
@@ -27,7 +27,7 @@ parameter_rules:
- name: response_format
label:
zh_Hans: 回复格式
- en_US: response_format
+ en_US: Response Format
type: string
help:
zh_Hans: 指定模型必须输出的格式
diff --git a/api/core/model_runtime/model_providers/openai/llm/gpt-3.5-turbo.yaml b/api/core/model_runtime/model_providers/openai/llm/gpt-3.5-turbo.yaml
index 6eb15e6c0df..d3a8ee535a9 100644
--- a/api/core/model_runtime/model_providers/openai/llm/gpt-3.5-turbo.yaml
+++ b/api/core/model_runtime/model_providers/openai/llm/gpt-3.5-turbo.yaml
@@ -27,7 +27,7 @@ parameter_rules:
- name: response_format
label:
zh_Hans: 回复格式
- en_US: response_format
+ en_US: Response Format
type: string
help:
zh_Hans: 指定模型必须输出的格式
diff --git a/api/core/model_runtime/model_providers/openai/llm/gpt-4-0125-preview.yaml b/api/core/model_runtime/model_providers/openai/llm/gpt-4-0125-preview.yaml
index 007cfed0f3a..ac4ec5840bd 100644
--- a/api/core/model_runtime/model_providers/openai/llm/gpt-4-0125-preview.yaml
+++ b/api/core/model_runtime/model_providers/openai/llm/gpt-4-0125-preview.yaml
@@ -40,7 +40,7 @@ parameter_rules:
- name: response_format
label:
zh_Hans: 回复格式
- en_US: response_format
+ en_US: Response Format
type: string
help:
zh_Hans: 指定模型必须输出的格式
diff --git a/api/core/model_runtime/model_providers/openai/llm/gpt-4-1106-preview.yaml b/api/core/model_runtime/model_providers/openai/llm/gpt-4-1106-preview.yaml
index f4fa6317af8..d7752397701 100644
--- a/api/core/model_runtime/model_providers/openai/llm/gpt-4-1106-preview.yaml
+++ b/api/core/model_runtime/model_providers/openai/llm/gpt-4-1106-preview.yaml
@@ -40,7 +40,7 @@ parameter_rules:
- name: response_format
label:
zh_Hans: 回复格式
- en_US: response_format
+ en_US: Response Format
type: string
help:
zh_Hans: 指定模型必须输出的格式
diff --git a/api/core/model_runtime/model_providers/openai/llm/gpt-4-32k.yaml b/api/core/model_runtime/model_providers/openai/llm/gpt-4-32k.yaml
index f92173ccfd9..8358425e6d2 100644
--- a/api/core/model_runtime/model_providers/openai/llm/gpt-4-32k.yaml
+++ b/api/core/model_runtime/model_providers/openai/llm/gpt-4-32k.yaml
@@ -40,7 +40,7 @@ parameter_rules:
- name: response_format
label:
zh_Hans: 回复格式
- en_US: response_format
+ en_US: Response Format
type: string
help:
zh_Hans: 指定模型必须输出的格式
diff --git a/api/core/model_runtime/model_providers/openai/llm/gpt-4-turbo-2024-04-09.yaml b/api/core/model_runtime/model_providers/openai/llm/gpt-4-turbo-2024-04-09.yaml
index 6b36361efe8..0234499164a 100644
--- a/api/core/model_runtime/model_providers/openai/llm/gpt-4-turbo-2024-04-09.yaml
+++ b/api/core/model_runtime/model_providers/openai/llm/gpt-4-turbo-2024-04-09.yaml
@@ -41,7 +41,7 @@ parameter_rules:
- name: response_format
label:
zh_Hans: 回复格式
- en_US: response_format
+ en_US: Response Format
type: string
help:
zh_Hans: 指定模型必须输出的格式
diff --git a/api/core/model_runtime/model_providers/openai/llm/gpt-4-turbo-preview.yaml b/api/core/model_runtime/model_providers/openai/llm/gpt-4-turbo-preview.yaml
index c0350ae2c6d..8d29cf0c04a 100644
--- a/api/core/model_runtime/model_providers/openai/llm/gpt-4-turbo-preview.yaml
+++ b/api/core/model_runtime/model_providers/openai/llm/gpt-4-turbo-preview.yaml
@@ -40,7 +40,7 @@ parameter_rules:
- name: response_format
label:
zh_Hans: 回复格式
- en_US: response_format
+ en_US: Response Format
type: string
help:
zh_Hans: 指定模型必须输出的格式
diff --git a/api/core/model_runtime/model_providers/openai/llm/gpt-4-turbo.yaml b/api/core/model_runtime/model_providers/openai/llm/gpt-4-turbo.yaml
index 575acb7fa29..b25ff6a8126 100644
--- a/api/core/model_runtime/model_providers/openai/llm/gpt-4-turbo.yaml
+++ b/api/core/model_runtime/model_providers/openai/llm/gpt-4-turbo.yaml
@@ -41,7 +41,7 @@ parameter_rules:
- name: response_format
label:
zh_Hans: 回复格式
- en_US: response_format
+ en_US: Response Format
type: string
help:
zh_Hans: 指定模型必须输出的格式
diff --git a/api/core/model_runtime/model_providers/openai/llm/gpt-4-vision-preview.yaml b/api/core/model_runtime/model_providers/openai/llm/gpt-4-vision-preview.yaml
index a63b6084239..07037c66438 100644
--- a/api/core/model_runtime/model_providers/openai/llm/gpt-4-vision-preview.yaml
+++ b/api/core/model_runtime/model_providers/openai/llm/gpt-4-vision-preview.yaml
@@ -38,7 +38,7 @@ parameter_rules:
- name: response_format
label:
zh_Hans: 回复格式
- en_US: response_format
+ en_US: Response Format
type: string
help:
zh_Hans: 指定模型必须输出的格式
diff --git a/api/core/model_runtime/model_providers/openai/llm/gpt-4.yaml b/api/core/model_runtime/model_providers/openai/llm/gpt-4.yaml
index a7a5bf3c864..f7b5138b7df 100644
--- a/api/core/model_runtime/model_providers/openai/llm/gpt-4.yaml
+++ b/api/core/model_runtime/model_providers/openai/llm/gpt-4.yaml
@@ -40,7 +40,7 @@ parameter_rules:
- name: response_format
label:
zh_Hans: 回复格式
- en_US: response_format
+ en_US: Response Format
type: string
help:
zh_Hans: 指定模型必须输出的格式
diff --git a/api/core/model_runtime/model_providers/openai/llm/gpt-4o-2024-05-13.yaml b/api/core/model_runtime/model_providers/openai/llm/gpt-4o-2024-05-13.yaml
index f0d835cba21..b630d6f6307 100644
--- a/api/core/model_runtime/model_providers/openai/llm/gpt-4o-2024-05-13.yaml
+++ b/api/core/model_runtime/model_providers/openai/llm/gpt-4o-2024-05-13.yaml
@@ -28,7 +28,7 @@ parameter_rules:
- name: response_format
label:
zh_Hans: 回复格式
- en_US: response_format
+ en_US: Response Format
type: string
help:
zh_Hans: 指定模型必须输出的格式
diff --git a/api/core/model_runtime/model_providers/openai/llm/gpt-4o-2024-08-06.yaml b/api/core/model_runtime/model_providers/openai/llm/gpt-4o-2024-08-06.yaml
index 7e430c51a71..73b7f697007 100644
--- a/api/core/model_runtime/model_providers/openai/llm/gpt-4o-2024-08-06.yaml
+++ b/api/core/model_runtime/model_providers/openai/llm/gpt-4o-2024-08-06.yaml
@@ -28,7 +28,7 @@ parameter_rules:
- name: response_format
label:
zh_Hans: 回复格式
- en_US: response_format
+ en_US: Response Format
type: string
help:
zh_Hans: 指定模型必须输出的格式
diff --git a/api/core/model_runtime/model_providers/openai/llm/gpt-4o-mini-2024-07-18.yaml b/api/core/model_runtime/model_providers/openai/llm/gpt-4o-mini-2024-07-18.yaml
index 03e28772e60..df38270f79b 100644
--- a/api/core/model_runtime/model_providers/openai/llm/gpt-4o-mini-2024-07-18.yaml
+++ b/api/core/model_runtime/model_providers/openai/llm/gpt-4o-mini-2024-07-18.yaml
@@ -28,7 +28,7 @@ parameter_rules:
- name: response_format
label:
zh_Hans: 回复格式
- en_US: response_format
+ en_US: Response Format
type: string
help:
zh_Hans: 指定模型必须输出的格式
diff --git a/api/core/model_runtime/model_providers/openai/llm/gpt-4o-mini.yaml b/api/core/model_runtime/model_providers/openai/llm/gpt-4o-mini.yaml
index 23dcf85085e..5e3c94fbe25 100644
--- a/api/core/model_runtime/model_providers/openai/llm/gpt-4o-mini.yaml
+++ b/api/core/model_runtime/model_providers/openai/llm/gpt-4o-mini.yaml
@@ -28,7 +28,7 @@ parameter_rules:
- name: response_format
label:
zh_Hans: 回复格式
- en_US: response_format
+ en_US: Response Format
type: string
help:
zh_Hans: 指定模型必须输出的格式
diff --git a/api/core/model_runtime/model_providers/openai/llm/gpt-4o.yaml b/api/core/model_runtime/model_providers/openai/llm/gpt-4o.yaml
index 4f141f772fd..3090a9e090c 100644
--- a/api/core/model_runtime/model_providers/openai/llm/gpt-4o.yaml
+++ b/api/core/model_runtime/model_providers/openai/llm/gpt-4o.yaml
@@ -28,7 +28,7 @@ parameter_rules:
- name: response_format
label:
zh_Hans: 回复格式
- en_US: response_format
+ en_US: Response Format
type: string
help:
zh_Hans: 指定模型必须输出的格式
diff --git a/api/core/model_runtime/model_providers/openrouter/llm/gpt-3.5-turbo.yaml b/api/core/model_runtime/model_providers/openrouter/llm/gpt-3.5-turbo.yaml
index 1737c50bb10..186c1cc6636 100644
--- a/api/core/model_runtime/model_providers/openrouter/llm/gpt-3.5-turbo.yaml
+++ b/api/core/model_runtime/model_providers/openrouter/llm/gpt-3.5-turbo.yaml
@@ -26,7 +26,7 @@ parameter_rules:
- name: response_format
label:
zh_Hans: 回复格式
- en_US: response_format
+ en_US: Response Format
type: string
help:
zh_Hans: 指定模型必须输出的格式
diff --git a/api/core/model_runtime/model_providers/openrouter/llm/gpt-4-32k.yaml b/api/core/model_runtime/model_providers/openrouter/llm/gpt-4-32k.yaml
index 2d55cf85656..8c2989b3000 100644
--- a/api/core/model_runtime/model_providers/openrouter/llm/gpt-4-32k.yaml
+++ b/api/core/model_runtime/model_providers/openrouter/llm/gpt-4-32k.yaml
@@ -41,7 +41,7 @@ parameter_rules:
- name: response_format
label:
zh_Hans: 回复格式
- en_US: response_format
+ en_US: Response Format
type: string
help:
zh_Hans: 指定模型必须输出的格式
diff --git a/api/core/model_runtime/model_providers/openrouter/llm/gpt-4.yaml b/api/core/model_runtime/model_providers/openrouter/llm/gpt-4.yaml
index 12015f6f643..ef19d4f6f0d 100644
--- a/api/core/model_runtime/model_providers/openrouter/llm/gpt-4.yaml
+++ b/api/core/model_runtime/model_providers/openrouter/llm/gpt-4.yaml
@@ -41,7 +41,7 @@ parameter_rules:
- name: response_format
label:
zh_Hans: 回复格式
- en_US: response_format
+ en_US: Response Format
type: string
help:
zh_Hans: 指定模型必须输出的格式
diff --git a/api/core/model_runtime/model_providers/openrouter/llm/gpt-4o-2024-08-06.yaml b/api/core/model_runtime/model_providers/openrouter/llm/gpt-4o-2024-08-06.yaml
index cf2de0f73a0..0be325f55bd 100644
--- a/api/core/model_runtime/model_providers/openrouter/llm/gpt-4o-2024-08-06.yaml
+++ b/api/core/model_runtime/model_providers/openrouter/llm/gpt-4o-2024-08-06.yaml
@@ -28,7 +28,7 @@ parameter_rules:
- name: response_format
label:
zh_Hans: 回复格式
- en_US: response_format
+ en_US: Response Format
type: string
help:
zh_Hans: 指定模型必须输出的格式
diff --git a/api/core/model_runtime/model_providers/openrouter/llm/gpt-4o-mini.yaml b/api/core/model_runtime/model_providers/openrouter/llm/gpt-4o-mini.yaml
index de0bad41365..3b1d95643d2 100644
--- a/api/core/model_runtime/model_providers/openrouter/llm/gpt-4o-mini.yaml
+++ b/api/core/model_runtime/model_providers/openrouter/llm/gpt-4o-mini.yaml
@@ -27,7 +27,7 @@ parameter_rules:
- name: response_format
label:
zh_Hans: 回复格式
- en_US: response_format
+ en_US: Response Format
type: string
help:
zh_Hans: 指定模型必须输出的格式
diff --git a/api/core/model_runtime/model_providers/openrouter/llm/gpt-4o.yaml b/api/core/model_runtime/model_providers/openrouter/llm/gpt-4o.yaml
index 6945402c720..a8c97efdd64 100644
--- a/api/core/model_runtime/model_providers/openrouter/llm/gpt-4o.yaml
+++ b/api/core/model_runtime/model_providers/openrouter/llm/gpt-4o.yaml
@@ -27,7 +27,7 @@ parameter_rules:
- name: response_format
label:
zh_Hans: 回复格式
- en_US: response_format
+ en_US: Response Format
type: string
help:
zh_Hans: 指定模型必须输出的格式