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: correct gpt-4o-mini max token (#6472)

sino4f9f175f258a
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 7304a58affc..6f23e0647d6 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
@@ -24,7 +24,7 @@ parameter_rules:
use_template: max_tokens
default: 512
min: 1
- max: 4096
+ max: 16384
- name: response_format
label:
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 053cf7d7c10..b97fbf8aabc 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
@@ -24,7 +24,7 @@ parameter_rules:
use_template: max_tokens
default: 512
min: 1
- max: 4096
+ max: 16384
- name: response_format
label:
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 0da5bb877ff..de0bad41365 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
@@ -23,7 +23,7 @@ parameter_rules:
use_template: max_tokens
default: 512
min: 1
- max: 4096
+ max: 16384
- name: response_format
label:
zh_Hans: 回复格式