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.

feat: update LangfuseConfig host config (#5846)

Joe598e030a7ec2
diff --git a/api/core/ops/entities/config_entity.py b/api/core/ops/entities/config_entity.py
index 566bbf51ac9..fd1310a24e0 100644
--- a/api/core/ops/entities/config_entity.py
+++ b/api/core/ops/entities/config_entity.py
@@ -27,8 +27,8 @@ class LangfuseConfig(BaseTracingConfig):
def set_value(cls, v, info: ValidationInfo):
if v is None or v == "":
v = 'https://api.langfuse.com'
- if not v.startswith('https://'):
- raise ValueError('host must start with https://')
+ if not v.startswith('https://') or not v.startswith('http://'):
+ raise ValueError('host must start with https:// or http://')
return v