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.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
add PROMPT_GENERATION_MAX_TOKENS and CODE_GENERATION_MAX_TOKENS in docker enviromment (#10040)
Xiao Leyc647e4307aa7
diff --git a/docker/.env.example b/docker/.env.exampleindex ef2f331c117..a1347017280 100644--- a/docker/.env.example+++ b/docker/.env.example@@ -558,6 +558,22 @@ ETL_TYPE=dify# For example: http://unstructured:8000/general/v0/generalUNSTRUCTURED_API_URL=+# ------------------------------+# Model Configuration+# ------------------------------++# The maximum number of tokens allowed for prompt generation.+# This setting controls the upper limit of tokens that can be used by the LLM+# when generating a prompt in the prompt generation tool.+# Default: 512 tokens.+PROMPT_GENERATION_MAX_TOKENS=512++# The maximum number of tokens allowed for code generation.+# This setting controls the upper limit of tokens that can be used by the LLM+# when generating code in the code generation tool.+# Default: 1024 tokens.+CODE_GENERATION_MAX_TOKENS=1024+# ------------------------------# Multi-modal Configuration# ------------------------------diff --git a/docker/docker-compose.yaml b/docker/docker-compose.yamlindex 06c99b5eab0..930c4c3eda9 100644--- a/docker/docker-compose.yaml+++ b/docker/docker-compose.yaml@@ -207,6 +207,8 @@ x-shared-env: &shared-api-worker-envUPLOAD_FILE_BATCH_LIMIT: ${UPLOAD_FILE_BATCH_LIMIT:-5}ETL_TYPE: ${ETL_TYPE:-dify}UNSTRUCTURED_API_URL: ${UNSTRUCTURED_API_URL:-}+ PROMPT_GENERATION_MAX_TOKENS: ${PROMPT_GENERATION_MAX_TOKENS:-512}+ CODE_GENERATION_MAX_TOKENS: ${CODE_GENERATION_MAX_TOKENS:-1024}MULTIMODAL_SEND_IMAGE_FORMAT: ${MULTIMODAL_SEND_IMAGE_FORMAT:-base64}UPLOAD_IMAGE_FILE_SIZE_LIMIT: ${UPLOAD_IMAGE_FILE_SIZE_LIMIT:-10}SENTRY_DSN: ${API_SENTRY_DSN:-}