mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-14 20:15:53 +08:00
fix: langfuse logical operator error (#5948)
This commit is contained in:
parent
aecdfa2d5c
commit
688b8fe114
@ -27,7 +27,7 @@ class LangfuseConfig(BaseTracingConfig):
|
|||||||
def set_value(cls, v, info: ValidationInfo):
|
def set_value(cls, v, info: ValidationInfo):
|
||||||
if v is None or v == "":
|
if v is None or v == "":
|
||||||
v = 'https://api.langfuse.com'
|
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://')
|
raise ValueError('host must start with https:// or http://')
|
||||||
|
|
||||||
return v
|
return v
|
||||||
|
Loading…
x
Reference in New Issue
Block a user