Bläddra i källkod

[Bug fix] Remove duplicate constants (#1342)

Deshraj Yadav 1 år sedan
förälder
incheckning
6fb2048af0
2 ändrade filer med 2 tillägg och 6 borttagningar
  1. 1 5
      embedchain/telemetry/posthog.py
  2. 1 1
      pyproject.toml

+ 1 - 5
embedchain/telemetry/posthog.py

@@ -2,15 +2,11 @@ import json
 import logging
 import os
 import uuid
-from pathlib import Path
 
 from posthog import Posthog
 
 import embedchain
-
-HOME_DIR = str(Path.home())
-CONFIG_DIR = os.path.join(HOME_DIR, ".embedchain")
-CONFIG_FILE = os.path.join(CONFIG_DIR, "config.json")
+from embedchain.constants import CONFIG_DIR, CONFIG_FILE
 
 
 class AnonymousTelemetry:

+ 1 - 1
pyproject.toml

@@ -1,6 +1,6 @@
 [tool.poetry]
 name = "embedchain"
-version = "0.1.101"
+version = "0.1.102"
 description = "Simplest open source retrieval (RAG) framework"
 authors = [
     "Taranjeet Singh <taranjeet@embedchain.ai>",