From 688b8fe114ab92be8e03742dc5bb4c1fe53cc2db Mon Sep 17 00:00:00 2001 From: Joe <79627742+ZhouhaoJiang@users.noreply.github.com> Date: Thu, 4 Jul 2024 13:47:15 +0800 Subject: [PATCH] fix: langfuse logical operator error (#5948) --- api/core/ops/entities/config_entity.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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