Selaa lähdekoodia

feat: introduce a new environment variable that suppose to disable Scarf analytics (#11179)

tags/0.13.0
Ethan 11 kuukautta sitten
vanhempi
commit
0f1133729f
No account linked to committer's email address
3 muutettua tiedostoa jossa 7 lisäystä ja 0 poistoa
  1. 1
    0
      api/.env.example
  2. 5
    0
      api/configs/feature/__init__.py
  3. 1
    0
      docker/.env.example

+ 1
- 0
api/.env.example Näytä tiedosto

@@ -329,6 +329,7 @@ NOTION_INTERNAL_SECRET=you-internal-secret
ETL_TYPE=dify
UNSTRUCTURED_API_URL=
UNSTRUCTURED_API_KEY=
SCARF_NO_ANALYTICS=true

#ssrf
SSRF_PROXY_HTTP_URL=

+ 5
- 0
api/configs/feature/__init__.py Näytä tiedosto

@@ -585,6 +585,11 @@ class RagEtlConfig(BaseSettings):
default=None,
)

SCARF_NO_ANALYTICS: Optional[str] = Field(
description="This is about whether to disable Scarf analytics in Unstructured library.",
default="false",
)


class DataSetConfig(BaseSettings):
"""

+ 1
- 0
docker/.env.example Näytä tiedosto

@@ -579,6 +579,7 @@ ETL_TYPE=dify
# For example: http://unstructured:8000/general/v0/general
UNSTRUCTURED_API_URL=
UNSTRUCTURED_API_KEY=
SCARF_NO_ANALYTICS=true

# ------------------------------
# Model Configuration

Loading…
Peruuta
Tallenna