Browse Source

feat: update LangfuseConfig host config (#5846)

Joe 9 tháng trước cách đây
mục cha
commit
598e030a7e
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      api/core/ops/entities/config_entity.py

+ 2 - 2
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