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
fix: LLM may not return `<think>` tag, cause thinking time keep increase (#13962)
NFishece25bce1a34
diff --git a/web/.env.example b/web/.env.exampleindex f26272c8f3f..800dbb633e4 100644--- a/web/.env.example+++ b/web/.env.example@@ -10,10 +10,10 @@ NEXT_PUBLIC_API_PREFIX=http://localhost:5001/console/api# console or api domain.# example: http://udify.app/apiNEXT_PUBLIC_PUBLIC_API_PREFIX=http://localhost:5001/api-# The APIFREX for MARKETPLACE-NEXT_PUBLIC_MARKETPLACE_API_PREFIX=http://localhost:5002/api+# The API PREFIX for MARKETPLACE+NEXT_PUBLIC_MARKETPLACE_API_PREFIX=https://marketplace.dify.ai/api/v1# The URL for MARKETPLACE-NEXT_PUBLIC_MARKETPLACE_URL_PREFIX=+NEXT_PUBLIC_MARKETPLACE_URL_PREFIX=https://marketplace.dify.ai# SENTRYNEXT_PUBLIC_SENTRY_DSN=diff --git a/web/app/components/base/markdown.tsx b/web/app/components/base/markdown.tsxindex 37691416e9d..8689d44a1c4 100644--- a/web/app/components/base/markdown.tsx+++ b/web/app/components/base/markdown.tsx@@ -68,12 +68,13 @@ const preprocessLaTeX = (content: string) => {}const preprocessThinkTag = (content: string) => {- if (!content.trim().startsWith('<think>\n'))+ if (!(content.trim().startsWith('<think>\n') || content.trim().startsWith('<details style=')))return contentreturn flow([- (str: string) => str.replace('<think>\n', '<details>\n'),- (str: string) => str.replace('\n</think>', '\n[ENDTHINKFLAG]</details>'),+ (str: string) => str.replaceAll('<think>\n', '<details>\n'),+ (str: string) => str.replaceAll('\n</think>', '\n[ENDTHINKFLAG]</details>'),+ (str: string) => str.replaceAll('\n</details>', '\n[ENDTHINKFLAG]</details>'),])(content)}