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: #12143 support streaming mode content start with "data:" (#12171)
jifei3c2e30f34828
diff --git a/api/core/model_runtime/model_providers/moonshot/llm/llm.py b/api/core/model_runtime/model_providers/moonshot/llm/llm.pyindex 90d015942eb..cfee0b91e79 100644--- a/api/core/model_runtime/model_providers/moonshot/llm/llm.py+++ b/api/core/model_runtime/model_providers/moonshot/llm/llm.py@@ -252,7 +252,7 @@ class MoonshotLargeLanguageModel(OAIAPICompatLargeLanguageModel):# ignore sse commentsif chunk.startswith(":"):continue- decoded_chunk = chunk.strip().removeprefix("data: ")+ decoded_chunk = chunk.strip().removeprefix("data:").lstrip()chunk_json = Nonetry:chunk_json = json.loads(decoded_chunk)diff --git a/api/core/model_runtime/model_providers/openai_api_compatible/llm/llm.py b/api/core/model_runtime/model_providers/openai_api_compatible/llm/llm.pyindex 5b0ee7aae37..734cf28b157 100644--- a/api/core/model_runtime/model_providers/openai_api_compatible/llm/llm.py+++ b/api/core/model_runtime/model_providers/openai_api_compatible/llm/llm.py@@ -479,7 +479,7 @@ class OAIAPICompatLargeLanguageModel(_CommonOaiApiCompat, LargeLanguageModel):# ignore sse commentsif chunk.startswith(":"):continue- decoded_chunk = chunk.strip().removeprefix("data: ")+ decoded_chunk = chunk.strip().removeprefix("data:").lstrip()if decoded_chunk == "[DONE]": # Some provider returns "data: [DONE]"continuediff --git a/api/core/model_runtime/model_providers/stepfun/llm/llm.py b/api/core/model_runtime/model_providers/stepfun/llm/llm.pyindex 686809ff2be..b14d5ec2ecd 100644--- a/api/core/model_runtime/model_providers/stepfun/llm/llm.py+++ b/api/core/model_runtime/model_providers/stepfun/llm/llm.py@@ -250,7 +250,7 @@ class StepfunLargeLanguageModel(OAIAPICompatLargeLanguageModel):# ignore sse commentsif chunk.startswith(":"):continue- decoded_chunk = chunk.strip().removeprefix("data: ")+ decoded_chunk = chunk.strip().removeprefix("data:").lstrip()chunk_json = Nonetry:chunk_json = json.loads(decoded_chunk)