Prechádzať zdrojové kódy

fix: langfuse logical operator error (#5948)

Joe 9 mesiacov pred
rodič
commit
688b8fe114
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      api/core/ops/entities/config_entity.py

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