diff --git a/api/core/ops/entities/config_entity.py b/api/core/ops/entities/config_entity.py index fd1310a24e..221e6239ab 100644 --- a/api/core/ops/entities/config_entity.py +++ b/api/core/ops/entities/config_entity.py @@ -27,7 +27,7 @@ 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://') or not v.startswith('http://'): + if not v.startswith('https://') and not v.startswith('http://'): raise ValueError('host must start with https:// or http://') return v