瀏覽代碼

fix: langfuse logical operator error (#5948)

tags/0.6.13
Joe 1 年之前
父節點
當前提交
688b8fe114
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 1 行新增1 行删除
  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

Loading…
取消
儲存