From 598e030a7ec2983df4a5e9d0f3dd47a0232fe54a Mon Sep 17 00:00:00 2001 From: Joe <79627742+ZhouhaoJiang@users.noreply.github.com> Date: Tue, 2 Jul 2024 13:14:07 +0800 Subject: [PATCH] feat: update LangfuseConfig host config (#5846) --- api/core/ops/entities/config_entity.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/core/ops/entities/config_entity.py b/api/core/ops/entities/config_entity.py index 566bbf51ac..fd1310a24e 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