mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-11 03:46:52 +08:00
feat: update LangfuseConfig host config (#5846)
This commit is contained in:
@@ -27,8 +27,8 @@ 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://'):
|
if not v.startswith('https://') or not v.startswith('http://'):
|
||||||
raise ValueError('host must start with https://')
|
raise ValueError('host must start with https:// or http://')
|
||||||
|
|
||||||
return v
|
return v
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user