fix: langfuse logical operator error (#5948)

pull/5958/head
Joe 2 years ago committed by GitHub
parent aecdfa2d5c
commit 688b8fe114
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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

Loading…
Cancel
Save